Spanning-Tree Protocol


Spanning-Tree Mode

Different types of spanning trees can be configured on a Cisco switch. The options vary according to the platform:

  • Per-VLAN Spanning Tree (PVST)
  • Per-VLAN Spanning Tree Plus (PVST+)
  • Rapid PVST+
  • Multiple Spanning Tree Protocol (MSTP)

Core Switch
=========

Switch>enable
Switch#configure terminal
Switch(config)#hostname Core-Switch
Core-Switch(config)#no ip domain-lookup

Core-Switch(config)#vtp mode server
Core-Switch(config)#vtp domain example

Core-Switch(config)#vlan 10
Core-Switch(config-vlan)#name vlan10
Core-Switch(config-vlan)#exit

Core-Switch(config)#vlan 20
Core-Switch(config-vlan)#name vlan20
Core-Switch(config-vlan)#exit

Core-Switch(config)#spanning-tree vlan 1 root primary
Core-Switch(config)#exit
Core-Switch#copy running-config startup-config

Switch 1
======

Switch>enable
Switch#configure terminal
Switch(config)#hostname Switch1
Switch1(config)#no ip domain-lookup
Switch1(config)#vtp domain example
Switch1(config)#vtp mode client
Switch1(config)#spanning-tree vlan 10 root primary
Switch1(config)#exit
Switch1#copy running-config startup-config

Switch 2
======

Switch>enable
Switch#configure terminal
Switch(config)#hostname Switch2
Switch2(config)#no ip domain-lookup
Switch2(config)#vtp domain example
Switch2(config)#vtp mode client
Switch2(config)#spanning-tree vlan 20 root primary
Switch2(config)#exit
Switch2#copy running-config startup-config
Spanning-Tree Protocol Spanning-Tree Protocol Reviewed by Anonymous on 7:17:00 AM Rating: 5