• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 298
  • Last Modified:

Creating static routes in RHL9

Newbie question...

Just got our routing tables set right in our lab. Need these routes to be static. Can you tell me how to set these routes to be permanent so that they won't go away during reboot?

Our routing tables for our two RHL9 servers look like this...

GOLDCOIN * U 0 0 0 eth1 * U 0 0 0 eth1 trojan.thompson UG 0 0 0 eth1 * U 0 0 0 eth0
169.254.0 0 * U 0 0 0 eth1 * U 0 0 0 lo
default goldcoin.thompson UG 0.0.0 eth1

TROJAN * U 0 0 0 eth1 * U 0 0 0 eth1 * U 0 0 0 eth0 goldcoin.thompson UG 0 0 0 eth1 * U 0 0 0 eth1 * U 0 0 0 lo
default Trojan.thompson UG 0 0 0 eth1

Thanks in advance...
2 Solutions
Have a look here http://lartc.org/howto/index.html may help :)
you can store all the commands that you used to setup this whole routing table in a bash script, like:


route add ....
route add ....


and then call this script from your /etc/rc.d/rc.local script. This is an easier way to do it if u r not comfortable with modifying the system config files.
you can just put the commands in /etc/rc.local and the routes will be there just add lines like these
/sbin/route add ......
at the end of rc.local
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

We Need Your Input!

WatchGuard is currently running a beta program for our new macOS Host Sensor for our Threat Detection and Response service. We're looking for more macOS users to help provide insight and feedback to help us make the product even better. Please sign up for our beta program today!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now