Published 6月 07, 2018 by with 0 comment

CCNP-BCMSN-v5.0 Lab 3-3: Per-VLAN Spanning Tree Behavior


!!!I used real Cisco 3550 switch *4 to do this lab. I did not use Dynamips to do this lab.!!!

Objective:
This lab also looks at changing spanning tree mode to rapid spanning tree.

Scenario:
In this lab, you will see what happens when spanning tree is configured differently for different VLANs.


Basic Configuration:
DLS(1-2) & ALS(1-2):
enable
configure terminal
!
no ip domain lookup
!
line console 0
 logging synchronous
 exec-timeout 0 0
!
hostname


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
Configure all switches with VTP mode transparent and VTP domain CISCO.
Add VLAN 10 and 20 to all of them.
All Switches:
All Switches(config)#vtp mode transparent
All Switches(config)#vtp domain CISCO
All Switches(config)#vlan 10,20

DSL1:
DSL1#show vlan brief

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa0/1, Fa0/2, Fa0/3, Fa0/4
                                                Fa0/5, Fa0/6, Fa0/13, Fa0/14
                                                Fa0/15, Fa0/16, Fa0/17, Fa0/18
                                                Fa0/19, Fa0/20, Fa0/21, Fa0/22
                                                Fa0/23, Fa0/24, Gi0/1, Gi0/2
10   VLAN0010                         active  
20   VLAN0020                         active  
1002 fddi-default                     act/unsup
1003 token-ring-default               act/unsup
1004 fddinet-default                  act/unsup
1005 trnet-default                    act/unsup
DSL1#
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

        
VLAN0010
  Spanning tree enabled protocol ieee
  Root ID    Priority    32778
             Address     000e.d7a6.9c80
             This bridge is the root
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    32778  (priority 32768 sys-id-ext 10)
             Address     000e.d7a6.9c80
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time 15

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

        
VLAN0020
  Spanning tree enabled protocol ieee
  Root ID    Priority    32788
             Address     000e.d7a6.9c80
             This bridge is the root
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    32788  (priority 32768 sys-id-ext 20)
             Address     000e.d7a6.9c80
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time 15

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#


Step 3
We can modify the default spanning tree behavior on a per-VLAN basis.
For this lab, we assign DLS1 the root switch for VLAN 10, and DLS2 for VLAN 20.
DSL1(config)#spanning-tree vlan 10 priority 4096

DSL2(config)#spanning-tree vlan 20 priority 4096


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

        
VLAN0010
  Spanning tree enabled protocol ieee
  Root ID    Priority    4106
             Address     000e.d7a6.9c80
             This bridge is the root
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    4106   (priority 4096 sys-id-ext 10)
             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

        
VLAN0020
  Spanning tree enabled protocol ieee
  Root ID    Priority    4116
             Address     000e.d7a6.ab00
             Cost        19
             Port        11 (FastEthernet0/11)
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    32788  (priority 32768 sys-id-ext 20)
             Address     000e.d7a6.9c80
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time 15

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

DSL1#


Step 4
Other spanning tree modes besides regular PVST (per-VLAN spanning tree) are available.
Configure this on all four switches.
All Switches:
All Switches(config)#spanning-tree mode rapid-pvst

DSL1#show spanning-tree

VLAN0001
  Spanning tree enabled protocol rstp
  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 Peer(STP)
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

        
VLAN0010
  Spanning tree enabled protocol rstp
  Root ID    Priority    4106
             Address     000e.d7a6.9c80
             This bridge is the root
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    4106   (priority 4096 sys-id-ext 10)
             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 Peer(STP)
Fa0/11              Desg FWD 19        128.11   P2p
Fa0/12              Desg FWD 19        128.12   P2p

        
VLAN0020
  Spanning tree enabled protocol rstp
  Root ID    Priority    4116
             Address     000e.d7a6.ab00
             Cost        19
             Port        11 (FastEthernet0/11)
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    32788  (priority 32768 sys-id-ext 20)
             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              Root FWD 19        128.11   P2p
Fa0/12              Altn BLK 19        128.12   P2p

DSL1#


Final Configurations
DLS1:
hostname DSL1
!
no ip domain-lookup
!
vtp domain CISCO
vtp mode transparent
!
spanning-tree mode rapid-pvst
!
spanning-tree vlan 10 priority 4096
!
vlan 10,20
!
line con 0
 exec-timeout 0 0
 logging synchronous
!
end

DLS2:
hostname DSL2
!
no ip domain-lookup
!
vtp domain CISCO
vtp mode transparent
!
spanning-tree mode rapid-pvst
!
spanning-tree vlan 20 priority 4096
!
vlan 10,20
!
line con 0
 exec-timeout 0 0
 logging synchronous
!
end

ALS1:
hostname ASL1
!
no ip domain-lookup
!
vtp domain CISCO
vtp mode transparent
!
spanning-tree mode rapid-pvst
!
vlan 10,20
!
line con 0
 exec-timeout 0 0
 logging synchronous
!
end

ALS2:
hostname ASL2
!
no ip domain-lookup
!
vtp domain CISCO
vtp mode transparent
!
spanning-tree mode rapid-pvst
!
vlan 10,20
!
line con 0
 exec-timeout 0 0
 logging synchronous
!
end


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.07 / 2018.06.07

0 comments:

張貼留言