LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Modify route table (https://www.linuxquestions.org/questions/linux-general-1/modify-route-table-31950/)

juno 10-05-2002 12:25 AM

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.

trickykid 10-05-2002 01:39 AM

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.

markus1982 10-05-2002 08:42 AM

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 :)


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