I’m an Ubuntu Linux guy, which, when it comes to config files, is to say I’m a Debian guy. Red Hat, and its derivatives, feel pretty foreign to me.
While throwing a Centos box together, I had a need for static routes since there are two nics in the box.
Google.
Google.
Google.
Found it. Documenting here so I don’t have to search again.
For each device, (say eth0) create the file: /etc/sysconfig/network-scripts/route-eth0
And the contents should be something like:
10.0.1.0/24 via 192.168.2.4 dev eth0
10.0.4.0/24 via 192.168.2.2 dev eth0
Entries (RSS)
Are you speaking English?!?!?!?
Thanks, this was quite helpful.
Yea well, the way RH does things has never made any sense to me. Thanks, this helped a lot. I don’t think you need the explicit “dev eth0″ bit, but it’s probably safer to have it there explicitly.
thanks – that did help!