CentOS-Cisco2960 LACP not working

Issues related to configuring your network
Post Reply
morris.pang
Posts: 2
Joined: 2018/12/04 07:35:23

CentOS-Cisco2960 LACP not working

Post by morris.pang » 2018/12/04 08:08:00

I tried bonding 2 NIC in CentOS 7 to cisco 2960 configured as LACP active but it went to Stand-alone Flags on Cisco.
Then i use channel-group mode "on", 2 ports successfully bundled but protocol state " - " (unknown, not LACP).
Did I missout something on CentOS bond0 config? I believe my cisco was correct.

Here are my config on CentOS
/etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
NAME=bond0
BONDING_MASTER=yes
IPADDR=172.16.1.11
PREFIX=24
GATEWAY=172.16.1.1
ONBOOT=yes
BOOTPROTO=none
BONDING_OPTS="mode=4 lacp_rate=1 miimon=100"
USERCTL=no
slave interface
/etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
NAME=bond_slave1
TYPE=Ethernet
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
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: ee:68:97:c2:0a:bd
Active Aggregator Info:
Aggregator ID: 1
Number of ports: 1
Actor Key: 0
Partner Key: 1
Partner Mac Address: 00:00:00:00:00:00

Slave Interface: eth1
MII Status: up
Speed: Unknown
Duplex: Unknown
Link Failure Count: 0
Permanent HW addr: ee:68:97:c2:0a:bd
Slave queue ID: 0
Aggregator ID: 1
Actor Churn State: none
Partner Churn State: churned
Actor Churned Count: 0
Partner Churned Count: 1
details actor lacp pdu:
system priority: 65535
system mac address: ee:68:97:c2:0a:bd
port key: 0
port priority: 255
port number: 1
port state: 77
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

Slave Interface: eth2
MII Status: up
Speed: Unknown
Duplex: Unknown
Link Failure Count: 0
Permanent HW addr: 7a:e5:e1:13:65:b5
Slave queue ID: 0
Aggregator ID: 2
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: ee:68:97:c2:0a:bd
port key: 0
port priority: 255
port number: 2
port state: 69
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
etherchannel summary on cisco
Flags: D - down P - bundled in port-channel
I - stand-alone s - suspended
H - Hot-standby (LACP only)
R - Layer3 S - Layer2
U - in use f - failed to allocate aggregator

M - not in use, minimum links not met
u - unsuitable for bundling
w - waiting to be aggregated
d - default port


Number of channel-groups in use: 2
Number of aggregators: 2

Group Port-channel Protocol Ports
------+-------------+-----------+-----------------------------------------------
1 Po1(SD) LACP Gi1/0/13(I) Gi1/0/14(I)
Last edited by morris.pang on 2018/12/05 01:27:59, edited 1 time in total.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CentOS-Cisco2960 LACP not working

Post by TrevorH » 2018/12/04 09:11:54

What is the output from uname -a on CentOS?

Your config specifies lacp_rate=1 but the detail display in /proc says it's using "slow" (0). Did you remove and reload the bonding module after adding lacp_rate=1?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

morris.pang
Posts: 2
Joined: 2018/12/04 07:35:23

Re: CentOS-Cisco2960 LACP not working

Post by morris.pang » 2018/12/05 01:29:12

lacp_rate updated correctly.

Here's the output uname -a

Code: Select all

Linux mail 3.10.0-862.14.4.el7.x86_64 #1 SMP Wed Sep 26 15:12:11 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
output of 'lspci -v'

Code: Select all

[root@mail ~]# lspci -v
00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
        Subsystem: Red Hat, Inc. Qemu virtual machine
        Flags: bus master, fast devsel, latency 0

00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
        Subsystem: Red Hat, Inc. Qemu virtual machine
        Physical Slot: 1
        Flags: bus master, medium devsel, latency 0

00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II] (prog-if 80 [Master])
        Subsystem: XenSource, Inc. Device 0001
        Physical Slot: 1
        Flags: bus master, medium devsel, latency 0
        [virtual] Memory at 000001f0 (32-bit, non-prefetchable) [size=8]
        [virtual] Memory at 000003f0 (type 3, non-prefetchable)
        [virtual] Memory at 00000170 (32-bit, non-prefetchable) [size=8]
        [virtual] Memory at 00000370 (type 3, non-prefetchable)
        I/O ports at c420 [size=16]
        Kernel driver in use: ata_piix
        Kernel modules: ata_piix, pata_acpi, ata_generic

00:01.2 USB controller: Intel Corporation 82371SB PIIX3 USB [Natoma/Triton II] (rev 01) (prog-if 00 [UHCI])
        Subsystem: XenSource, Inc. Device 0001
        Physical Slot: 1
        Flags: bus master, fast devsel, latency 0, IRQ 23
        I/O ports at c400 [size=32]
        Kernel driver in use: uhci_hcd

00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 01)
        Subsystem: Red Hat, Inc. Qemu virtual machine
        Physical Slot: 1
        Flags: bus master, medium devsel, latency 0, IRQ 9
        Kernel modules: i2c_piix4

00:02.0 VGA compatible controller: Device 1234:1111 (prog-if 00 [VGA controller])
        Subsystem: XenSource, Inc. Device 0001
        Physical Slot: 2
        Flags: bus master, fast devsel, latency 0
        Memory at f1000000 (32-bit, prefetchable) [size=8M]
        Expansion ROM at <unassigned> [disabled]
        Kernel driver in use: bochs-drm
        Kernel modules: bochs_drm

00:03.0 SCSI storage controller: XenSource, Inc. Xen Platform Device (rev 02)
        Subsystem: XenSource, Inc. Xen Platform Device
        Physical Slot: 3
        Flags: bus master, fast devsel, latency 0, IRQ 28
        I/O ports at c000 [size=256]
        Memory at f0000000 (32-bit, prefetchable) [size=16M]
        Kernel driver in use: xen-platform-pci

[root@mail ~]#

Post Reply