SW1#sh sp br
VLAN1
Spanning tree enabled protocol ieee
Root ID Priority 8192
Address cc00.0e94.0000
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 8192
Address cc00.0e94.0000
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300
Interface Designated
Name Port ID Prio Cost Sts Cost Bridge ID Port ID
-------------------- ------- ---- ----- --- ----- -------------------- -------
FastEthernet0/0 128.1 128 19 FWD 0 8192 cc00.0e94.0000 128.1
FastEthernet0/1 128.2 128 19 FWD 0 8192 cc00.0e94.0000 128.2
FastEthernet0/2 128.3 128 19 FWD 0 8192 cc00.0e94.0000 128.3
FastEthernet0/3 128.4 128 19 FWD 0 8192 cc00.0e94.0000 128.4
VLAN10
Spanning tree enabled protocol ieee
Root ID Priority 8192
Address cc00.0e94.0001
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 8192
Address cc00.0e94.0001
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300
Interface Designated
Name Port ID Prio Cost Sts Cost Bridge ID Port ID
-------------------- ------- ---- ----- --- ----- -------------------- -------
FastEthernet0/0 128.1 128 19 FWD 0 8192 cc00.0e94.0001 128.1
FastEthernet0/1 128.2 128 19 FWD 0 8192 cc00.0e94.0001 128.2
FastEthernet0/2 128.3 128 19 FWD 0 8192 cc00.0e94.0001 128.3
FastEthernet0/3 128.4 128 19 FWD 0 8192 cc00.0e94.0001 128.4
VLAN20
Spanning tree enabled protocol ieee
Root ID Priority 8192
Address cc01.0e94.0002
Cost 19
Port 1 (FastEthernet0/0)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 16384
Address cc00.0e94.0002
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300
Interface Designated
Name Port ID Prio Cost Sts Cost Bridge ID Port ID
-------------------- ------- ---- ----- --- ----- -------------------- -------
FastEthernet0/0 128.1 128 19 FWD 0 8192 cc01.0e94.0002 128.1
FastEthernet0/1 128.2 128 19 BLK 0 8192 cc01.0e94.0002 128.2
FastEthernet0/2 128.3 128 19 FWD 19 16384 cc00.0e94.0002 128.3
FastEthernet0/3 128.4 128 19 FWD 19 16384 cc00.0e94.0002 128.4
SW2#sh sp br
VLAN1
Spanning tree enabled protocol ieee
Root ID Priority 8192
Address cc00.0e94.0000
Cost 19
Port 1 (FastEthernet0/0)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 16384
Address cc01.0e94.0000
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300
Interface Designated
Name Port ID Prio Cost Sts Cost Bridge ID Port ID
-------------------- ------- ---- ----- --- ----- -------------------- -------
FastEthernet0/0 128.1 128 19 FWD 0 8192 cc00.0e94.0000 128.1
FastEthernet0/1 128.2 128 19 BLK 0 8192 cc00.0e94.0000 128.2
FastEthernet0/2 128.3 128 19 FWD 19 16384 cc01.0e94.0000 128.3
FastEthernet0/3 128.4 128 19 FWD 19 16384 cc01.0e94.0000 128.4
VLAN10
Spanning tree enabled protocol ieee
Root ID Priority 8192
Address cc00.0e94.0001
Cost 19
Port 1 (FastEthernet0/0)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 16384
Address cc01.0e94.0001
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300
Interface Designated
Name Port ID Prio Cost Sts Cost Bridge ID Port ID
-------------------- ------- ---- ----- --- ----- -------------------- -------
FastEthernet0/0 128.1 128 19 FWD 0 8192 cc00.0e94.0001 128.1
FastEthernet0/1 128.2 128 19 BLK 0 8192 cc00.0e94.0001 128.2
FastEthernet0/2 128.3 128 19 FWD 19 16384 cc01.0e94.0001 128.3
FastEthernet0/3 128.4 128 19 FWD 19 16384 cc01.0e94.0001 128.4
VLAN20
Spanning tree enabled protocol ieee
Root ID Priority 8192
Address cc01.0e94.0002
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 8192
Address cc01.0e94.0002
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300
Interface Designated
Name Port ID Prio Cost Sts Cost Bridge ID Port ID
-------------------- ------- ---- ----- --- ----- -------------------- -------
FastEthernet0/0 128.1 128 19 FWD 0 8192 cc01.0e94.0002 128.1
FastEthernet0/1 128.2 128 19 FWD 0 8192 cc01.0e94.0002 128.2
FastEthernet0/2 128.3 128 19 FWD 0 8192 cc01.0e94.0002 128.3
FastEthernet0/3 128.4 128 19 FWD 0 8192 cc01.0e94.0002 128.4
SW3#sh sp br
VLAN1
Spanning tree enabled protocol ieee uplinkfast enabled
Root ID Priority 8192
Address cc00.0e94.0000
Cost 3019
Port 1 (FastEthernet0/0)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 49152
Address cc02.0e94.0000
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300
Interface Designated
Name Port ID Prio Cost Sts Cost Bridge ID Port ID
-------------------- ------- ---- ----- --- ----- -------------------- -------
FastEthernet0/0 128.1 128 3019 FWD 0 8192 cc00.0e94.0000 128.3
FastEthernet0/1 128.2 128 3019 BLK 19 16384 cc01.0e94.0000 128.3
VLAN10
Spanning tree enabled protocol ieee uplinkfast enabled
Root ID Priority 8192
Address cc00.0e94.0001
Cost 3019
Port 1 (FastEthernet0/0)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 49152
Address cc02.0e94.0001
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300
Interface Designated
Name Port ID Prio Cost Sts Cost Bridge ID Port ID
-------------------- ------- ---- ----- --- ----- -------------------- -------
FastEthernet0/0 128.1 128 3019 FWD 0 8192 cc00.0e94.0001 128.3
FastEthernet0/1 128.2 128 3019 BLK 19 16384 cc01.0e94.0001 128.3
FastEthernet0/2 128.3 128 3019 FWD 3019 49152 cc02.0e94.0001 128.3
VLAN20
Spanning tree enabled protocol ieee uplinkfast enabled
Root ID Priority 8192
Address cc01.0e94.0002
Cost 3019
Port 2 (FastEthernet0/1)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 49152
Address cc02.0e94.0002
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300
Interface Designated
Name Port ID Prio Cost Sts Cost Bridge ID Port ID
-------------------- ------- ---- ----- --- ----- -------------------- -------
FastEthernet0/0 128.1 128 3019 BLK 19 16384 cc00.0e94.0002 128.3
FastEthernet0/1 128.2 128 3019 FWD 0 8192 cc01.0e94.0002 128.3
SW4#sh sp br
VLAN1
Spanning tree enabled protocol ieee uplinkfast enabled
Root ID Priority 8192
Address cc00.0e94.0000
Cost 3019
Port 1 (FastEthernet0/0)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 49152
Address cc03.0e94.0000
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300
Interface Designated
Name Port ID Prio Cost Sts Cost Bridge ID Port ID
-------------------- ------- ---- ----- --- ----- -------------------- -------
FastEthernet0/0 128.1 128 3019 FWD 0 8192 cc00.0e94.0000 128.4
FastEthernet0/1 128.2 128 3019 BLK 19 16384 cc01.0e94.0000 128.4
VLAN10
Spanning tree enabled protocol ieee uplinkfast enabled
Root ID Priority 8192
Address cc00.0e94.0001
Cost 3019
Port 1 (FastEthernet0/0)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 49152
Address cc03.0e94.0001
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300
Interface Designated
Name Port ID Prio Cost Sts Cost Bridge ID Port ID
-------------------- ------- ---- ----- --- ----- -------------------- -------
FastEthernet0/0 128.1 128 3019 FWD 0 8192 cc00.0e94.0001 128.4
FastEthernet0/1 128.2 128 3019 BLK 19 16384 cc01.0e94.0001 128.4
VLAN20
Spanning tree enabled protocol ieee uplinkfast enabled
Root ID Priority 8192
Address cc01.0e94.0002
Cost 3019
Port 2 (FastEthernet0/1)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 49152
Address cc03.0e94.0002
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300
Interface Designated
Name Port ID Prio Cost Sts Cost Bridge ID Port ID
-------------------- ------- ---- ----- --- ----- -------------------- -------
FastEthernet0/0 128.1 128 3019 BLK 19 16384 cc00.0e94.0002 128.4
FastEthernet0/1 128.2 128 3019 FWD 0 8192 cc01.0e94.0002 128.4
FastEthernet0/2 128.3 128 3019 FWD 3019 49152 cc03.0e94.0002 128.3
R5 ping R6效果:
Reply to request 4 (68 ms). Received packet has options
Total option bytes= 40, padded length=40
Record route:
(192.168.10.1)
(192.168.20.251)
(192.168.20.1)
(192.168.20.1)
(192.168.10.252)
(192.168.10.1)
(0.0.0.0)
(0.0.0.0)
(0.0.0.0)
End of list
R6 ping R5 效果:
Reply to request 4 (24 ms). Received packet has options
Total option bytes= 40, padded length=40
Record route:
(192.168.20.1)
(192.168.10.252)
(192.168.10.1)
(192.168.10.1)
(192.168.20.251)
(192.168.20.1)
(0.0.0.0)
(0.0.0.0)
(0.0.0.0)
End of list
注:
1.HSRP无法自动切换:
standby 2 track FastEthernet0/0 20 //跟踪接口,优先值减20
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/20928363/viewspace-716834/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/20928363/viewspace-716834/