[CentOS] Is there a way to save the routing table permanently?

Florin Andrei florin at andrei.myip.org
Fri Aug 22 17:14:04 UTC 2008


ABBAS KHAN wrote:
> I'm adding the default gateway to the route through "route add default 
> gw 10.10.10.10 <http://10.10.10.10>" which is also shown in "route -n" 
> but the problem is that as soon as I restart the network through 
> /etc/init.d/network restart; the route sets to default one...!
> SO, my question is there any way to save the modified route permanently 
> by hardcoding the changes?

It would be very nice if the init.d script would allow the sysadmin to 
do something like "service network saveroutes". I always thought that 
would be a neat feature.

It should probably go into Red Hat's bugzilla before it gets implemented.

-- 
Florin Andrei

http://florin.myip.org/


More information about the CentOS mailing list