Having read "two gateways / two providers with different ips", and the Clinton East article that it links to, I have successfully set up a multi-homed RHEL5 system. However, I am hoping for a better way to preserve this state than by calling the ip rule and ip route commands from rc.local. Is there a configuration file that I could edit that would get read as the interfaces come up? Something like iptables-save and iptables-restore perhaps?
|
| |||
feedback
|
|
In RHEL, there's two places where these things should probably go. For adding static routes in RHEL, you add them to /etc/sysconfig/network-scripts/route-INTERFACE where INTERFACE matches the name of the ifcfg-INTERFACE entries. The statements in the route-* files will be passed to Now, for the As an example:
If you wanted to, you could include the ip route rules for each interface in If it were me, even though RHEL provides a standardized way of handling static routes, I'd probably do everything in | |||
|
feedback
|
|
RedHat:
I don't have any boxes on hand to check, but there should be something like a SuSE:
Debian:
| |||
|
feedback
|