LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-09-2003, 04:52 AM   #1
sacants
LQ Newbie
 
Registered: Feb 2003
Location: Wellington, Aotearoa
Distribution: Mandrake 9.0
Posts: 8

Rep: Reputation: 0
Can you permanently set "route add" -host and default gw cmds?


After having a lot of problems trying to get my Mandrake 9.0 machine to see the internet, I've finally worked out that I need to manually set the following two "route" commands every time I connect, after I've connected:

route add -host [primary nameserver IP] dev ppp0
route add default gw [primary nameserver IP]

Any idea how I can make these commands permanent so I don't have to reissue them all the time?

I have tried adding lines to ifcfg-ppp0 with no result.

I could of course be going about this the entirely wrong way but at least this works!

Thanks in advance.

Anton

Last edited by sacants; 07-09-2003 at 04:53 AM.
 
Old 07-18-2003, 04:04 AM   #2
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Hmm...

Well you could place those commands in an rc.local file (check /etc/rc.local or run a search for this file) and they will start at boot up, after everything else has been started, so hopefully that's a good thing

Cool
 
  


Reply


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
"route add default gw" - trouble Vijayasarathy Linux - Networking 2 03-23-2005 07:54 AM
Route to subnet exists but I get "Network unreachable" when adding default route fciuffani Linux - Networking 4 08-18-2004 02:11 PM
"No route to host" on RH 8.0 + W2K LAN szatki Linux - Networking 8 02-19-2004 12:30 PM
could "no route to host" be caused by non-crossover cable? brandonweinberg Linux - Networking 13 01-31-2004 09:47 AM
cant send email, "no route to host" nef Linux - Software 8 09-23-2003 04:05 PM


All times are GMT -5. The time now is 07:51 PM.

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