Improving Performance With Spanning Tree: Medium-Sized Switched Network Construction
Improving Performance With Spanning Tree: Medium-Sized Switched Network Construction
Improving Performance With Spanning Tree: Medium-Sized Switched Network Construction
BSCI v3.0—2-1
Redundant Topology
SwitchX(config-if)#
spanning-tree portfast
Configures PortFast on an interface
OR
SwitchX(config)#
spanning-tree portfast default
Enables PortFast on all non-trunking interfaces
SwitchX#
show running-config interface interface
Verifies that PortFast has been configured on an interface
Spanning-Tree Operation Example
Spanning-Tree Path Cost
1 Gb/s 4 1
100 Mb/s 19 10
10 Mb/s 100 100
Spanning-Tree Recalculation
Per VLAN Spanning Tree Plus
PVST+ Extended Bridge ID
Extended bridge ID
with system ID
System ID = VLAN
Rapid Spanning Tree Protocol
Default Spanning-Tree Configuration
1. Enable PVRST+.
2. Designate and configure a switch to be the root
bridge.
3. Designate and configure a switch to be the secondary
root bridge.
4. Verify the configuration.
PVRST+ Implementation Commands
SwitchX(config)#
spanning-tree mode rapid-pvst
Configures PVRST+
SwitchX#
show spanning-tree vlan vlan# [detail]
Verifies the spanning-tree configuration
SwitchX#
debug spanning-tree pvst+
Displays PVST+ event debug messages
Verifying PVRST+
SwitchA(config)#
spanning-tree vlan 1 root primary
This command forces this switch to be the root for VLAN 1.
SwitchA(config)#
spanning-tree vlan 2 root secondary
This command configures this switch to be the secondary root
for VLAN 2.
OR
SwitchA(config)#
spanning-tree vlan # priority priority
This command statically configures the priority (increments of 4096).
Configuring the Root and
Secondary Bridges: SwitchB
SwitchB(config)#
spanning-tree vlan 2 root primary
SwitchB(config)#
spanning-tree vlan 1 root secondary
OR
SwitchB(config)#
spanning-tree vlan # priority priority