LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Question about route add default ppp0??? (http://www.linuxquestions.org/questions/linux-networking-3/question-about-route-add-default-ppp0-458274/)

marsh58 06-25-2006 07:40 PM

Question about route add default ppp0???
 
Hi,
My name is Marshall Haire. My dad and I are working on his Debian Sarge 3.1 system. We have read about using the command route add default ppp0. Where can we run this command on startup so he doesn't have to run this command each time the system is boots up? Any help is greatly appreciated. Thank you.

Marshall Haire.

CroMagnon 06-26-2006 12:46 AM

Check out the file '/etc/network/interfaces', and also read 'man 5 interfaces'. In particular, you may like to look at the part about post-up.

dalek 06-26-2006 08:49 AM

Maybe your distro is different but it used to be that when ppp0 came up the route was added for you. Wonder why yours is not? It is usually done with a script.

:D :D :D :D

nx5000 06-26-2006 08:59 AM

You can add "gateway" or something like this in the configuration of pppd so that when the interface ppp0 is up, a manual route add default ppp0 is done.
Look at the pppd options documentation, options default-gateway or gateway (can't remember exactly).
It's independent of the distro you are using, slack gentoo or debian use the same pppd

Other options would be in interfaces file.

Don't know the difference.. I would use the specific ppp option.


All times are GMT -5. The time now is 02:06 AM.