Configuring STP per VLAN Group

To configure STP per VLAN group, perform the following tasks:

  1. Configure the member VLANs.
  2. Optionally, configure master VLANs to contain the member VLANs. This is useful when you have a lot of member VLANs and you do not want to individually configure STP on each one. Each of the member VLANs in the STP group uses the STP settings of the master VLAN.
  3. Configure the STP groups. Each STP group runs a separate instance of STP.

    The following CLI commands implement the STP per VLAN group configuration shown in STP per VLAN Group Example . The following commands configure the member VLANs (3, 4, 13, and 14) and the master VLANs (2 and 12). Notice that changes to STP parameters are made in the master VLANs only, not in the member VLANs.

    device(config)# vlan 2
    device(config-vlan-2)# spanning-tree priority 1
    device(config-vlan-2)# tagged ethernet 1/1/1 to 1/1/4
    device(config-vlan-2)# vlan 3
    device(config-vlan-3)# tagged ethernet 1/1/1 to 1/1/4
    device(config-vlan-3)# vlan 4
    device(config-vlan-4)# tagged ethernet 1/1/1 to 1/1/4
    device(config-vlan-4)# vlan 12
    device(config-vlan-12)# spanning-tree priority 2
    device(config-vlan-12)# tagged ethernet 1/1/1 to 1/1/4
    device(config-vlan-12)# vlan 13
    device(config-vlan-13)# tagged ethernet 1/1/1 to 1/1/4
    device(config-vlan-13)# vlan 14
    device(config-vlan-14)# tagged ethernet 1/1/1 to 1/1/4
    device(config-vlan-14)# exit

    The following commands configure the STP groups.

    device(config)# stp-group 1
    device(config-stp-group-1)# master-vlan 2
    device(config-stp-group-1)# member-vlan 3 to 4
    device(config-stp-group-1)# exit
    device(config)#stp-group 2
    device(config-stp-group-2)# master-vlan 12
    device(config-stp-group-2)# member-vlan 13 to 14