![]() |
查看STP信息
命令:show spanning-tree
Switch#sh spanning-tree
VLAN0001//交换机默认带有的VLAN
Spanning tree enabled protocol ieee//启用生成树协议
Root ID Priority 32769 //32769优先级
Address 0000.0C57.2C55
Cost 38 //38为开销值
Port 1(FastEthernet0/1)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 secBridge ID Priority 32769 (priority 32768 sys-id-ext 1)
Address 0090.2BDB.09E4
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 20Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/1 Root FWD 19 128.1 P2p
Fa0/2 Altn BLK 19 128.2 P2p
Fa0/24 Desg FWD 19 128.24 P2pVLAN0010//手工建立的VLAN
Spanning tree enabled protocol ieee
Root ID Priority 10 //10为当前交换机对VLAN10的优先级
Address 0090.2BDB.09E4
This bridge is the root //root表示当前交换机是VLAN10的根网桥
Hello Time 2 sec Max Age 20 sec Forward Delay 15 secBridge ID Priority 10 (priority 0 sys-id-ext 10)
Address 0090.2BDB.09E4
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 20Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/1 Desg FWD 19 128.1 P2p
Fa0/2 Desg FWD 19 128.2 P2p
Fa0/24 Desg FWD 19 128.24 P2pVLAN0020//手工建立第二个VLAN
Spanning tree enabled protocol ieee
Root ID Priority 20 //20为当前交换机对VLAN20的优先级
Address 0090.2BDB.09E4
This bridge is the root//root表示当前交换机是VLAN10的根网桥
Hello Time 2 sec Max Age 20 sec Forward Delay 15 secBridge ID Priority 20 (priority 0 sys-id-ext 20)
Address 0090.2BDB.09E4
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 20Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/1 Desg FWD 19 128.1 P2p
Fa0/2 Desg FWD 19 128.2 P2p
Fa0/24 Desg FWD 19 128.24 P2pSwitch#