The ip-link(8) man page documents master-side creation options for many link types but has no "BOND Type Support" section, leaving the bond master options (mode, miimon, arp_*, xmit_hash_policy, lacp_*, ad_*, coupled_control, broadcast_neighbor, lacp_strict, arp_missed_max, ...) undocumented, even though a "Bonding Slave Support" section already exists. Add a "BOND Type Support" section modelled on "BRIDGE Type Support", describing every bond master option accepted by iplink_bond.c. Option descriptions are sourced from the kernel bonding documentation (Documentation/networking/bonding.rst). Signed-off-by: Pranav Tathe --- v2: trim each option description to one line, drop restated defaults and valid ranges, and add a pointer to the kernel bonding documentation after the synopsis (per Stephen Hemminger's review). Synopsis and option list unchanged. man/man8/ip-link.8.in | 282 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 282 insertions(+) diff --git a/man/man8/ip-link.8.in b/man/man8/ip-link.8.in index 719781bd..3c3a9afd 100644 --- a/man/man8/ip-link.8.in +++ b/man/man8/ip-link.8.in @@ -1764,6 +1764,288 @@ Redundancy Protocol (PRP). . .in -8 +.TP +BOND Type Support +For a link of type +.I BOND +the following additional arguments are supported: + +.BI "ip link add " DEVICE " type bond " +[ +.BI mode " BONDMODE " +] [ +.BI active_slave " SLAVE_DEV " +] [ +.B clear_active_slave +] [ +.BI miimon " MIIMON " +] [ +.BI updelay " UPDELAY " +] [ +.BI downdelay " DOWNDELAY " +] [ +.BI peer_notify_delay " DELAY " +] [ +.BI use_carrier " USE_CARRIER " +] [ +.BI arp_interval " ARP_INTERVAL " +] [ +.BI arp_validate " ARP_VALIDATE " +] [ +.BI arp_all_targets " ARP_ALL_TARGETS " +] [ +.BI arp_ip_target " [ ARP_IP_TARGET, ... ] " +] [ +.BI ns_ip6_target " [ NS_IP6_TARGET, ... ] " +] [ +.BI primary " SLAVE_DEV " +] [ +.BI primary_reselect " PRIMARY_RESELECT " +] [ +.BI fail_over_mac " FAIL_OVER_MAC " +] [ +.BI xmit_hash_policy " XMIT_HASH_POLICY " +] [ +.BI resend_igmp " RESEND_IGMP " +] [ +.BI num_grat_arp|num_unsol_na " NUM_PEER_NOTIF " +] [ +.BI all_slaves_active " ALL_SLAVES_ACTIVE " +] [ +.BI min_links " MIN_LINKS " +] [ +.BI lp_interval " LP_INTERVAL " +] [ +.BI packets_per_slave " PACKETS_PER_SLAVE " +] [ +.BI tlb_dynamic_lb " TLB_DYNAMIC_LB " +] [ +.BI lacp_rate " LACP_RATE " +] [ +.BI lacp_active " LACP_ACTIVE " +] [ +.BI coupled_control " COUPLED_CONTROL " +] [ +.BI broadcast_neighbor " BROADCAST_NEIGHBOR " +] [ +.BI ad_select " AD_SELECT " +] [ +.BI ad_user_port_key " PORTKEY " +] [ +.BI ad_actor_sys_prio " SYSPRIO " +] [ +.BI ad_actor_system " LLADDR " +] [ +.BI lacp_strict " LACP_STRICT " +] [ +.BI arp_missed_max " MISSED_MAX " +] + +The options below mirror the bonding driver parameters. For their +full semantics, permitted values and defaults see the kernel +bonding documentation, +.B Documentation/networking/bonding.rst +in the Linux kernel source tree, or +.B https://www.kernel.org/doc/html/latest/networking/bonding.html +\&. + +.in +8 +.sp +.BI mode " BONDMODE " +- specifies the bonding policy. Possible values are +.BR balance-rr " (0), " active-backup " (1), " balance-xor " (2), " +.BR broadcast " (3), " 802.3ad " (4), " balance-tlb " (5) and " +.BR balance-alb " (6). " + +.BI active_slave " SLAVE_DEV " +- sets the active slave in +.BR active-backup ", " balance-alb " and " balance-tlb " modes. " +.I SLAVE_DEV +is the name of an existing slave interface. + +.B clear_active_slave +- clears the active slave, letting the bonding driver select one on its +own. + +.BI miimon " MIIMON " +- specifies the MII link monitoring frequency in milliseconds. A +value of zero disables MII link monitoring. + +.BI updelay " UPDELAY " +- time in milliseconds to wait before enabling a slave after a link +recovery. Only valid for the +.I miimon +link monitor. + +.BI downdelay " DOWNDELAY " +- time in milliseconds to wait before disabling a slave after a link +failure. Only valid for the +.I miimon +link monitor. + +.BI peer_notify_delay " DELAY " +- delay in milliseconds between each peer notification issued after a +failover event. + +.BI use_carrier " USE_CARRIER " +- obsolete; link state is always determined with +.BR netif_carrier_ok (). + +.BI arp_interval " ARP_INTERVAL " +- specifies the ARP link monitoring frequency in milliseconds. A value +of 0 disables ARP monitoring. + +.BI arp_validate " ARP_VALIDATE " +- specifies whether ARP probes and replies are validated and whether +non-ARP traffic is filtered for link monitoring. Possible values are +.BR none " (0), " active " (1), " backup " (2), " all " (3), " +.BR filter " (4), " filter_active " (5) and " filter_backup " (6). " + +.BI arp_all_targets " ARP_ALL_TARGETS " +- specifies how many +.I arp_ip_target +addresses must be reachable for the ARP monitor to consider a slave up. +Possible values are +.BR any " (0) and " all " (1). " + +.BI arp_ip_target " [ ARP_IP_TARGET, ... ] " +- IPv4 addresses to use as ARP monitoring peers, separated by commas. + +.BI ns_ip6_target " [ NS_IP6_TARGET, ... ] " +- IPv6 addresses to use as NS/NA monitoring peers, separated by commas. + +.BI primary " SLAVE_DEV " +- specifies the primary slave for +.BR active-backup ", " balance-tlb " and " balance-alb " modes. " +.I SLAVE_DEV +is the name of an existing slave interface. + +.BI primary_reselect " PRIMARY_RESELECT " +- specifies the reselection policy for the primary slave. Possible values +are +.BR always " (0), " better " (1) and " failure " (2). " + +.BI fail_over_mac " FAIL_OVER_MAC " +- specifies MAC address handling on failover in +.B active-backup +mode. Possible values are +.BR none " (0), " active " (1) and " follow " (2). " + +.BI xmit_hash_policy " XMIT_HASH_POLICY " +- selects the transmit hash policy for slave selection in +.BR balance-xor ", " 802.3ad " and " tlb " modes. " +Possible values are +.BR layer2 ", " layer2+3 ", " layer3+4 ", " encap2+3 ", " encap3+4 +and +.BR vlan+srcmac . + +.BI resend_igmp " RESEND_IGMP " +- specifies the number of IGMP membership reports issued after a failover +event. Useful for +.BR balance-rr ", " active-backup ", " balance-tlb " and " balance-alb +modes. + +.BI num_grat_arp|num_unsol_na " NUM_PEER_NOTIF " +- specifies the number of peer notifications issued after a failover +event. Both names set the same value. + +.BI all_slaves_active " ALL_SLAVES_ACTIVE " +- specifies whether duplicate frames received on inactive ports are +dropped (0) or delivered (1). + +.BI min_links " MIN_LINKS " +- minimum number of links that must be active before asserting carrier. +Only affects +.B 802.3ad +mode. + +.BI lp_interval " LP_INTERVAL " +- seconds between learning packets sent to each slave's peer switch. Only +affects +.B balance-tlb +and +.B balance-alb +modes. + +.BI packets_per_slave " PACKETS_PER_SLAVE " +- number of packets to transmit through a slave before moving to the +next; 0 chooses a slave at random. Only affects +.B balance-rr +mode. + +.BI tlb_dynamic_lb " TLB_DYNAMIC_LB " +- enables (1) or disables (0) dynamic shuffling of flows in +.B balance-tlb +and +.B balance-alb +modes. + +.BI lacp_rate " LACP_RATE " +- specifies the rate at which the link partner is asked to transmit +LACPDUs in +.B 802.3ad +mode. Possible values are +.BR slow " (0) and " fast " (1). " + +.BI lacp_active " LACP_ACTIVE " +- specifies whether LACPDU frames are sent periodically. Possible values +are +.BR off " (0) and " on " (1). " + +.BI coupled_control " COUPLED_CONTROL " +- specifies whether the LACP MUX keeps the Collecting and Distributing +states coupled in +.B 802.3ad +mode. Possible values are +.B off +and +.BR on . + +.BI broadcast_neighbor " BROADCAST_NEIGHBOR " +- specifies whether ARP/ND packets are broadcast to all active slaves in +.B 802.3ad +mode. Possible values are +.B off +and +.BR on . + +.BI ad_select " AD_SELECT " +- specifies the +.B 802.3ad +aggregation selection logic. Possible values are +.BR stable " (0), " bandwidth " (1), " count " (2) and " actor_port_prio " (3). " + +.BI ad_user_port_key " PORTKEY " +- in an +.B 802.3ad +system, defines the upper 10 bits of the port key. + +.BI ad_actor_sys_prio " SYSPRIO " +- in an +.B 802.3ad +system, specifies the system priority. + +.BI ad_actor_system " LLADDR " +- in an +.B 802.3ad +system, specifies the actor's MAC address used in LACPDUs. The value +cannot be a multicast address. + +.BI lacp_strict " LACP_STRICT " +- specifies the fallback behavior when LACP negotiation fails on all +slave links in +.B 802.3ad +mode. Possible values are +.BR off " (0) and " on " (1). " + +.BI arp_missed_max " MISSED_MAX " +- specifies the number of +.I arp_interval +monitor checks that must fail before the ARP monitor marks an interface +down. + +.in -8 + .TP BRIDGE Type Support For a link of type -- 2.56.0