目标
目的是设置 LACP。
/etc/modprobe.d/bonding.conf
alias bond0 bonding
options bond0 miimon=100 mode=4 lacp_rate=1
/etc/sysconfig/network-scripts/ifcfg-bond0
ONBOOT=yes
BOOTPROTO=static
USERCTL=no
DEVICE=bond0
IPADDR=X
GATEWAY=Y
PREFIX=24
/etc/sysconfig/network-scripts/ifcfg-eth0
ONBOOT=yes
BOOTPROTO=static
USERCTL=no
DEVICE=eth0
MASTER=bond0
SLAVE=yes
以太通道
switch#show etherchannel X summary
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: 3
Number of aggregators: 3
Group Port-channel Protocol Ports
------+-------------+-----------+-----------------------------------------------
X PoX(SD) LACP Gi0/A(I) Gi0/B(I) Gi0/C(I)
Gi0/D(I)
interface Port-channelX
switchport mode access
!
端口
interface GigabitEthernet0/A
switchport access vlan X
switchport mode access
channel-protocol lacp
channel-group X mode active
!
日志
Mar 2 11:17:50.529: %SW_MATM-4-MACFLAP_NOTIF: Host <MAC_ADDRESS> in vlan X is flapping
between port Gi0/Y and port Gi0/Z
问题
一旦在 Linux 服务器上重新启动网络服务,从属以太网适配器就会启动并且系统仍然可以访问:
- 为什么 Cisco 日志指示主机在端口之间摆动?
- 为什么可以在端口通道关闭时访问系统?