Operating System - Linux
1828309 Members
3435 Online
109975 Solutions
New Discussion

Configure network static route table

 
SOLVED
Go to solution
Worapoj P.
Regular Advisor

Configure network static route table

Dear Expertise,

I would like to make network routing table permanence every time system bootup.
Right after system up I need to issue command #route add -host 202.44.66.1 gw 202.44.66.254.

How to configure routing table to permanence every system reboot or shutdown?
What is conf file routing table?

Thanks in advance for your helps.
B/R
Worapoj

For LOVE For Honor For Mankind
2 REPLIES 2
Ron Kinner
Honored Contributor
Solution

Re: Configure network static route table

Depends on what version of LINUX you have but for RedHat you have to edit the file:

/etc/sysconfig/static-routes

Contains lines of the form:
device net network netmask netmask gw gateway

device is the device name for which to have the route brought up.

From:

http://www.redhat.com/support/resources/howto/sysconfig.html

Ron
Tony Contratto
Respected Contributor

Re: Configure network static route table

See this thread for RedHat systems. I think Mandrake may be the same also, but not sure.

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x3ccea848deccd61190050090279cd0f9,00.html

--
Tony
got root?