问题描述
某局点2台汇聚设备为华为交换机S9706,接入设备有多台,部分为思科交换机3720,部分为华为S7706,三角形组网,S9706配置VRRP+MSTP实现网关冗余。组网图如下:

问题现象是在对思科接入交换机做MSTP配置后,思科设备上的三层接口(vlanif 100)频繁up/down。
MSTP对接配置如下:
主备S9706配置:
stp region-configuration
region-name mstp
revision-level 1
instance 1 vlan 100 110 200 210 320 330 340 360 380 420
instance 1 vlan 430 440 460 480 510
instance 2 vlan 500 520
active region-configuration
思科3750配置:
spanning-tree mode mst
spanning-tree extend system-id
!
spanning-tree mst configuration
name mstp
revision 1
instance 1 vlan 100, 110, 200, 210, 320, 330, 340, 360, 380, 420, 430
instance 1 vlan 440, 460, 480, 510
instance 2 vlan 500, 520
告警信息
思科设备日志信息:
*Apr 16 07:47:36: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan100, changed state to down
*Apr 16 07:47:37: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan100, changed state to up
处理过程
由于思科设备3750在修改为mstp模式后才出现三层接口频繁up/down,未修改前stp模式为pvst,三层接口状态正常,于是首先排查设备上的stp状态。
查看stp状态如下:
GS_KZX_OA_SW_4#show spanning-tree
MST0
Spanning tree enabled protocol mstp
Root ID Priority 0
Address 4cf9.5d75.4540
Cost 0
Port 1 (GigabitEthernet1/0/1)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32768 (priority 32768 sys-id-ext 0)
Address 0021.1ba4.a700
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Gi1/0/1 Root BKN*20000 128.1 P2p Bound(PVST) *PVST_Inc
Fa1/0/3 Desg FWD 2000000 128.5 P2p
Fa1/0/11 Desg FWD 2000000 128.13 P2p
MST1
Spanning tree enabled protocol mstp
Root ID Priority 32769
Address 0021.1ba4.a700
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32769 (priority 32768 sys-id-ext 1)
Address 0021.1ba4.a700
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Gi1/0/1 Root FWD 20000 128.1 P2p *PVST_Inc
MST2
Spanning tree enabled protocol mstp
Root ID Priority 2
Address 4cf9.5d75.44e0
Cost 30000
Port 1 (GigabitEthernet1/0/1)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32770 (priority 32768 sys-id-ext 2)
Address 0021.1ba4.a700
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Gi1/0/1 Root FWD 20000 128.1 P2p *PVST_Inc
Fa1/0/3 Desg BLK 2000000 128.5 P2p
Fa1/0/11 Desg BLK 2000000 128.13 P2p
从如上信息可以发现设备收到了其它设备发过来的pvst bpdu报文,同时bpdu中的桥ID更优,导致GI1/0/1进入根保护状态(Gi1/0/1 Root BKN*20000 128.1 P2p Bound(PVST) *PVST_Inc),端口discarding,进而导致vlanif100接口状态down,说明:设备上只有Gi1/0/1加入了vlan100.
根因
根因是现网环境其它思科设备发出的pvst bpdu报文到汇聚交换机(s9706)后,S9706进行了转发,配置为mstp模式的思科收到pvst bpdu后进入了根保护状态,导致三层接口up/down。
解决方案
修改现网环境中其它思科设备的stp模式为mstp。
建议与总结
华为交换机与思科交换机做mstp对接的时候需要保持全网设备均为mstp的模式,避免非mstp模式的设备发出的bpdu报文影响现网拓扑。