LACP bond "Link Failure Count" is not working and the bond does not failover as expected when using multiple aggregators

Solution Verified - Updated -

Issue

  • When viewing bond state via procfs /proc/net/bonding/ , the Link Failure Count for an LACP bond slave is always zero even when we know the link has been down.

    [root@r75 ~]# cat /proc/net/bonding/bond0 
    Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
    
    Bonding Mode: IEEE 802.3ad Dynamic link aggregation
    Transmit Hash Policy: layer2 (0)
    MII Status: up
    MII Polling Interval (ms): 100
    Up Delay (ms): 0
    Down Delay (ms): 0
    
    802.3ad info
    LACP rate: fast
    Min links: 0
    Aggregator selection policy (ad_select): stable
    System priority: 65535
    System MAC address: 52:54:00:b5:ba:8b
    Active Aggregator Info:
        Aggregator ID: 2
        Number of ports: 1
        Actor Key: 9
        Partner Key: 1
        Partner Mac Address: 6e:50:47:d6:00:46
    
    Slave Interface: ens10
    MII Status: up
    Speed: 1000 Mbps
    Duplex: full
    Link Failure Count: 0
    Permanent HW addr: 52:54:00:b5:ba:8b
    Slave queue ID: 0
    Aggregator ID: 2
    Actor Churn State: none
    Partner Churn State: none
    Actor Churned Count: 0
    Partner Churned Count: 0
    details actor lacp pdu:
        system priority: 65535
        system mac address: 52:54:00:b5:ba:8b
        port key: 9
        port priority: 255
        port number: 1
        port state: 63
    details partner lacp pdu:
        system priority: 65534
        system mac address: 6e:50:47:d6:00:46
        oper key: 1
        port priority: 65535
        port number: 1
        port state: 63
    
    Slave Interface: ens11
    MII Status: down
    Speed: Unknown
    Duplex: Unknown
    Link Failure Count: 0
    Permanent HW addr: 52:54:00:50:d2:0f
    Slave queue ID: 0
    Aggregator ID: 1
    Actor Churn State: churned
    Partner Churn State: churned
    Actor Churned Count: 1
    Partner Churned Count: 1
    details actor lacp pdu:
        system priority: 65535
        system mac address: 52:54:00:b5:ba:8b
        port key: 0
        port priority: 255
        port number: 2
        port state: 71
    details partner lacp pdu:
        system priority: 65535
        system mac address: 00:00:00:00:00:00
        oper key: 1
        port priority: 255
        port number: 1
        port state: 1
    
  • Additionally, an LACP bond with multiple aggregators will not failover as expected to the backup aggregator when the current aggregator's bandwidth drops due to a link down event.

Environment

  • Red Hat Enterprise Linux 7.6
  • Red Hat Enterprise Linux 7.5
  • Bonding LACP (mode 4)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content