www.howtonetwork.org

CCNA & CCNP Certifcation Training

  • About
  • Contact
  • FAQ
  • Join
  • Home
  • CCNA
    • ICND1
    • ICND2
    • 101 CCNA LABS
  • CCNP
    • ROUTE
    • SWITCH
    • TSHOOT
    • 101 CCNP LABS
  • CompTIA
    • Security+
    • Network+
  • Design
    • CCDA
    • CCDP
You are here: Home / 101 CCNP Labs Solutions / Lab 001 Solution: VLANs, VTP, DTP and STP

Lab 001 Solution: VLANs, VTP, DTP and STP

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:

department595

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:

  1. All switches should reside in VTP domain ‘SWITCH’
  2. All switches should run VTP version 2
  3. All switches should allow VLAN creation, deletion and modification
  4. All switches should use a  VTP password of ‘CCNP’

 

Task 2

Configure trunking on the switches as follows:

  1. Configure ALS1 so that its interfaces will only trunk if the upstream switch is trunking
  2. Configure ALS2 so that its interfaces will only trunk if the upstream switch is trunking
  3. Configure DLS1 so that its interfaces will actively attempt to become trunk links
  4. Configure DLS2 so that its interfaces will actively attempt to become trunk links

 

Task 3

Configure the following VLANs only on switch DLS1:

  1. VLAN 100 name USER-VLAN
  2. 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:

  1. Port Fa0/7 on ALS1 and port Fa0/9 on ALS2 should be forwarding for VLAN 100
  2. 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:

  1. 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
  2. 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

Port Mode Encapsulation Status Native vlan
Fa0/7 desirable n-802.1q trunking 1
Fa0/9 desirable n-802.1q trunking 1
Fa0/11 desirable n-isl trunking 1
DLS1#show interfaces trunk

Port Mode Encapsulation Status Native vlan
Fa0/7 desirable n-802.1q trunking 1
Fa0/9 desirable n-802.1q trunking 1
Fa0/11 desirable n-isl trunking 1
ALS1#show interfaces trunk

Port Mode Encapsulation Status Native vlan
Fa0/7 auto 802.1q trunking 1
Fa0/9 auot 802.1q trunking 1
ALS2#show interfaces trunk

Port Mode Encapsulation Status Native vlan
Fa0/7 auto 802.1q trunking 1
Fa0/9 auot 802.1q trunking 1

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

Root Hello Max Fwd
Vlan Root ID Cost Time Age Dly Root Port
—————- ——————– ——— —– — — ————
VLAN0100 24676 000f.2303.2d80 0 2 20 15
VLAN0200 24776 000f.2303.2d80 0 2 20 15
 DLS2#show spanning-tree root

Root Hello Max Fwd
Vlan Root ID Cost Time Age Dly Root Port
—————- ——————– ——— —– — — ————
VLAN0100 24676 000f.2303.2d80 19 2 20 15 Fa0/11
VLAN0200 24776 000f.2303.2d80 19 2 20 15 Fa0/11
ALS1#show spanning-tree root

Root Hello Max Fwd
Vlan Root ID Cost Time Age Dly Root Port
—————- ——————– ——— —– — — ————
VLAN0100 24676 000f.2303.2d80 19 2 20 15 Fa0/7
VLAN0200 24776 000f.2303.2d80 19 2 20 15 Fa0/7
ALS2#show spanning-tree root

Root Hello Max Fwd
Vlan Root ID Cost Time Age Dly Root Port
—————- ——————– ——— —– — — ————
VLAN0100 24676 000f.2303.2d80 19 2 20 15 Fa0/9
VLAN0200 24776 000f.2303.2d80 19 2 20 15 Fa0/9

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:

  1. Lowest Root Bridge ID
  2. Lowest Root Path Cost to Root Bridge
  3. Lowest Sender Bridge ID
  4. 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

Vlan Role Sts Cost Prio.Nbr Type
—————- —- — ——— ——– ——————————–
VLAN0001 Desg FWD 19 128.7 P2p
VLAN0100 Root FWD 19 128.7 P2p
VLAN0200 Root FWD 19 128.7 P2p

ALS2#
ALS2#show spanning-tree interface fastethernet 0/9

Vlan Role Sts Cost Prio.Nbr Type
—————- —- — ——— ——– ——————————–
VLAN0001 Desg FWD 19 128.9 P2p
VLAN0100 Root BLK 19 128.9 P2p
VLAN0200 Root BLK 19 128.9 P2p
ALS2#show spanning-tree interface fastethernet 0/7

Vlan Role Sts Cost Prio.Nbr Type
—————- —- — ——— ——– ——————————–
VLAN0001 Root FWD 19 128.7 P2p
VLAN0100 Altn BLK 19 128.7 P2p
VLAN0200 Altn BLK 19 128.7 P2p

ALS2#
ALS2#show spanning-tree interface fastethernet 0/9

Vlan Role Sts Cost Prio.Nbr Type
—————- —- — ——— ——– ——————————–
VLAN0001 Root BLK 19 128.9 P2p
VLAN0100 Altn FWD 19 128.9 P2p
VLAN0200 Altn FWD 19 128.9 P2p

 

 

 

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

Vlan Role Sts Cost Prio.Nbr Type
—————- —- — ——— ——– ——————————–
VLAN0001 Desg FWD 19 128.7 P2p
VLAN0100 Root FWD 19 128.7 P2p
VLAN0200 Altn BLK 40 128.7 P2p

ALS1#
ALS1#show spanning-tree interface fastethernet 0/9

Vlan Role Sts Cost Prio.Nbr Type
—————- —- — ——— ——– ——————————–
VLAN0001 Desg FWD 19 128.9 P2p
VLAN0100 Altn BLK 19 128.9 P2p
VLAN0200 Root FWD 19 128.9 P2p
ALS2#show spanning-tree interface fastethernet 0/7

Vlan Role Sts Cost Prio.Nbr Type
—————- —- — ——— ——– ——————————–
VLAN0001 Root FWD 19 128.7 P2p
VLAN0100 Altn BLK 19 128.7 P2p
VLAN0200 Root FWD 19 128.7 P2p

ALS2#
ALS2#show spanning-tree interface fastethernet 0/9

Vlan Role Sts Cost Prio.Nbr Type
—————- —- — ——— ——– ——————————–
VLAN0001 Altn BLK 19 128.9 P2p
VLAN0100 Root FWD 19 128.9 P2p
VLAN0200 Altn BLK 40 128.9 P2p

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
——————– ————————————
VLAN0001                  Fa0/9(fwd)
VLAN0100                  Fa0/9(fwd)
VLAN0200                  Fa0/9(fwd)

Final Switch Configurations

DLS1

DLS1#term len 0
DLS1#show run
Building configuration…

Current configuration : 3777 bytes
!
version 12.2
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname DLS1
!
no logging console
!
no aaa new-model
ip subnet-zero
!
!
!
!
!
!
!
spanning-tree mode pvst
spanning-tree extend system-id
spanning-tree backbonefast
spanning-tree vlan 100,200 priority 24576
!
vlan internal allocation policy ascending
!
!
!
!
!
!
interface FastEthernet0/1
switchport mode dynamic desirable
!
interface FastEthernet0/2
switchport mode dynamic desirable
!
interface FastEthernet0/3
switchport mode dynamic desirable
!
interface FastEthernet0/4
switchport mode dynamic desirable
!
interface FastEthernet0/5
switchport mode dynamic desirable
!
interface FastEthernet0/6
switchport mode dynamic desirable
!
interface FastEthernet0/7
switchport mode dynamic desirable
!
interface FastEthernet0/8
switchport mode dynamic desirable
shutdown
!
interface FastEthernet0/9
switchport mode dynamic desirable
!
interface FastEthernet0/10
switchport mode dynamic desirable
shutdown
!
interface FastEthernet0/11
switchport mode dynamic desirable
!
interface FastEthernet0/12
switchport mode dynamic desirable
shutdown
!
interface FastEthernet0/13
switchport mode dynamic desirable
!
interface FastEthernet0/14
switchport mode dynamic desirable
!
interface FastEthernet0/15
switchport mode dynamic desirable
!
interface FastEthernet0/16
switchport mode dynamic desirable
!
interface FastEthernet0/17
switchport mode dynamic desirable
!
interface FastEthernet0/18
switchport mode dynamic desirable
!
interface FastEthernet0/19
switchport mode dynamic desirable
!
interface FastEthernet0/20
switchport mode dynamic desirable
!
interface FastEthernet0/21
switchport mode dynamic desirable
!
interface FastEthernet0/22
switchport mode dynamic desirable
!
interface FastEthernet0/23
switchport mode dynamic desirable
!
interface FastEthernet0/24
switchport mode dynamic desirable
!
interface FastEthernet0/25
switchport mode dynamic desirable
!
interface FastEthernet0/26
switchport mode dynamic desirable
!
interface FastEthernet0/27
switchport mode dynamic desirable
!
interface FastEthernet0/28
switchport mode dynamic desirable
!
interface FastEthernet0/29
switchport mode dynamic desirable
!
interface FastEthernet0/30
switchport mode dynamic desirable
!
interface FastEthernet0/31
switchport mode dynamic desirable
!
interface FastEthernet0/32
switchport mode dynamic desirable
!
interface FastEthernet0/33
switchport mode dynamic desirable
!
interface FastEthernet0/34
switchport mode dynamic desirable
!
interface FastEthernet0/35
switchport mode dynamic desirable
!
interface FastEthernet0/36
switchport mode dynamic desirable
!
interface FastEthernet0/37
switchport mode dynamic desirable
!
interface FastEthernet0/38
switchport mode dynamic desirable
!
interface FastEthernet0/39
switchport mode dynamic desirable
!
interface FastEthernet0/40
switchport mode dynamic desirable
!
interface FastEthernet0/41
switchport mode dynamic desirable
!
interface FastEthernet0/42
switchport mode dynamic desirable
!
interface FastEthernet0/43
switchport mode dynamic desirable
!
interface FastEthernet0/44
switchport mode dynamic desirable
!
interface FastEthernet0/45
switchport mode dynamic desirable
!
interface FastEthernet0/46
switchport mode dynamic desirable
!
interface FastEthernet0/47
switchport mode dynamic desirable
!
interface FastEthernet0/48
switchport mode dynamic desirable
!
interface GigabitEthernet0/1
switchport mode dynamic desirable
!
interface GigabitEthernet0/2
switchport mode dynamic desirable
!
interface Vlan1
no ip address
shutdown
!
ip classless
ip http server
ip http secure-server
!
!
!
control-plane
!
!
line con 0
line vty 5 15
!
end

DLS1#

DLS2

DLS2#term len 0
DLS2#show run
Building configuration…

Current configuration : 3777 bytes
!
version 12.2
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname DLS2
!
no logging console
!
no aaa new-model
ip subnet-zero
!
!
!
!
!
!
!
spanning-tree mode pvst
spanning-tree extend system-id
spanning-tree backbonefast
spanning-tree vlan 100,200 priority 28672
!
vlan internal allocation policy ascending
!
!
!
!
!
!
interface FastEthernet0/1
switchport mode dynamic desirable
!
interface FastEthernet0/2
switchport mode dynamic desirable
!
interface FastEthernet0/3
switchport mode dynamic desirable
!
interface FastEthernet0/4
switchport mode dynamic desirable
!
interface FastEthernet0/5
switchport mode dynamic desirable
!
interface FastEthernet0/6
switchport mode dynamic desirable
!
interface FastEthernet0/7
switchport mode dynamic desirable
!
interface FastEthernet0/8
switchport mode dynamic desirable
shutdown
!
interface FastEthernet0/9
switchport mode dynamic desirable
!
interface FastEthernet0/10
switchport mode dynamic desirable
shutdown
!
interface FastEthernet0/11
switchport mode dynamic desirable
!
interface FastEthernet0/12
switchport mode dynamic desirable
shutdown
!
interface FastEthernet0/13
switchport mode dynamic desirable
!
interface FastEthernet0/14
switchport mode dynamic desirable
!
interface FastEthernet0/15
switchport mode dynamic desirable
!
interface FastEthernet0/16
switchport mode dynamic desirable
!
interface FastEthernet0/17
switchport mode dynamic desirable
!
interface FastEthernet0/18
switchport mode dynamic desirable
!
interface FastEthernet0/19
switchport mode dynamic desirable
!
interface FastEthernet0/20
switchport mode dynamic desirable
!
interface FastEthernet0/21
switchport mode dynamic desirable
!
interface FastEthernet0/22
switchport mode dynamic desirable
!
interface FastEthernet0/23
switchport mode dynamic desirable
!
interface FastEthernet0/24
switchport mode dynamic desirable
!
interface FastEthernet0/25
switchport mode dynamic desirable
!
interface FastEthernet0/26
switchport mode dynamic desirable
!
interface FastEthernet0/27
switchport mode dynamic desirable
!
interface FastEthernet0/28
switchport mode dynamic desirable
!
interface FastEthernet0/29
switchport mode dynamic desirable
!
interface FastEthernet0/30
switchport mode dynamic desirable
!
interface FastEthernet0/31
switchport mode dynamic desirable
!
interface FastEthernet0/32
switchport mode dynamic desirable
!
interface FastEthernet0/33
switchport mode dynamic desirable
!
interface FastEthernet0/34
switchport mode dynamic desirable
!
interface FastEthernet0/35
switchport mode dynamic desirable
!
interface FastEthernet0/36
switchport mode dynamic desirable
!
interface FastEthernet0/37
switchport mode dynamic desirable
!
interface FastEthernet0/38
switchport mode dynamic desirable
!
interface FastEthernet0/39
switchport mode dynamic desirable
!
interface FastEthernet0/40
switchport mode dynamic desirable
!
interface FastEthernet0/41
switchport mode dynamic desirable
!
interface FastEthernet0/42
switchport mode dynamic desirable
!
interface FastEthernet0/43
switchport mode dynamic desirable
!
interface FastEthernet0/44
switchport mode dynamic desirable
!
interface FastEthernet0/45
switchport mode dynamic desirable
!
interface FastEthernet0/46
switchport mode dynamic desirable
!
interface FastEthernet0/47
switchport mode dynamic desirable
!
interface FastEthernet0/48
switchport mode dynamic desirable
!
interface GigabitEthernet0/1
switchport mode dynamic desirable
!
interface GigabitEthernet0/2
switchport mode dynamic desirable
!
interface Vlan1
no ip address
shutdown
!
ip classless
ip http server
ip http secure-server
!
!
!
control-plane
!
!
line con 0
line vty 5 15
!
end

DLS2#

ALS1

ALS1#term len 0
ALS1#show run
Building configuration…

Current configuration : 906 bytes
!
version 12.1
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname ALS1
!
no logging console
!
ip subnet-zero
!
!
!
spanning-tree mode pvst
no spanning-tree optimize bpdu transmission
spanning-tree extend system-id
spanning-tree uplinkfast
spanning-tree backbonefast
!
!
!
!
interface FastEthernet0/1
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
switchport mode dynamic auto
spanning-tree vlan 200 cost 40
!
interface FastEthernet0/8
!
interface FastEthernet0/9
switchport mode dynamic auto
!
interface FastEthernet0/10
!
interface FastEthernet0/11
shutdown
!
interface FastEthernet0/12
shutdown
!
interface Vlan1
no ip address
no ip route-cache
shutdown
!
ip http server
!
line con 0
line vty 5 15
!
!
end

ALS1#

ALS2

ALS2>en
ALS2#term len 0
ALS2#show run
Building configuration…

Current configuration : 906 bytes
!
version 12.1
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname ALS2
!
no logging console
!
ip subnet-zero
!
!
!
spanning-tree mode pvst
no spanning-tree optimize bpdu transmission
spanning-tree extend system-id
spanning-tree uplinkfast
spanning-tree backbonefast
!
!
!
!
interface FastEthernet0/1
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
switchport mode dynamic auto
!
interface FastEthernet0/8
!
interface FastEthernet0/9
switchport mode dynamic auto
spanning-tree vlan 200 cost 40
!
interface FastEthernet0/10
!
interface FastEthernet0/11
shutdown
!
interface FastEthernet0/12
shutdown
!
interface Vlan1
no ip address
no ip route-cache
shutdown
!
ip http server
!
line con 0
line vty 5 15
!
!
end

ALS2#

About Us

This is a free bonus site for members of www.howtonetwork.com

Copyright

The content on this copyright Reality Press Ltd.
Copyright Reality Press Ltd.