1,问题描述
华为S5700交换机与思科4948交换互连,两条线路做链路聚合后,在S5700交换机ping思科交换机的状态下, 拔掉其中一条线路,模拟出现故障的情况,发现拔掉其中一条线路出现丢一个包,拔掉另一条线路出现丢7个包的情况。
[S5700]ping -c 100 12.0.0.1
PING 12.0.0.1: 56 data bytes, press CTRL_C to break
Reply from 12.0.0.1: bytes=56 Sequence=1 ttl=255 time=40 ms
Reply from 12.0.0.1: bytes=56 Sequence=2 ttl=255 time=40 ms
Reply from 12.0.0.1: bytes=56 Sequence=3 ttl=255 time=30 ms
Reply from 12.0.0.1: bytes=56 Sequence=4 ttl=255 time=30 ms
Reply from 12.0.0.1: bytes=56 Sequence=5 ttl=255 time=30 ms
Request time out
Mar 26 2016 20:12:18-08:00 SW2 %%01PHY/1/PHY(l)[31]: GigabitEthernet0/0/1: change status to down
Request time out
Request time out
Request time out
Request time out
Request time out
Request time out
Reply from 12.0.0.1: bytes=56 Sequence=8 ttl=255 time=50 ms
Reply from 12.0.0.1: bytes=56 Sequence=9 ttl=255 time=30 ms
Reply from 12.0.0.1: bytes=56 Sequence=10 ttl=255 time=50 ms
华为S5700交换机配置如下
#
interface Eth-Trunk1
mode lacp
#
interface GigabitEthernet0/0/1
eth-trunk 1
#
interface GigabitEthernet0/0/2
eth-trunk 1
#
思科4948交换机配置
interface Port-channel1
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface Ethernet0/0
switchport trunk encapsulation dot1q
switchport mode trunk
channel-protocol lacp
channel-group 1 mode active
!
interface Ethernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
channel-protocol lacp
channel-group 1 mode active
2,处理过程
检查stp状态,发现两台设备上都运行了stp
在华为3560交换机上输入
[Huawei]stp disable
在思科4848交换机上输入
cisco(config)#no spanning-tree vlan 1
这时候再做拔线的测试,就不出现丢包的现象了
3,根因
由于两台设备都运行了stp,在切断线路的时候设备之间要进行stp的计算,导致出现短时间内丢包的现象。
4,建议与总结
在与其他厂商的设备做链路捆绑的时候,为了保证捆绑的链路,不受其中一条线路中断的影响,可以根据实际情况选择性的关闭stp。
閱讀更多 王海軍老師 的文章