Monday, September 21, 2009
static-routes in RHEL
“Where do I define any needed static routes for a Red Hat Enterprise Linux (RHEL) system?”
I’m glad you asked. In /etc/sysconfig/static-routes, of course, right where anyone who had the courage to take (and the skill to pass) either the RHCT (Red Hat Certified Technician) or RHCE (Red Hat Certified Engineer) test would expect to find them.
Example syntax of the file:
any net 10.0.0.0 netmask 255.0.0.0 gw 192.168.1.1
any net 192.168.0.0 netmask 255.252.0.0 gw 192.168.1.1
any net 172.16.0.0 netmask 255.255.0.0 gw 192.168.1.1
An official Red Hat pronouncement is here.
