Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 06-25-2006, 07:40 PM   #1
LQ Newbie
Registered: Apr 2004
Posts: 17

Rep: Reputation: 0
Question about route add default ppp0???

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.
Old 06-26-2006, 12:46 AM   #2
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
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.
Old 06-26-2006, 08:49 AM   #3
Senior Member
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
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.

Old 06-26-2006, 08:59 AM   #4
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to add default route (network unreachable) beebop Linux - Networking 12 05-30-2005 11:07 AM
How to add a route table for eth1 and make it the default banner Linux - General 3 05-08-2005 11:14 AM
ppp0 default route jjj0001 Linux - Networking 1 04-08-2005 12:45 AM
route add default gw ... dhsieh Linux - Software 1 10-15-2003 01:40 PM
kppp doesn't assign default route to ppp0 damion Linux - Networking 2 03-01-2003 04:26 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:39 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration