1826312 Members
4456 Online
109692 Solutions
New Discussion

Re: problem adding 2 gw

 
SOLVED
Go to solution
Guna_2
Regular Advisor

problem adding 2 gw

Dear all,

In my linux box I want to add 2 gw for some different network. I added default gateway first .Then I added second route by using.

net add -net xxx.xxx.xxx.xxx netmask xxx.xxx.xxx.xxx gw xxx.xxx.xxx.xxx

But after rebooting this second network route is not there in my routing table(netstat -r)

I think it is not saving. can any one tell me the configuration file.

Thanks and Regards,
Guna
2 REPLIES 2
Alexander Chuzhoy
Honored Contributor
Solution

Re: problem adding 2 gw

You need to set a static route:
http://www.akadia.com/services/redhat_static_routes.html
or
add your route addition commands to /etc/rc.local file.
Guna_2
Regular Advisor

Re: problem adding 2 gw

dear Alexander Chuzhoy

Thank You

I put the entry in etc/sysconfig/static-route
file. Now my problem has solved

Thankyou

Regards,
Guna