Network Multipath Routing
Hello,
how to setup persistent network multipath routing in RHEL 7.x (surviving reboot)?
ie ->
eno1 - mgmt
eno2, eno3 - real traffic
ip route add table 88 default nexthop via eno2_GW_IPv4 dev eno2 weight 10 nexthop via eno3_GW_IPv4 dev eno3 weight 10
that works fine when typed through cli, but can't find any info how to setup those in /../network-scripts/* files, any advice ?
Following that - how to expand that defined route so when one of two devices is down (ie `nmcli connection down eno2) traffic still goes through the other one (eno3)?
MGMT interface (eno1) is mentioned here to emphasise that source policy routing is used for management traffic.
TIA,
Responses
Hello
Does this section in Networking Guide help Configuring Static Routes in ifcfg files
It should go like this:
- Setup your tables in
/etc/iproute2/rt_tables - Configure rules in
/etc/sysconfig/network-scripts/rule-ethX - Configure routes in
/etc/sysconfig/network-scripts/route-ethX - If using NetworkManager, install the
NetworkManager-config-routing-rulespackage
The rule-ethX and route-ethX files just pass their contents one-line-at-a-time to the ip rule or ip route commands.
I would guess for your purpose, you'd put your route in route-eno3 because the interfaces should be processed in alphabetical order and it wouldn't make much sense to add a route for both interfaces when eno2 is up but eno3 isn't.
References:
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
