RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2081302 - [RFE] Support IPv4 hash-based multipath routing (ECMP)
Summary: [RFE] Support IPv4 hash-based multipath routing (ECMP)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: NetworkManager
Version: 9.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Fernando F. Mancera
QA Contact: David Jaša
Jaroslav Klech
URL:
Whiteboard:
Depends On:
Blocks: 2079808 2130221 2162401
TreeView+ depends on / blocked
 
Reported: 2022-05-03 10:46 UTC by Thomas Haller
Modified: 2023-05-14 13:21 UTC (History)
11 users (show)

Fixed In Version: NetworkManager-1.41.8-1.el9
Doc Type: Enhancement
Doc Text:
.Introduction of the `weight` property in ECMP routing with NetworkManager With this update, RHEL 9 supports a new property `weight` when defining IPv4 Equal-Cost Multi-Path (ECMP) routes. You can configure multipath routing using NetworkManager to load-balance and stabilize network traffic. This allows for multiple paths to be used for data transmission between two nodes, which improves the network efficiency and provides redundancy in the event of a link failure. Conditions for using the `weight` property include: * The valid values are 1-256. * Define multiple next-hop routes as single-hop routes with the `weight` property. * If you do not set `weight`, NetworkManager cannot merge the routes into an ECMP route.
Clone Of:
Environment:
Last Closed: 2023-05-09 08:17:27 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker NMT-142 0 None None None 2023-01-23 10:25:20 UTC
Red Hat Issue Tracker RHELPLAN-120864 0 None None None 2022-05-03 10:53:10 UTC
Red Hat Product Errata RHBA-2023:2485 0 None None None 2023-05-09 08:17:51 UTC

Description Thomas Haller 2022-05-03 10:46:23 UTC
This bug was initially created as a copy of Bug #2079808


Add support for IPv4 multihop (multipath, ECMP) routes.

Currently NetworkManager ignores all IPv4 multihop routes and cannot configure them. This should be fixed.


For IPv6, kernel will automatically merge compatible single-hop routes (that only differ by their next hop). So NetworkManager supports multihop routes by just pretending there are only multi-hop routes. If you configure two routes that only differ by their next-hop, then NM will configure them, kernel will treat them as multi-hop and all works. The only thing that is missing for IPv6 is to configure a weight for the next hop.

For IPv4, it's entirely different. The next hop (or hops) of an IPv4 route is part of the identity of an IPv4 route, that means, if you have two routes that only differ by their next hop(s), then these are just two different routes as far as kernel is concerned.

Comment 8 Beniamino Galvani 2023-01-11 15:39:35 UTC
Seems to work fine here (except for the off-by-one weight that will be addressed in a later patch):

  # nmcli connection add type dummy ifname dummy1 ip4 172.25.10.1/24 ipv4.routes "192.168.1.1 10 weight=100"
  Connection 'dummy-dummy1' (dcc4e533-cea4-4d70-a48f-3edd6c0686a7) successfully added.

  # nmcli connection add type dummy ifname dummy2 ip4 172.25.10.2/24 ipv4.routes "192.168.1.1 10 weight=200"
  Connection 'dummy-dummy2' (490fb23f-ed9a-42f2-82e1-6f9e41eadd1b) successfully added.

  # ip route
  [...]
  192.168.1.1 proto static scope link metric 10
	nexthop dev dummy1 weight 101
	nexthop dev dummy2 weight 201

Setting Verified:Tested.

Comment 16 David Jaša 2023-02-13 22:23:35 UTC
VERIFIED using NetworkManager-1.41.90-1.el9.x86_64

The functionality works, automation coverage may be augmented in the future.

Comment 18 errata-xmlrpc 2023-05-09 08:17:27 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (NetworkManager bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:2485


Note You need to log in before you can comment on or make changes to this bug.