Bug 2069004 - [RFE] NM: please support bond new option ns_ip6_target
Summary: [RFE] NM: please support bond new option ns_ip6_target
Keywords:
Status: VERIFIED
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: NetworkManager
Version: 9.1
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: rc
: 9.1
Assignee: Fernando F. Mancera
QA Contact: Matej Berezny
Mayur Patil
URL:
Whiteboard:
: 2148686 (view as bug list)
Depends On:
Blocks: 1951910
TreeView+ depends on / blocked
 
Reported: 2022-03-28 04:23 UTC by Hangbin Liu
Modified: 2023-07-28 11:11 UTC (History)
10 users (show)

Fixed In Version: NetworkManager-1.43.3-1.el9
Doc Type: Enhancement
Doc Text:
Feature: NetworkManager now offers the ability to configure the ns_ip6_target option for bond interfaces, allowing up to 16 IPv6 addresses to be specified as monitoring peers when arp_interval is set. Reason: Prior to this update, there was no support for specifying IPv6 monitoring peers for bond interfaces in NetworkManager. This enhancement was necessary to provide equal capabilities for IPv4 and IPv6 settings. Result: With this new feature, users can now configure the ns_ip6_target option in NetworkManager using the nmcli command. Once the new option is added to the bond.options, NetworkManager applies it to the bond interface effectively, thereby enabling the specification of IPv6 addresses as monitoring peers when arp_interval is set.
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker NMT-71 0 None None None 2023-01-22 14:11:40 UTC
Red Hat Issue Tracker RHELPLAN-116916 0 None None None 2022-03-28 04:32:18 UTC
freedesktop.org Gitlab NetworkManager NetworkManager-ci merge_requests 1340 0 None opened bond: tests for the new options 2023-03-02 15:32:01 UTC
freedesktop.org Gitlab NetworkManager NetworkManager merge_requests 1553 0 None opened bonding: add support to missing options 2023-03-02 14:28:45 UTC
freedesktop.org Gitlab NetworkManager NetworkManager merge_requests 1586 0 None opened bonding: fix verification of ns_ip6_target and arp_validate options 2023-03-27 09:52:34 UTC

Description Hangbin Liu 2022-03-28 04:23:54 UTC
Description of problem:

Please help add bond new option ns_ip6_target for NM. Here is the kernel doc[1]

ns_ip6_target

        Specifies the IPv6 addresses to use as IPv6 monitoring peers when
        arp_interval is > 0.  These are the targets of the NS request
        sent to determine the health of the link to the targets.
        Specify these values in ffff:ffff::ffff:ffff format.  Multiple IPv6
        addresses must be separated by a comma.  At least one IPv6
        address must be given for NS/NA monitoring to function.  The
        maximum number of targets that can be specified is 16.  The
        default value is no IPv6 addresses.


And kernel commit [2], iproute2 commit [3] for reference.

[1] https://www.kernel.org/doc/Documentation/networking/bonding.rst
[2] https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=129e3c1bab24
[3] https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=9831202f

Comment 2 sfaye 2022-11-28 11:10:26 UTC
*** Bug 2148686 has been marked as a duplicate of this bug. ***

Comment 6 Hangbin Liu 2023-03-24 08:48:30 UTC
# uname -r
5.14.0-231.el9.x86_64
# rpm -q NetworkManager
NetworkManager-1.43.4-1.el9.x86_64
# nmcli con add type bond ifname team0 bond.options "mode=active-backup,arp_interval=200,arp_missed_max=15,ns_ip6_target=fe80::210:18ff:feaa:bbcc"
Error: Failed to add 'bond-team0' connection: bond.options: 'arp_interval' option requires 'arp_ip_target' option to be set
# ip link add bond0 type bond mode active-backup arp_interval 1000 arp_missed_max 15 ns_ip6_target fe80::210:18ff:feaa:bbcc
# echo $?
0

Comment 7 Fernando F. Mancera 2023-03-24 09:50:14 UTC
Oh thanks for reporting this. I didn't know ns_ip6_target could satisfy that condition too. Let me fix it, it is simple. Thanks!

Comment 12 Hangbin Liu 2023-04-24 06:43:48 UTC
FYI, it works now:

# rpm -q NetworkManager
NetworkManager-1.43.6-1.el9.x86_64
# nmcli con add type bond ifname bond0 bond.options "mode=active-backup,arp_interval=200,arp_missed_max=15,ns_ip6_target=fe80::210:18ff:feaa:bbcc"
Connection 'bond-bond0' (37c4fae6-5255-4acc-9882-2bd16c77d4ab) successfully added.
# nmcli con show bond-bond0 | grep "bond.options"
bond.options:                           mode=active-backup,arp_interval=200,arp_missed_max=15,ns_ip6_target=fe80::210:18ff:feaa:bbcc

Thanks
Hangbin


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