[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lynx



ddbrown wrote:
> 
> Hello
> 
> I have a ppp connection via a modem
> I can ping internal hosts but external
> 
> The output for the commands
> 
> /bin/netstat -nr
> /sbin/ifconfig
>  cat /etc/resolv.conf
> 
> are as follows:
> Destination     Gateway         Genmask         Flags   MSS Window  irtt
> Iface
> 212.1.128.28    0.0.0.0         255.255.255.255 UH        0 0          0
> ppp0
> 192.168.1.201   0.0.0.0         255.255.255.255 UH        0 0          0
> eth0
> 192.168.1.200   0.0.0.0         255.255.255.255 UH        0 0          0
> eth0
> 192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0
> eth0
> 0.0.0.0         192.168.1.100   0.0.0.0         UG        0 0          0
> eth0
> 
> eth0      Link encap:Ethernet  HWaddr 00:80:C8:FD:12:15
>           inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:406 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:1480 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:100
>           Interrupt:11 Base address:0x6200
> 
> eth0:0    Link encap:Ethernet  HWaddr 00:80:C8:FD:12:15
>           inet addr:192.168.1.200  Bcast:192.168.1.255  Mask:255.255.255.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           Interrupt:11 Base address:0x6200
> 
> eth0:1    Link encap:Ethernet  HWaddr 00:80:C8:FD:12:15
>           inet addr:192.168.1.201  Bcast:192.168.1.255  Mask:255.255.255.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           Interrupt:11 Base address:0x6200
> 
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           UP LOOPBACK RUNNING  MTU:3924  Metric:1
>           RX packets:877 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:877 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
> 
> ppp0      Link encap:Point-to-Point Protocol
>           inet addr:212.1.137.105  P-t-P:212.1.128.28  Mask:255.255.255.255
>           UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
>           RX packets:19 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:10
> 
> nameserver 212.1.130.10
> nameserver 212.1.128.156
> 
> Thanks
> Darren
can you ping 212.1.128.28

also I notice that your gateway is ipaddress 192.168.1.100.  To communicate with
the outside world the gateway should be the ppp0 device.

man route tells me commands similar to

route del default gw 
route add default gw 212.1.128.28

might do the trick without disconnecting.

/etc/ppp/options should include defaultroute as an option.

Dirk