華爲S5700與思科4948做科鏈路聚合,王海軍老師告訴你

1,問題描述

華為S5700與思科4948做科鏈路聚合,王海軍老師告訴你

華為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。


分享到:


相關文章: