- PC>ping 192.168.1.3
-
- Ping 192.168.1.3: 32 data bytes, Press Ctrl_C to break
- From 192.168.1.3: bytes=32 seq=1 ttl=128 time=47 ms
- From 192.168.1.3: bytes=32 seq=2 ttl=128 time=63 ms
- From 192.168.1.3: bytes=32 seq=3 ttl=128 time=47 ms
- From 192.168.1.3: bytes=32 seq=4 ttl=128 time=47 ms
- From 192.168.1.3: bytes=32 seq=5 ttl=128 time=47 ms
-
- --- 192.168.1.3 ping statistics ---
- 5 packet(s) transmitted
- 5 packet(s) received
- 0.00% packet loss
- round-trip min/avg/max = 47/50/63 ms
-
- PC>ping 192.168.1.2
-
- Ping 192.168.1.2: 32 data bytes, Press Ctrl_C to break
- From 192.168.1.2: bytes=32 seq=1 ttl=128 time=47 ms
- From 192.168.1.2: bytes=32 seq=2 ttl=128 time=47 ms
- From 192.168.1.2: bytes=32 seq=3 ttl=128 time=78 ms
- From 192.168.1.2: bytes=32 seq=4 ttl=128 time=62 ms
- From 192.168.1.2: bytes=32 seq=5 ttl=128 time=47 ms
-
- --- 192.168.1.2 ping statistics ---
- 5 packet(s) transmitted
- 5 packet(s) received
- 0.00% packet loss
- round-trip min/avg/max = 47/56/78 ms
-
- PC>ping 192.168.1.1
-
- Ping 192.168.1.1: 32 data bytes, Press Ctrl_C to break
- From 192.168.1.1: bytes=32 seq=1 ttl=128 time<1 ms
- From 192.168.1.1: bytes=32 seq=2 ttl=128 time<1 ms
- From 192.168.1.1: bytes=32 seq=3 ttl=128 time<1 ms
- From 192.168.1.1: bytes=32 seq=4 ttl=128 time<1 ms
- From 192.168.1.1: bytes=32 seq=5 ttl=128 time<1 ms
-
- --- 192.168.1.1 ping statistics ---
- 5 packet(s) transmitted
- 5 packet(s) received
- 0.00% packet loss
- round-trip min/avg/max = 0/0/0 ms
-
MSTID Port Role STP State Protection
0 GigabitEthernet0/0/2 DESI(指定端口) FORWARDING NONE
0 GigabitEthernet0/0/3 ROOT (根端口) FORWARDING NONE
树形的网络结构必须有树根,于是STP引入了根桥的概念。根桥在全网中有且只有一个,其他设备则称为叶子节点。根桥会根据网络拓扑的变化而改变,因此根桥并不是固定的。
在网络初始化过程中,所有设备都视自己为根桥,生成各自的配置BPDU并周期性地向外发送;但当网络拓扑稳定以后,只有根桥设备才会向外发送配置BPDU,其他设备则对其进行转发
display stp
-------[CIST Global Info][Mode STP]-------
CIST Bridge :32768.4c1f-cc21-1576
Config Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
Active Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
CIST Root/ERPC :32768.4c1f-cc21-1576 / 0
CIST RegRoot/IRPC :32768.4c1f-cc21-1576 / 0
CIST RootPortId :0.0
BPDU-Protection :Disabled
TC or TCN received :20
TC count per hello :0
STP Converge Mode :Normal
Time since last TC :0 days 0h:12m:1s
Number of TC :9
Last TC occurred :GigabitEthernet0/0/1
display stp
-------[CIST Global Info][Mode STP]-------
CIST Bridge :32768.4c1f-cc25-761b
Config Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
Active Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
CIST Root/ERPC :32768.4c1f-cc21-1576 / 20000
CIST RegRoot/IRPC :32768.4c1f-cc25-761b / 0
CIST RootPortId :128.3
BPDU-Protection :Disabled
TC or TCN received :34
TC count per hello :0
STP Converge Mode :Normal
Time since last TC :0 days 0h:21m:8s
Number of TC :9
Last TC occurred :GigabitEthernet0/0/3
display stp
-------[CIST Global Info][Mode STP]-------
CIST Bridge :32768.4c1f-ccd5-1167
Config Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
Active Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
CIST Root/ERPC :32768.4c1f-cc21-1576 / 20000
CIST RegRoot/IRPC :32768.4c1f-ccd5-1167 / 0
CIST RootPortId :128.3
BPDU-Protection :Disabled
TC or TCN received :58
TC count per hello :0
STP Converge Mode :Normal
Time since last TC :0 days 0h:22m:12s
Number of TC :7
Last TC occurred :GigabitEthernet0/0/3
操作 | 命令 |
显示生成树的状态和统计信息 | (独立运行模式) display stp [ instance instance-list | vlan vlan-id-list ] [ interface interface-list | slot slot-number ] [ brief ] (IRF模式) display stp [ instance instance-list | vlan vlan-id-list ] [ interface interface-list | chassis chassis-number slot slot-number ] [ brief ] |
显示生成树端口角色计算的历史信息 | (独立运行模式) display stp [ instance instance-list | vlan vlan-id-list ] history [ slot slot-number ] (IRF模式) display stp [ instance instance-list | vlan vlan-id-list ] history [ chassis chassis-number slot slot-number ] |
显示生成树所有端口收发的TC或TCN报文数 | (独立运行模式) display stp [ instance instance-list | vlan vlan-id-list ] tc [ slot slot-number ] (IRF模式) display stp [ instance instance-list | vlan vlan-id-list ] tc [ chassis chassis-number slot slot-number ] |
显示被生成树保护功能阻塞的端口历史信息 | display stp abnormal-port |
显示端口上的BPDU统计信息 | display stp bpdu-statistics [ interface interface-type interface-number [ instance instance-list ] ] |
显示被生成树保护功能down掉的端口信息 | display stp down-port |
显示已开启VLAN Ignore功能的VLAN列表 | display stp ignored-vlan |
显示被环路检测锁定的VLAN列表 | (暂不支持)display stp protected-vlan |
显示生效的MST域配置信息 | display stp region-configuration |
显示所有生成树的根桥信息 | display stp root |
清除生成树的统计信息 | reset stp [ interface interface-list ] |