Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

additions made to routing table disappear in RH 7.3

Status
Not open for further replies.

iggystar

IS-IT--Management
Jul 12, 2001
126
US
I'm using the route command to update my routing table but if the machine gets rebooted the routes disapper. For example I do this:

route add -net 192.168.100.0 netmask 255.255.255.0 gw 10.208.148.5

This command works, as I'll now be able to reach that 192 network. I can also check /proc/net/route and see that this route has been added to this file.

Whenever the machine gets rebooted, however, this routing info goes away.

How do I add routes that will stay forever? I don't want this routes to ever leave. Thanks.
 
/etc/sysconfig/static-routes
See /etc/sysconfig/network-scripts/ifup-routes for more info. It is the script that does this job.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top