
Configuring the Cisco Gigabit EtherSwitch EHWIC
How to Configure Gigabit EtherSwitch EHWICs
30
Configuring the Cisco Gigabit EtherSwitch EHWIC
OL-23155-01
Enabling Spanning Tree
You can enable spanning tree on a per-VLAN basis. The switch maintains a separate instance of
spanning tree for each VLAN (except on VLANs on which you disable spanning tree).
Note Spanning tree is enabled by default on all VLANs when they are created and the ports become members
of that VLAN.
To enable spanning tree on a per-VLAN basis, use the spanning-tree vlan vlan_ID command in global
configuration mode.
Verifying Spanning Tree
Use the show spanning-tree vlan to verify spanning tree configuration.
Router#show spanning-tree vlan 1
VLAN1 is executing the ieee compatible Spanning Tree protocol
Bridge Identifier has priority 32768, address 0025.451b.b22a
Configured hello time 2, max age 20, forward delay 15
Current root has priority 32768, address 0008.e36d.9f70
Root port is 18 (GigabitEthernet0/1/4), cost of root path is 38
Topology change flag not set, detected flag not set
Number of topology changes 11 last change occurred 02:43:01 ago
from GigabitEthernet0/1/2
Times: hold 1, topology change 35, notification 2
hello 2, max age 20, forward delay 15
Timers: hello 0, topology change 0, notification 0, aging 300
Port 16 (GigabitEthernet0/1/2) of VLAN1 is forwarding
Port path cost 4, Port priority 128, Port Identifier 128.16.
Designated root has priority 32768, address 0008.e36d.9f70
Designated bridge has priority 32768, address 0025.451b.b22a
Designated port id is 128.16, designated path cost 38
Timers: message age 0, forward delay 0, hold 0
Number of transitions to forwarding state: 1
BPDU: sent 9810, received 1
Router#
Configuring Spanning Tree Port Priority
Beginning in global configuration mode, follow these steps to configure the spanning tree port priority
of an interface.
SUMMARY STEPS
1. interface gigabitethernet 0/slot/port
2. spanning-tree port-priority port_priority
3. spanning-tree vlan vlan_ID port-priority port_priority
4. end
Comentarios a estos manuales