LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 10-05-2002, 01:25 AM   #1
juno
Member
 
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, 02:39 AM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
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, 09:42 AM   #3
markus1982
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
 
  


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 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 05:34 AM
What in happening to my route table??? Julian_Thong Linux - Networking 2 08-22-2004 02:16 PM
route table problem fdr Linux - Networking 2 02-07-2004 08:33 PM
route table prob fdr Linux - Wireless Networking 0 02-03-2004 06:41 AM
Route table christianj Linux - Networking 3 11-17-2002 09:24 AM


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

Main Menu
Advertisement
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