Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 10-05-2002, 12:25 AM   #1
Registered: Sep 2002
Location: fdas
Posts: 100

Rep: Reputation: 15
Modify route table

I am setting up a new server, how can i add the default gateway route entry? what file need to be modified? Thx.
Old 10-05-2002, 01:39 AM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 232Reputation: 232Reputation: 232
Kind of depends on your distro ? Its usually set in the startup scripts with some distros. You can also set it with this command:

route add default gw [ip address]

man route for more details.
Old 10-05-2002, 08:42 AM   #3
Senior Member
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
If you use RedHat as distro check /etc/sysconfig/network and add GATEWAY=... to it or edit /etc/sysconfig/network-scripts/ifcfg-eth0 and add GATEWAY=... to that file


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
I am not able to add a new route to my route table using route command prashanth s j Linux - Networking 2 09-03-2005 04:34 AM
What in happening to my route table??? Julian_Thong Linux - Networking 2 08-22-2004 01:16 PM
route table problem fdr Linux - Networking 2 02-07-2004 07:33 PM
route table prob fdr Linux - Wireless Networking 0 02-03-2004 05:41 AM
Route table christianj Linux - Networking 3 11-17-2002 08:24 AM

All times are GMT -5. The time now is 09:50 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration