Professional Documents
Culture Documents
(https://access.redhat.com/)
Environment
Red Hat Enterprise Linux - all versions
Cisco Switch that supports lacp bonding
Issue
Four network devices setup in bonding mode 4 link aggregation control protocol(lacp,802.ad)
show 4 aggregation ids with the number of ports in the aggregation is 1. Additionally, the
Partner Mac Address: value registers a null-value.
https://access.redhat.com/solutions/160283 1/11
5/20/2020 Bonding does not work using mode 4 802.3ad(LACP) - Red Hat Customer Portal
(https://access.redhat.com/)
Ethernet Channel Bonding Driver: v3.6.0 (September 26, 2009)
Bonding Mode: IEEE 802.3ad Dynamic link aggregation
Transmit Hash Policy: layer2 (0)
MII Status: up
MII Polling Interval (ms): 200
Up Delay (ms): 0
Down Delay (ms): 0
802.3ad info
LACP rate: slow
Aggregator selection policy (ad_select): stable
Active Aggregator Info:
Aggregator ID: 2
Number of ports: 1
Actor Key: 17
Partner Key: 1
Partner Mac Address: 00:00:00:00:00:00
https://access.redhat.com/solutions/160283 2/11
5/20/2020 Bonding does not work using mode 4 802.3ad(LACP) - Red Hat Customer Portal
(https://access.redhat.com/)
Resolution
If LACP is using one switch, (single mode), then the aggregator ID will be the same number.
If LACP is using two switches, then the aggregator ID will be different numbers.
Disclaimer: Steps contained herein from third-party vendor(s) are provided for convenience only.
Red Hat has not reviewed the steps and is not responsible for the content or its availability. The
inclusion of any instructions from a third-party vendor does not imply endorsement by Red Hat of
the website or their entities, products or services. You agree that Red Hat is not responsible or liable
for any loss or expenses that may result due to your use of (or reliance on) these steps.
Etherchannel: no int poX , with X being the previously configured channel group.
Vlan Configurations 'no interface vlanx` with X being the vlan number.
Interfaces default interface gi0/1 with GI representing GigabitEthernet, replace this
with your type.
interface GigabitEthernet1/0/1
description XenServer1 - eth0
switchport trunk encapsulation dot1q
switchport trunk native vlan 2
switchport trunk allowed vlan 2-11
switchport mode trunk # if lacp doesnt work, you may want to try `switchport mode access`
speed 1000
duplex full
channel-protocol lacp # This step is requirement if you require lacp
channel-group 2 mode active # This step will create the port channel 2
no shutdown
https://access.redhat.com/solutions/160283 3/11
5/20/2020 Bonding does not work using mode 4 802.3ad(LACP) - Red Hat Customer Portal
STEP 3 - Configure(https://access.redhat.com/)
EtherChannel
Configure the EtherChannel listed below. Verify that the VLAN configuration that is entered to
the overlying Port-channel layer matches the underlying interface configuration.
interface Port-channel1
description Etherchannel Team for XenServer1
switchport trunk encapsulation dot1q
switchport trunk native vlan 2
switchport trunk allowed vlan 2-11
switchport mode trunk
spanning-tree portfast
spanning-tree bpduguard enable
no shutdown
Make sure things are configured properly by running the follow commands.
https://access.redhat.com/solutions/160283 4/11
5/20/2020 Bonding does not work using mode 4 802.3ad(LACP) - Red Hat Customer Portal
Root Cause
Whilst it can be a valid configuration to have "slaves to active aggregator" less than "total
slaves in bond", or even one slave per aggregator ID, in this instance it was desired to have all 4
slaves in the one aggregator.
Improper switch configuration was causing the bond to show different link Aggregation IDs,
only 1 port in each aggregator, and a Partner MAC of all zeros.
Partner MAC address that contain all zeros can also be caused by a duplicate mac address.
After removing the duplicate mac address, the lacp was able to resume operating normally.
Diagnostic Steps
Verify the bonding and interface scripts in the etc/sysconfig/network-scripts directory are
configured correctly.
https://access.redhat.com/solutions/160283 5/11
5/20/2020 Bonding does not work using mode 4 802.3ad(LACP) - Red Hat Customer Portal
DEVICE="eth1"
(https://access.redhat.com/)
HWADDR="xx:xx:xx:xx:xx:7A"
ONBOOT="yes"
BOOTPROTO="none"
MASTER="bond1"
SLAVE="yes"
USERCTL="no"
DEVICE="eth10"
HWADDR="xx:xx:xx:xx:xx:xx"
ONBOOT="yes"
BOOTPROTO="none"
MASTER="bond1"
SLAVE="yes"
USERCTL="no"
DEVICE="eth2"
HWADDR="xx:xx:xx:xx:xx:xx"
ONBOOT="yes"
BOOTPROTO="none"
MASTER="bond1"
SLAVE="yes"
USERCTL="no"
DEVICE="eth9"
HWADDR="xx:xx:xx:xx:xx:xx"
ONBOOT="yes"
BOOTPROTO="none"
MASTER="bond1"
SLAVE="yes"
USERCTL="no"
DEVICE="bond1"
ONBOOT="yes"
BOOTPROTO="none"
IPADDR="192.168.0.2"
NETMASK="255.255.255.0"
USERCTL="no"
BONDING_OPTS="mode=4 miimon=100"
Look at the switch configuration and the etherchannel summary for the bond. It only shows 1
active port for the etherchannel set in place. Also, the switch configuration below
demonstrates that the individual interface configuration does not match the EtherChannel
show command output.
https://access.redhat.com/solutions/160283 6/11
5/20/2020 Bonding does not work using mode 4 802.3ad(LACP) - Red Hat Customer Portal
interface GigabitEthernet2/0/1
description XenServer1 - eth1
switchport trunk encapsulation dot1q
switchport trunk native vlan 2
switchport trunk allowed vlan 2-11
switchport mode trunk
speed 1000
duplex full
channel-protocol lacp
channel-group 2 mode active
https://access.redhat.com/solutions/160283 7/11
5/20/2020 Bonding does not work using mode 4 802.3ad(LACP) - Red Hat Customer Portal
(https://access.redhat.com/)
[root@MYOPTPDN19 Desktop]# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
802.3ad info
LACP rate: slow
Min links: 0
Aggregator selection policy (ad_select): stable
Active Aggregator Info:
Aggregator ID: 3
Number of ports: 1 <---- only one member
Actor Key: 13
Partner Key: 1
Partner Mac Address: 00:00:00:00:00:00
https://access.redhat.com/solutions/160283 8/11
5/20/2020 Bonding does not work using mode 4 802.3ad(LACP) - Red Hat Customer Portal
This means that the bond is not aggregating. In the above example two aggregator's are
created with one individual port in each interface.
Check the switch configuration if it is LACP enabled for both ports.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions
that Red Hat engineers have created while supporting our customers. To give you the knowledge
you need the instant it becomes available, these articles may be presented in a raw and unedited
form.
LACP bond does not change the Aggregator ID of a slave without detected link.
LACP bond mode 4 slaves get different aggregation id. switch and servers configs look
https://access.redhat.com/solutions/160283 9/11
5/20/2020 Bonding does not work using mode 4 802.3ad(LACP) - Red Hat Customer Portal
g gg g g
(https://access.redhat.com/)
correct
Solution - Sep 13, 2017
1 Comments
24 September 2014 3:51 PM (https://access.redhat.com/solutions/160283#comment-821573)
MR Manoj Rana Rana (/user/8293993)
(/user/8293993)
----total-cpu-usage---- -dsk/total- -net/bond0----net/eth0----net/eth1----
NEWBIE net/eth2----net/eth3- ---paging-- ---system--
5 Points usr sys idl wai hiq siq| read writ| recv send: recv send: recv send: recv send: recv send| in
out | int csw
0 1 97 2 0 0| 20M 3423k| 0 0 : 0 0 : 0 0 : 0 0 : 0 0 | 0 0 | 12k 12k
0 0 100 0 0 0| 0 16k|1532B 2432B:1160B 1394B: 124B 790B: 0 0 : 248B 248B| 0 0 | 160
138
0 0 100 0 0 0| 0 388k|1530B 1536B: 796B 642B: 124B 646B: 610B 248B: 0 0 | 0 0 |
306 330
0 0 100 0 0 0| 0 392k|4949B 1536B:4577B 642B: 124B 646B: 0 0 : 248B 248B| 0 0 |
314 288
0 0 100 0 0 0| 0 28k|7573B 1536B:6188B 642B: 124B 646B:1261B 248B: 0 0 | 0 0 | 316
368
0 0 100 0 0 0| 0 0 | 984B 2733B: 612B 642B: 124B 646B: 0 0 : 248B 1445B| 0 0 | 228
142
0 0 100 0 0 0| 0 0 |1515B 1536B: 612B 642B: 124B 646B: 779B 248B: 0 0 | 0 0 | 266
322
0 0 100 0 0 0| 0 40k|5197B 2423B:4825B 1529B: 124B 646B: 0 0 : 248B 248B| 0 0 |
622 561
0 0 100 0 0 0| 0 28k|3040B 11k:1096B 642B: 124B 646B:1820B 10k: 0 0 | 0 0 | 311 410
https://access.redhat.com/solutions/160283 10/11
5/20/2020 Bonding does not work using mode 4 802.3ad(LACP) - Red Hat Customer Portal
0 0 100 0 0 0| 708k 452k| 13k 2301B: 13k 642B: 124B 662B: 0 0 : 248B 997B| 0 0 | 452
(https://access.redhat.com/)
479
0 0 100 0 0 0| 0 0 |1640B 1568B: 677B 658B: 124B 662B: 839B 248B: 0 0 | 0 0 | 294
342
0 0 100 0 0 0| 0 124k| 892B 3586B: 520B 642B: 124B 1366B: 0 0 : 248B 1578B| 0 0 |
292 202 ^C
≤ Reply (/Ajax_comments/Reply/160283/821573)
https://access.redhat.com/solutions/160283 11/11