Setup Policy Based Routing with NetworkManager
Setup Policy Based Routing with NetworkManager
https://www.ibm.com/support/pages/setup-policy-based-routing-networkmanager
How To
Summary
Setup Policy Based Routing with NetworkManager Objective Traffic must route back out the interface it is received on – No asymmetric routing.
Traffic in Traffic out bond1 -> bond1 bond0 -> bond0
Steps
nmcli con add type ethernet con-name ifname
nmcli con add type ethernet con-name ifname
nmcli con mod ip4 <ip-addresss/prefix> gw4
nmcli con mod ip4 <ip-addresss/prefix> gw4
nmcli con mod ipv4.route-table
nmcli con mod ipv4.routing-rules 'priority iif table '
nmcli con mod ipv4.routing-rules 'priority from table '
nmcli device reapply
/// *** Example *** ///
(From a console or logged in via bond0 IP)
nmcli con add type ethernet con-name bond0 ifname bond0
nmcli con add type ethernet con-name bond1 ifname bond1
nmcli con mod bond0 ip4 192.168.2.180/24 gw4 192.168.2.1
nmcli con mod bond1 ip4 192.168.1.180/24 gw4 192.168.1.1
nmcli con mod bond1 ipv4.route-table 10
nmcli con mod bond1 ipv4.routing-rules “priority 10 iif bond1 table 10”
nmcli con mod bond1 +ipv4.routing-rules “priority 10 from 192.168.1.180 table 10”
nmcli device reapply bond1
/// *** verify routing table *** ///
ip route show table main
default via
ip route show table 10
default via
Was this topic helpful?
Document Information
More support for: SUSE LINUX ENTERPRISE SERVER
Component: Red Hat Enterprise Linux->NetworkManager
Software version: All Versions
Document number: 6599935
Modified date: 05 July 2022
Manage My Notification Subscriptions
Close Need support?
Submit feedback to IBM Support
1-800-IBM-7378 (USA)
Directory of worldwide contacts
Contact IBM
Privacy
Terms of use
Accessibility
Cookie Preferences