Aneurin Price wrote:
You shouldn't need to set a gateway in order to ping 172.21.0.1 because you should have a direct connection to it. Your initial routing table looks like it should work so I'd suspect another problem. That said, the final line isn't right if you want to contact the outside world. 0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0 should be: 0.0.0.0 172.21.0.1 0.0.0.0 U 0 0 0 ppp0
Kernel IP routing tableDestination Gateway Genmask Flags MSS Window irtt Iface 172.21.0.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 172.21.0.1 0.0.0.0 UG 0 0 0 ppp0 0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
yeah, the final line looks dubious to me too, but i wasn't sure. however, if i make the changes u r suggesting surely the 3rd and 4th lines will only differ on the "G" flag? that doesn't look right either!?
i can connect fine to the internet from the gateway. This is what it looks like.You said you can connect fine using ppp alone - what does the routing table look like then?
Kernel IP routing tableDestination Gateway Genmask Flags MSS Window irtt Iface 172.21.0.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0