Discussion Locked

persistent route

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I can use the route statement to setup a static route as follows:
route add -net 10.184.0.0 netmask 255.255.0.0 gw 10.0.0.254 metric 1

However, this route doesn't stick when I reboot the system.

How do I make this route persistent so it will always be there (even after a reboot)?

I am using ver 9 red hat

Thanks in advance.

2 replies

by jeromey

Place all your routes in /etc/rc.d/rc.local.route. This file will be loaded evertime to reboot.

by networq

you can add the command

'route add -net 10.184.0.0 netmask 255.255.0.0 gw 10.0.0.254 metric 1'
to the file /etc/rc.d/rc.local. It will get executed on startup.

This discussion is closed to new replies.