H3C交换机 回环检测配置:
[H3C]loopback-detection global enable vlan all //全局开启环路检测,并对所有的VLAN生效
[H3C]loopback-detection global action shutdown #全局配置环路检测的处理模式为Shutdown模式
[H3C]loopback-detection interval-time 35 # 配置环路检测的时间间隔为35秒
========================关毕STP,回环才会执行 shutdown =========================
[H3C]undo stp
[H3C]undo stp gl
[H3C]undo stp global e
#####################################################
[H3C]stp global en
<H3C>dis stp brief
MST ID Port Role STP State Protection
0 GigabitEthernet1/0/2 DESI FORWARDING NONE
0 GigabitEthernet1/0/7 DESI FORWARDING NONE
0 GigabitEthernet1/0/16 DESI FORWARDING NONE
0 GigabitEthernet1/0/26 DESI FORWARDING NONE
0 GigabitEthernet1/0/33 DESI FORWARDING NONE
0 GigabitEthernet1/0/39 DESI FORWARDING NONE
0 GigabitEthernet1/0/41 DESI FORWARDING NONE
0 GigabitEthernet1/0/47 BACK DISCARDING NONE #端口被stp阻塞
0 GigabitEthernet1/0/48 DESI FORWARDING NONE