Published 6月 12, 2018 by with 0 comment

CCNP-BCMSN-v5.0 Lab 3-4: Multiple Spanning Tree



!!!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 behavior of MST (multiple spanning tree).

Scenario:
In this lab, we will group VLANs using MST so that we can have less spanning tree
instances running at once to save switch CPU load.

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.
Configure ports f0/7 through f0/12 to be trunks.
All Switches:
Clearing all Switches

ALLSwitches(config)#interface range fastEthernet 0/7 - 12
ALLSwitches(config-if-range)#switchport trunk encapsulation dot1q
ALLSwitches(config-if-range)#switchport mode trunk


Step 2
Configure all switches with VTP mode transparent and VTP domain CISCO.
Add VLANs 10, 20, 30, 40, 50, 60, 70, 80, 90 and 100 to all of them.
All Switches:
ALLSwitches(config)#vtp mode transparent
ALLSwitches(config)#vtp domain CISCO
ALLSwitches(config)#vlan 10,20,30,40,50,60,70,80,90,100

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  
30   VLAN0030                         active  
40   VLAN0040                         active  
50   VLAN0050                         active  
60   VLAN0060                         active  
70   VLAN0070                         active  
80   VLAN0080                         active  
90   VLAN0090                         active  
100  VLAN0100                         active  
1002 fddi-default                     act/unsup
1003 token-ring-default               act/unsup
1004 fddinet-default                  act/unsup
1005 trnet-default                    act/unsup
DSL1#

Step 3
If you issue the show spanning-tree command on one of the switches,
you see 11 spanning tree instances running.
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 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    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 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

        


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

  Bridge ID  Priority    32858  (priority 32768 sys-id-ext 90)
             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

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

  Bridge ID  Priority    32868  (priority 32768 sys-id-ext 100)
             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#


Step 4
To configure MST.
All Switches:
ALLSwitches(config)#spanning-tree mode mst

By default, all VLANs are assigned to instance 0, but can be moved around
to different instances when MST is configured.

DSL1#show spanning-tree

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

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

Interface           Role Sts Cost      Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Fa0/7               Desg BLK 200000    128.7    P2p
Fa0/8               Desg BLK 200000    128.8    P2p
Fa0/9               Desg BLK 200000    128.9    P2p
Fa0/10              Desg BLK 200000    128.10   P2p
Fa0/11              Desg BLK 200000    128.11   P2p
Fa0/12              Desg BLK 200000    128.12   P2p

DSL1#

If you use the "show spanning-tree mst configuration" command, you
can see a switch’s current MST configuration.
DSL1#show spanning-tree mst configuration
Name      []
Revision  0     Instances configured 1

Instance  Vlans mapped
--------  ---------------------------------------------------------------------
0         1-4094
-------------------------------------------------------------------------------
DSL1#



Step 5
Now that MST has been enabled, we can configure the MST region settings
to group VLANs. We use the region name CISCO and a revision number of 1.
We put VLANs 20 through 50 into instance 1, and 80 and 100 into instance 2.
The rest of the VLANs remain in instance 0, the default.
All Switches:
ALLSwitches(config)#spanning-tree mst configuration


When you are in MST configuration mode, you can view the current configuration.
ALLSwitches(config)#show current
Current MST configuration
Name      []
Revision  0     Instances configured 1

Instance  Vlans mapped
--------  ---------------------------------------------------------------------
0         1-4094
-------------------------------------------------------------------------------


Change the region name by typing "name" name. Change the revision
number by typing "revision" number.
ALLSwitches(config)#name CISCO
ALLSwitches(config)#revision 1

The last configuration change you have to make is putting VLANs into instances.
ALLSwitches(config)#instance 1 vlan 20-50
ALLSwitches(config)#instance 2 vlan 80,100

You can verify the changes you are about to make with the "show pending"
command. Remember that the changes that you just entered are not committed
until you type "exit".
ALLSwitches(config)#show current
Current MST configuration
Name      []
Revision  0     Instances configured 1

Instance  Vlans mapped
--------  ---------------------------------------------------------------------
0         1-4094
-------------------------------------------------------------------------------

ALLSwitches(config)#show pending
Pending MST configuration
Name      [CISCO]
Revision  1     Instances configured 3

Instance  Vlans mapped
--------  ---------------------------------------------------------------------
0         1-19,51-79,81-99,101-4094
1         20-50
2         80,100
-------------------------------------------------------------------------------

ALLSwitches(config)#exit 

ALLSwitches#show spanning-tree mst configuration
Name      [CISCO]
Revision  1     Instances configured 3

Instance  Vlans mapped
--------  ---------------------------------------------------------------------
0         1-19,51-79,81-99,101-4094
1         20-50
2         80,100
-------------------------------------------------------------------------------


Verify that you have separate instances of spanning tree running for each
MST instance
DSL1#show spanning-tree

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

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

Interface           Role Sts Cost      Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Fa0/7               Desg FWD 200000    128.7    P2p
Fa0/8               Desg FWD 200000    128.8    P2p
Fa0/9               Desg FWD 200000    128.9    P2p
Fa0/10              Desg FWD 200000    128.10   P2p
Fa0/11              Desg FWD 200000    128.11   P2p
Fa0/12              Desg FWD 200000    128.12   P2p

        
MST1
  Spanning tree enabled protocol mstp
  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

Interface           Role Sts Cost      Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Fa0/7               Desg FWD 200000    128.7    P2p
Fa0/8               Desg FWD 200000    128.8    P2p
Fa0/9               Desg FWD 200000    128.9    P2p
Fa0/10              Desg FWD 200000    128.10   P2p
Fa0/11              Desg FWD 200000    128.11   P2p
Fa0/12              Desg FWD 200000    128.12   P2p

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

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

Interface           Role Sts Cost      Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Fa0/7               Desg FWD 200000    128.7    P2p
Fa0/8               Desg FWD 200000    128.8    P2p
Fa0/9               Desg FWD 200000    128.9    P2p
Fa0/10              Desg FWD 200000    128.10   P2p
Fa0/11              Desg FWD 200000    128.11   P2p
Fa0/12              Desg FWD 200000    128.12   P2p

DSL1#


Final Configurations
DLS1:
hostname DSL1
!
no ip domain-lookup
!
vtp domain CISCO
vtp mode transparent
!
spanning-tree mode mst
!
spanning-tree mst configuration
 name CISCO
 revision 1
 instance 1 vlan 20-50
 instance 2 vlan 80, 100
!
vlan 10,20,30,40,50,60,70,80,90,100
!
interface FastEthernet0/7
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
interface FastEthernet0/8
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
interface FastEthernet0/9
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
interface FastEthernet0/10
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
interface FastEthernet0/11
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
interface FastEthernet0/12
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
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 mst
!
spanning-tree mst configuration
 name CISCO
 revision 1
 instance 1 vlan 20-50
 instance 2 vlan 80, 100
!
vlan internal allocation policy ascending
!
vlan 10,20,30,40,50,60,70,80,90,100
!
interface FastEthernet0/7
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
interface FastEthernet0/8
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
interface FastEthernet0/9
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
interface FastEthernet0/10
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
interface FastEthernet0/11
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
interface FastEthernet0/12
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
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 mst
!
spanning-tree mst configuration
 name CISCO
 revision 1
 instance 1 vlan 20-50
 instance 2 vlan 80, 100
!
vlan internal allocation policy ascending
!
vlan 10,20,30,40,50,60,70,80,90,100
!
interface FastEthernet0/7
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
interface FastEthernet0/8
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
interface FastEthernet0/9
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
interface FastEthernet0/10
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
interface FastEthernet0/11
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
interface FastEthernet0/12
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
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 mst
!
spanning-tree mst configuration
 name CISCO
 revision 1
 instance 1 vlan 20-50
 instance 2 vlan 80, 100
!
vlan internal allocation policy ascending
!
vlan 10,20,30,40,50,60,70,80,90,100
!
interface FastEthernet0/7
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
interface FastEthernet0/8
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
interface FastEthernet0/9
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
interface FastEthernet0/10
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
interface FastEthernet0/11
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
interface FastEthernet0/12
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
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.08 / 2018.06.12

0 comments:

張貼留言