RPVST+ scenario

In this scenario, four switches are interconnected. VLANs 10 and 20 are defined on all switches, causing a network loop.

消除the loop, RPVST+ is enabled and switch A and B are defined as high-priority for VLAN 10 and 20 respectively. RPVST+ then eliminates the loop by assigning switch A as the root for VLAN 10 and switch B designated as the root for VLAN 20, and blocking access on one of the links.

On the 6400 Switch Series, interface identification differs.

Procedure
  1. Configure switch A.
    1. Create VLANs 1, 10, and 20.
      switch#configswitch(config)#vlan 1, 10, 20
    2. Enable RPVST+ and assign the VLANs 10 and 20 to it. Assign a priority of 5 to VLAN 10. This will force switch A to become the root of the spanning tree for VLAN 10.
      switch(config)#扩充树模式rpvstswitch(config)#spanning-treeswitch(config)#spanning-tree vlan 10,20switch(config)#spanning-tree vlan 10 priority 5
    3. Define interfaces1/1/1and1/1/2.
      switch(config)#interface 1/1/1switch(config-if)#没有关闭switch(config-if)#vlan trunk native 1switch(config-if)#vlan trunk allowed allswitch(config-if)#interface 1/1/2switch(config-if)#没有关闭switch(config-if)#vlan trunk native 1switch(config-if)#vlan trunk allowed all
  2. Configure switch B and switch C with the same settings.
    1. Create VLANs 1, 10, and 20.
      switch#configswitch(config)#vlan 1, 10, 20
    2. Enable RPVST+ and assign the VLANs 10 and 20 to it.
      switch(config)#扩充树模式rpvstswitch(config)#spanning-treeswitch(config)#spanning-tree vlan 10,20
    3. Define interfaces1/1/1and1/1/2.
      switch(config)#interface 1/1/1switch(config-if)#没有关闭switch(config-if)#vlan trunk native 1switch(config-if)#vlan trunk allowed allswitch(config-if)#interface 1/1/2switch(config-if)#没有关闭switch(config-if)#vlan trunk native 1switch(config-if)#vlan trunk allowed all
  3. Configure switch D.
    1. Create VLANs 1, 10, and 20.
      switch#configswitch(config)#vlan 1, 10, 20
    2. Enable RPVST+ and assign the VLANs 10 and 20 to it. Assign a priority of 5 to VLAN 20. This will force switch D to become the root of the spanning tree for VLAN 20.
      switch(config)#扩充树模式rpvstswitch(config)#spanning-treeswitch(config)#spanning-tree vlan 10,20switch(config)#spanning-tree vlan 20 priority 5
    3. Define interfaces1/1/1and1/1/2.
      switch(config)#interface 1/1/1switch(config-if)#没有关闭switch(config-if)#vlan trunk native 1switch(config-if)#vlan trunk allowed allswitch(config-if)#interface 1/1/2switch(config-if)#没有关闭switch(config-if)#vlan trunk native 1switch(config-if)#vlan trunk allowed all