Quote:
Originally Posted by wccapps
I'm not sure if it does or not. How can I check?
|
Just type
/sbin/route
at the command line. If you see a line like:
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
then you have a default route. If not, you don't. :-)
Of course, this only works if you check it after ppp connects... Otherwise, your table will have whatever the system set it up with.
Oh, if your system already has a default route, I think PPP may refuse to create another one. (I'm not sure because it's been a while since I've done PPP setup). In that case, you'd have to delete the existing default route before starting ppp.
On my machine, executing (as root):
/sbin/route del default
deletes the default route (and also preventing most further network communication until you get a new default route set).
Adding a default route is similar:
/sbin/route add default gw 192.168.0.1
where 192.168.0.1 is whatever the IP address of your gateway is (that's the meaning of the 'gw' above).