!!!I used real Cisco 3550 switch *4 to do this lab. I did not use Dynamips to do this lab.!!!
Objective:
The purpose of this lab is to observe the default behavior of STP.
Scenario:
In this lab, you will observe what spanning tree does and why.
Basic Configuration:
DLS1 & DLS2:
enable
configure terminal
!
no ip domain lookup
!
vtp mode transparent
!
line console 0
logging synchronous
exec-timeout 0 0
!
interface range FastEthernet 0/1 -24
shutdown
exit
!
interface range gigabitEthernet 0/1 - 2
shutdown
exit
!
hostname DSL(1,2)
ALS1 & ALS2:
enable
configure terminal
!
no ip domain lookup
!
vtp mode transparent
!
line console 0
logging synchronous
exec-timeout 0 0
!
interface range FastEthernet 0/1 -24
shutdown
exit
!
interface range gigabitEthernet 0/1 - 2
shutdown
exit
!
no ip routing
!
hostname ASL(1,2)
Step 1
Start by deleting the vlan.dat file, erasing the startup config, and reloading all your switches.
All Switch:
Clearing all Switches
Step 2
By default, spanning tree runs on every port. When a new link becomes active, the
port goes through the listening, learning, and forwarding states before it becomes
active.
DLS1:
DSL1(config)#interface range FastEthernet 0/7 -12
DSL1(config-if-range)#no shutdown
DLS2:
DSL2(config)#interface range FastEthernet 0/7 -12
DSL2(config-if-range)#no shutdown
ALS1:
ASL1(config)#interface range FastEthernet 0/7 -12
ASL1(config-if-range)#no shutdown
ALS2:
ASL2(config)#interface range FastEthernet 0/7 -12
ASL2(config-if-range)#no shutdown
Step 3
Verify STP with the show spanning-tree command.
All Switch:
All Switch#show spanning-tree
DSL1#show spanning-tree
VLAN0001
Spanning tree enabled protocol ieee
Root ID Priority 32769
Address 000e.d7a6.9c80
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32769 (priority 32768 sys-id-ext 1)
Address 000e.d7a6.9c80
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Fa0/7 Desg FWD 19 128.7 P2p
Fa0/8 Desg FWD 19 128.8 P2p
Fa0/9 Desg FWD 19 128.9 P2p
Fa0/10 Desg FWD 19 128.10 P2p
Fa0/11 Desg FWD 19 128.11 P2p
Fa0/12 Desg FWD 19 128.12 P2p
DSL1#
DSL2#show spanning-tree
VLAN0001
Spanning tree enabled protocol ieee
Root ID Priority 32769
Address 000e.d7a6.9c80
Cost 19
Port 11 (FastEthernet0/11)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32769 (priority 32768 sys-id-ext 1)
Address 000e.d7a6.ab00
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Fa0/7 Desg FWD 19 128.7 P2p
Fa0/8 Desg FWD 19 128.8 P2p
Fa0/9 Desg FWD 19 128.9 P2p
Fa0/10 Desg FWD 19 128.10 P2p
Fa0/11 Root FWD 19 128.11 P2p
Fa0/12 Altn BLK 19 128.12 P2p
DSL2#
ASL1#show spanning-tree
VLAN0001
Spanning tree enabled protocol ieee
Root ID Priority 32769
Address 000e.d7a6.9c80
Cost 19
Port 7 (FastEthernet0/7)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32769 (priority 32768 sys-id-ext 1)
Address 000e.d7a6.c500
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Fa0/7 Root FWD 19 128.7 P2p
Fa0/8 Altn BLK 19 128.8 P2p
Fa0/9 Altn BLK 19 128.9 P2p
Fa0/10 Altn BLK 19 128.10 P2p
Fa0/11 Desg FWD 19 128.11 P2p
Fa0/12 Desg FWD 19 128.12 P2p
ASL1#
ASL2#show spanning-tree
VLAN0001
Spanning tree enabled protocol ieee
Root ID Priority 32769
Address 000e.d7a6.9c80
Cost 19
Port 9 (FastEthernet0/9)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32769 (priority 32768 sys-id-ext 1)
Address 000e.d7d4.7500
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Fa0/7 Altn BLK 19 128.7 P2p
Fa0/8 Altn BLK 19 128.8 P2p
Fa0/9 Root FWD 19 128.9 P2p
Fa0/10 Altn BLK 19 128.10 P2p
Fa0/11 Altn BLK 19 128.11 P2p
Fa0/12 Altn BLK 19 128.12 P2p
ASL2#
Reference:
Cisco Networking Academy
http://www.cisco.com/web/learning/netacad/index.html
CCNP Version 5.0: Building Multilayer Switched Networks
Student Lab Manual
最初發表 / 最後更新: 2008.10.05 / 2018.06.0.7
0 comments:
張貼留言