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

Re: Help:Problems with routing



> 
> Your desktop's default route should be ppp0, not eth0, like this:
> 
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
> 212.210.33.130  *               255.255.255.255 UH    0      0        0
> ppp0
> 192.168.10.0    *               255.255.255.0   U     0      0        0
> eth0
> default         212.210.33.130  0.0.0.0         UG    0      0        0
> ppp0
> 
> from your current routing table, try to:
> # route del default
> # route add default gw 212.210.33.130 dev ppp0

I did it, to no avail

This is the script from my "desktop" router


woody:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
212.210.33.130  *               255.255.255.255 UH    0      0        0 ppp0
192.168.10.0    *               255.255.255.0   U     0      0        0 eth0
default         212.210.33.130  0.0.0.0         UG    0      0        0 ppp0
woody:~# route del default gw 212.210.33.130 ppp0
woody:~# route add default gw 212.210.33.130 dev ppp0 # as you suggested

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
212.210.33.130  *               255.255.255.255 UH    0      0        0 ppp0
192.168.10.0    *               255.255.255.0   U     0      0        0 eth0
default         212.210.33.130  0.0.0.0         UG    0      0        0 ppp0

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
And this is the script from my client:

woody:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.10.0    *               255.255.255.0   U     0      0        0 eth0
default         desktop         0.0.0.0         UG    0      0        0 eth0
woody:~# ping 195.110.96.65
PING 195.110.96.65 (195.110.96.65): 56 data bytes

--- 195.110.96.65 ping statistics ---
43 packets transmitted, 0 packets received, 100% packet loss
woody:~# ping 195.110.96.65
PING 195.110.96.65 (195.110.96.65): 56 data bytes

--- 195.110.96.65 ping statistics ---
22 packets transmitted, 0 packets received, 100% packet loss
woody:~# route del default gw desktop eth0
woody:~# ping route add default netmask 255.255.255.0 gw desktop eth0
woody:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         desktop.grtn    255.255.255.0   UG    0      0        0 eth0
192.168.10.0    *               255.255.255.0   U     0      0        0 eth0
ping 195.110.96.65
PING 195.110.96.65 (195.110.96.65): 56 data bytes
ping: sendto: Network is unreachable
ping: wrote 195.110.96.65 64 chars, ret=-1
<snip>
--- 195.110.96.65 ping statistics ---
4 packets transmitted, 0 packets received, 100% packet loss
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<


So it still doesn't work.

Any further suggestion?

Vittorio








Reply to: