Lab Objective:
The focus of this lab is to understand basic VLAN, VTP, DTP and STP implementation and configuration in Cisco IOS Catalyst switches.
Lab Topology:
The lab network topology is illustrated below:
|
IMPORTANT NOTE If you are using the www.howtonetwork.net racks, please begin each and every lab by shutting down all interfaces on all switches and then manually re-enabling only the interfaces that are illustrated in this topology. |
Task 1
Enable and configure VTP on the switches illustrated in the topology as follows:
- All switches should reside in VTP domain ‘SWITCH’
- All switches should run VTP version 2
- All switches should allow VLAN creation, deletion and modification
- All switches should use a VTP password of ‘CCNP’
Task 2
Configure trunking on the switches as follows:
- Configure ALS1 so that its interfaces will only trunk if the upstream switch is trunking
- Configure ALS2 so that its interfaces will only trunk if the upstream switch is trunking
- Configure DLS1 so that its interfaces will actively attempt to become trunk links
- Configure DLS2 so that its interfaces will actively attempt to become trunk links
Task 3
Configure the following VLANs only on switch DLS1:
- VLAN 100 name USER-VLAN
- VLAN 200 name FILE-VLAN
Configure switch DLS1 so that Cisco IOS software automatically elects it as the root bridge for both VLANs without explicitly specifying a priority value. Ensure that switch DLS2 is also automatically elected backup root bridge for both VLANs.
Task 4
Configure Spanning Tree on switches ALS1 and ALS2 as follows:
- Port Fa0/7 on ALS1 and port Fa0/9 on ALS2 should be forwarding for VLAN 100
- Port Fa0/9 on ALS1 and port Fa0/7 on ALS2 should be forwarding for VLAN 200
Task 5
Configure your 802.1D network to improve convergence as follows:
- Backup ports on Access layer switches should transition to forwarding in 1 to 5 seconds following the failure of the primary link to the root bridge
- In the event of an indirect link failure, the network should converge within 30 seconds instead of the typical 50 seconds
Lab Validation
Task 1
| DLS1(config)#vtp domain SWITCH Changing VTP domain name from null to SWITCH DLS1(config)#vtp version 2 DLS1(config)#vtp password CCNP Setting device VLAN database password to CCNP |
| DLS2(config)#vtp domain SWITCH Changing VTP domain name from null to SWITCH DLS2(config)#vtp version 2 DLS2(config)#vtp password CCNP Setting device VLAN database password to CCNP |
| ALS1(config)#vtp domain SWITCH Changing VTP domain name from null to SWITCH ALS1(config)#vtp version 2 ALS1(config)#vtp password CCNP Setting device VLAN database password to CCNP |
| ALS2(config)#vtp domain SWITCH Changing VTP domain name from null to SWITCH ALS2(config)#vtp version 2 ALS2(config)#vtp password CCNP Setting device VLAN database password to CCNP |
Task 2
| ALS1(config)#interface range f0/7 , f0/9 ALS1(config-if-range)#switchport mode dynamic auto |
| ALS2(config)#interface range f0/7 , f0/9 ALS2(config-if-range)#switchport mode dynamic auto |
| DLS1(config)#int range f0/7 , f0/9 , f0/11 DLS1(config-if-range)#switchport mode dynamic desirable |
| DLS2(config)#int range f0/7 , f0/9 , f0/11 DLS2(config-if-range)#switchport mode dynamic desirable |
Verify your configuration using the show interfaces trunk command as follows:
DLS2#show interfaces trunk
|
DLS1#show interfaces trunk
|
ALS1#show interfaces trunk
|
ALS2#show interfaces trunk
|
NOTE: Catalyst 3550 series switches (which are used in the H2N racks) support both ISL and 802.1Q and will attempt to negotiate an ISL trunk first. However, the modern Catalyst switches only support 802.1Q and will dynamically negotiate an 802.1Q trunk.
Task 3
| DLS1(config)#vlan 100 DLS1(config-vlan)#name USER-VLAN DLS1(config-vlan)#exit DLS1(config)#vlan 200 DLS1(config-vlan)#name FILE-VLAN DLS1(config-vlan)#exit DLS1(config)#spanning-tree vlan 100 root primary DLS1(config)#spanning-tree vlan 200 root primary |
| DLS2(config)#spanning-tree vlan 100 root secondary DLS2(config)#spanning-tree vlan 200 root secondary |
Verify your configuration using the show spanning-tree root command as follows:
DLS1#show spanning-tree root
|
 DLS2#show spanning-tree root
|
ALS1#show spanning-tree root
|
ALS2#show spanning-tree root
|
Task 4
| ALS1(config)#interface fa 0/7 ALS1(config-if)#spanning-tree vlan 200 cost 40 |
| ALS2(config)#interface fa 0/9 ALS2(config-if)#spanning-tree vlan 200 cost 40 |
NOTE: When selecting a root port, Spanning Tree considers the following:
- Lowest Root Bridge ID
- Lowest Root Path Cost to Root Bridge
- Lowest Sender Bridge ID
- Lowest Sender Port ID
By default, no additional configuration is required to ensure that Fa0/7 and Fa0/9 on switches ALS1 and ALS2, respectively, are the root ports (forwarding) for VLAN 100. However, to ensure that Fa0/9 and Fa0/7 on switches ALS1 and ALS2, respectively, are root ports (forwarding) for VLAN 200, you must increase the cost of the current root ports Fa0/7 and Fa0/9 on switches ALS1 and ALS2, respectively, to make these less desirable (blocking) for VLAN 200.
This value must be higher than the cumulative cost of 19 + 19, which is 38. Any cost value above number 38 on Fa0/7 and Fa0/9 on switches ALS1 and ALS2 for VLAN 200 will satisfy the requirements of this task. Before the change, the current STP status shows the following:
ALS1#show spanning-tree interface fastethernet 0/7
ALS2#
|
ALS2#show spanning-tree interface fastethernet 0/7
ALS2#
|
Following the changing of the cost on the current root ports, the topology is now as follows:
ALS1#show spanning-tree interface fastethernet 0/7
ALS1#
|
ALS2#show spanning-tree interface fastethernet 0/7
ALS2#
|
Task 5
This task requires the implementation of STP backbonefast and uplinkfast. Backbonefast is configured on ALL switches in the network as follows:
| DLS1(config)#spanning-tree backbonefast |
| DLS2(config)#spanning-tree backbonefast |
| ALS1(config)#spanning-tree backbonefast |
| ALS2(config)#spanning-tree backbonefast |
However, uplinkfast is configured only on access switches in the network as follows:
| ALS1(config)#spanning-tree uplinkfast |
| ALS2(config)#spanning-tree uplinkfast |
Verify backbonefast by shutting down the Fa0/11 link between DLS1 and DLS2. This will then generate RLQs which allow for the faster recovergence of the STP domain. You can verify backbonefast operation using the IOS show spanning-tree backbonefast command as follows:
| DLS2(config)#int fastethernet 0/11 DLS2(config-if)#shut DLS2(config-if)#end DLS2# DLS2#show spanning-tree backbonefast BackboneFast is enabledBackboneFast statistics ———————– Number of transition via backboneFast (all VLANs) : 0 Number of inferior BPDUs received (all VLANs) : 0 Number of RLQ request PDUs received (all VLANs) : 2 Number of RLQ response PDUs received (all VLANs) : 0 Number of RLQ request PDUs sent (all VLANs) : 0 Number of RLQ response PDUs sent (all VLANs) : 2 |
On the downstream switch, for example ALS1, the same command shows the following:
| ALS1#show spanning-tree backbonefast BackboneFast is enabledBackboneFast statistics ———————– Number of transition via backboneFast (all VLANs) : 3 Number of inferior BPDUs received (all VLANs) : 3 Number of RLQ request PDUs received (all VLANs) : 0 Number of RLQ response PDUs received (all VLANs) : 3 Number of RLQ request PDUs sent (all VLANs) : 3 Number of RLQ response PDUs sent (all VLANs) : 0 |
Verify backbonefast by shutting down a trunk link on one of the access switches. This will then generate dummy frames, which are sent to the Multicast address 01-00.0C-CD-CD-CD.You can verify uplinkfast operation using the show spanning-tree uplinkfast command as follows:
| ALS1(config)#int fastethernet 0/7 ALS1(config-if)#shut ALS1(config-if)#end ALS1# ALS1#show spanning-tree uplinkfast UplinkFast is enabledStation update rate set to 150 packets/sec.UplinkFast statistics ———————– Number of transitions via uplinkFast (all VLANs) : 2 Number of proxy multicast addresses transmitted (all VLANs) : 4 Name Interface List |
Final Switch Configurations
DLS1
| DLS1#term len 0 DLS1#show run Building configuration… Current configuration : 3777 bytes DLS1# |
DLS2
| DLS2#term len 0 DLS2#show run Building configuration… Current configuration : 3777 bytes DLS2# |
ALS1
| ALS1#term len 0 ALS1#show run Building configuration… Current configuration : 906 bytes ALS1# |
ALS2
| ALS2>en ALS2#term len 0 ALS2#show run Building configuration… Current configuration : 906 bytes ALS2# |
