| 0 comments ]


Network requirements

As shown in Figure 1 - Network diagram for Multiple Spanning Tree Protocol (MSTP) configuration:
  • All devices on the network are in the same MST region. Device A and Device B work on the distribution layer. Device C and Device D work on the access layer. 
  • Configure MSTP so that packets of different VLANs are forwarded along different spanning trees: Packets of VLAN 10 are forwarded along MSTI 1, those of VLAN 30 are forwarded along MSTI 3, those of VLAN 40 are forwarded along MSTI 4, and those of VLAN 20 are forwarded along MSTI 0. 
  • VLAN 10 and VLAN 30 are terminated on the distribution layer devices, and VLAN 40 is terminated on the access layer devices, so the root bridges of MSTI 1 and MSTI 3 are Device A and Device B, respectively, and the root bridge of MSTI 4 is Device C.
Figure 1: Network diagram for MSTP configuration:


Configuration procedure

Perform the following:
  1. VLAN and VLAN member port configuration 
  2. Create VLAN 10, VLAN 20, and VLAN 30 on Device A and Device B, respectively, create VLAN 10, VLAN 20, and VLAN 40 on Device C, and create VLAN 20, VLAN 30, and VLAN 40 on Device D. Configure the ports on these devices as trunk ports and assign them to related VLANs. The detailed configuration procedure is omitted.
  3. Configuration on Device A
    # Enter MST region view, configure the MST region name as example, map VLAN 10, VLAN 30, and VLAN 40 to MSTI 1, MSTI 3, and MSTI 4, respectively, and configure the revision level of the MST region as 0.
    <DeviceA> system-view  
    [DeviceA] stp region-configuration  
    [DeviceA-mst-region] region-name example  
    [DeviceA-mst-region] instance 1 vlan 10  
    [DeviceA-mst-region] instance 3 vlan 30  
    [DeviceA-mst-region] instance 4 vlan 40  
    [DeviceA-mst-region] revision-level 0 
    # Activate MST region configuration.
    [DeviceA-mst-region] active region-configuration  
    [DeviceA-mst-region] quit  
    # Specify the current device as the root bridge of MSTI 1.
    [DeviceA] stp instance 1 root primary 
    # Enable MSTP globally.
    [DeviceA] stp enable 
  4. Configuration on Device B #
    Enter MST region view, configure the MST region name as example, map VLAN 10, VLAN 30, and VLAN 40 to MSTI 1, MSTI 3, and MSTI 4, respectively, and configure the revision level of the MST region as 0.
    <DeviceB> system-view  
    [DeviceB] stp region-configuration  
    [DeviceB-mst-region] region-name example  
    [DeviceB-mst-region] instance 1 vlan 10  
    [DeviceB-mst-region] instance 3 vlan 30  
    [DeviceB-mst-region] instance 4 vlan 40  
    [DeviceB-mst-region] revision-level 0 
    # Activate MST region configuration.
    [DeviceB-mst-region] active region-configuration  
    [DeviceB-mst-region] quit 
    # Specify the current device as the root bridge of MSTI 3.
    [DeviceB] stp instance 3 root primary 
    # Enable MSTP globally.
    [DeviceB] stp enable 
  5. Configuration on Device C.
    # Enter MST region view, configure the MST region name as example, map VLAN 10, VLAN 30, and VLAN 40 to MSTI 1, MSTI 3, and MSTI 4, respectively, and configure the revision level of the MST region as 0.
    <DeviceC> system-view  
    [DeviceC] stp region-configuration  
    [DeviceC-mst-region] region-name example  
    [DeviceC-mst-region] instance 1 vlan 10  
    [DeviceC-mst-region] instance 3 vlan 30  
    [DeviceC-mst-region] instance 4 vlan 40  
    [DeviceC-mst-region] revision-level 0 
    # Activate MST region configuration.
    [DeviceC-mst-region] active region-configuration  
    [DeviceC-mst-region] quit  
    # Specify the current device as the root bridge of MSTI 4.
    [DeviceC] stp instance 4 root primary 
    # Enable MSTP globally.
    [DeviceC] stp enable 
  6. Configuration on Device D.
    # Enter MST region view, configure the MST region name as example, map VLAN 10, VLAN 30, and VLAN 40 to MSTI 1, MSTI 3, and MSTI 4, respectively, and configure the revision level of the MST region as 0.
    <DeviceD> system-view  
    [DeviceD] stp region-configuration  
    [DeviceD-mst-region] region-name example  
    [DeviceD-mst-region] instance 1 vlan 10  
    [DeviceD-mst-region] instance 3 vlan 30  
    [DeviceD-mst-region] instance 4 vlan 40  
    [DeviceD-mst-region] revision-level 0 
    # Activate MST region configuration.
    [DeviceD-mst-region] active region-configuration  
    [DeviceD-mst-region] quit 
    # Enable MSTP globally.
    [DeviceD] stp enable 
  7. Verifying the configurations
    Use the display stp brief command to display brief spanning tree information on each device after the network is stable.
    # Display brief spanning tree information on Device A.
    [DeviceA] display stp brief  
     MSTID      Port                         Role  STP State     Protection  
       0        GigabitEthernet1/0/1         ALTE  DISCARDING    NONE  
       0        GigabitEthernet1/0/2         DESI  FORWARDING    NONE  
       0        GigabitEthernet1/0/3         ROOT  FORWARDING    NONE  
       1        GigabitEthernet1/0/1         DESI  FORWARDING    NONE  
       1        GigabitEthernet1/0/3         DESI  FORWARDING    NONE  
       3        GigabitEthernet1/0/2         DESI  FORWARDING    NONE  
       3        GigabitEthernet1/0/3         ROOT  FORWARDING    NONE 
    # Display brief spanning tree information on Device B.
    [DeviceB] display stp brief  
     MSTID      Port                         Role  STP State     Protection  
       0        GigabitEthernet1/0/1         DESI  FORWARDING    NONE  
       0        GigabitEthernet1/0/2         DESI  FORWARDING    NONE  
       0        GigabitEthernet1/0/3         DESI  FORWARDING    NONE  
       1        GigabitEthernet1/0/2         DESI  FORWARDING    NONE  
       1        GigabitEthernet1/0/3         ROOT  FORWARDING    NONE  
       3        GigabitEthernet1/0/1         DESI  FORWARDING    NONE  
       3        GigabitEthernet1/0/3         DESI  FORWARDING    NONE 
    # Display brief spanning tree information on Device C.
    [DeviceC] display stp brief  
     MSTID      Port                         Role  STP State     Protection  
       0        GigabitEthernet1/0/1         DESI  FORWARDING    NONE  
       0        GigabitEthernet1/0/2         ROOT  FORWARDING    NONE  
       0        GigabitEthernet1/0/3         DESI  FORWARDING    NONE  
       1        GigabitEthernet1/0/1         ROOT  FORWARDING    NONE  
       1        GigabitEthernet1/0/2         ALTE  DISCARDING    NONE  
       4        GigabitEthernet1/0/3         DESI  FORWARDING    NONE 
    # Display brief spanning tree information on Device D.
    [DeviceD] display stp brief  
     MSTID      Port                         Role  STP State     Protection  
       0        GigabitEthernet1/0/1         ROOT  FORWARDING    NONE  
       0        GigabitEthernet1/0/2         ALTE  DISCARDING    NONE  
       0        GigabitEthernet1/0/3         ALTE  DISCARDING    NONE  
       3        GigabitEthernet1/0/1         ROOT  FORWARDING    NONE  
       3        GigabitEthernet1/0/2         ALTE  DISCARDING    NONE  
       4        GigabitEthernet1/0/3         ROOT  FORWARDING    NONE 
    Based on the output, the user can draw the MSTI mapped to each VLAN, as shown in Figure 2 - MSTIs mapped to different VLANs.
    Figure 2: MSTIs mapped to different VLANs

0 comments

Post a Comment