SW2#show spanning-tree
VLAN0002
Spanning tree enabled protocol ieee
Root ID Priority 2
Address 0016.46b3.7180
Cost 12
Port 65 (Port-channel1)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 8194 (priority 8192 sys-id-ext 2)
Address 0018.730e.6c80
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Fa0/24 Altn BLK 19 128.24 P2p
Po1 Root FWD 12 128.65 P2p
Po2 Altn BLK 12 128.66 P2p
VLAN0003
Spanning tree enabled protocol ieee
Root ID Priority 3
Address 0018.730e.6c80
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 3 (priority 0 sys-id-ext 3)
Address 0018.730e.6c80
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Fa0/24 Desg FWD 19 128.24 P2p
Po1 Desg FWD 12 128.65 P2p
Po2 Desg FWD 12 128.66 P2p
保证交换机每个连接主机的接口(SW1 的Fa0/11 和Fa0/12),快速启用并且只连接一台PC,
如果违反该安全规则,则关闭该端口。但被关闭的端口符合规则,30s后自动那个开启该端
口。