本帖最后由 xupeng 于 2015-10-28 08:13 编辑 提问: =======2条链路捆绑LACP port channel,如果误配portchannel号会怎样?Topology:========
-Hardware:WS-C3560E-48PD-Software:c3560e-universalk9-mz.122-55.SE8.bin
Configure:==========switch1(config)#intrange g0/23-24switch1(config-if-range)#channel-group1 mode active
switch2(config)#int range g0/23-24switch2(config-if-range)#channel-group 1 mode active
EtherChannel status:==================
switch1#shetherchannel summaryFlags: 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
Numberof channel-groups in use: 1
Numberof aggregators: 1
Group Port-channel Protocol Ports
------+-------------+-----------+-----------------------------------------------
1 Po1(SU) LACP Gi0/23(P) Gi0/24(P)
switch2#showetherchannel 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
Numberof channel-groups in use: 1
Numberof aggregators: 1
Group Port-channel Protocol Ports
------+-------------+-----------+-----------------------------------------------
1 Po1(SU) LACP Gi0/23(P) Gi0/24(P)
Mis-config interface g0/23 to port-channel 2===========================switch1(config)#intg0/23
switch1(config-if)#channel-group2 mode active
Creatinga port-channel interface Port-channel 2
EtherChannel status:==================switch1#showetherchannel 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
Numberof channel-groups in use: 2
Numberof aggregators: 2
Group Port-channel Protocol Ports
------+-------------+-----------+-----------------------------------------------
1 Po1(SU) LACP Gi0/24(P)
2 Po2(SD) LACP Gi0/23(H)
switch2#showetherchannel 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
Numberof channel-groups in use: 1
Numberof aggregators: 1
Group Port-channel Protocol Ports
------+-------------+-----------+-----------------------------------------------
1 Po1(SU) LACP Gi0/23(s) Gi0/24(P)
shutdown interface
===============
switch1(config)#intg0/24
switch1(config-if)#shut
EtherChannel status:==================switch1#showetherchannel 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
Numberof channel-groups in use: 2
Numberof aggregators: 2
Group Port-channel Protocol Ports
------+-------------+-----------+-----------------------------------------------
1 Po1(SD) LACP Gi0/24(D)
2 Po2(SU) LACP Gi0/23(P)
switch2#show etherchannel 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
Numberof channel-groups in use: 1
Numberof aggregators: 1
Group Port-channel Protocol Ports
------+-------------+-----------+-----------------------------------------------
1 Po1(SU) LACP Gi0/23(P) Gi0/24(D)
总结:
=====
当误配LACP portchannel号, 误配的链路将进入hot-standby状态,当主链路故障,hot-standby链路up成为主用链路