PurposeCommand or Action
Example:
Switch(config)# spanning-tree vlan
20-24 root secondary diameter 4
•
For vlan-id, you can specify a single VLAN identified by VLAN
ID number, a range of VLANs separated by a hyphen, or a series
of VLANs separated by a comma. The range is 1 to 4094.
•
(Optional) For diameter net-diameter, specify the maximum
number of switches between any two end stations. The range is 2
to 7.
Use the same network diameter value that you used when configuring
the primary root switch.
Returns to privileged EXEC mode.end
Example:
Switch(config)# end
Step 3
Configuring Port Priority
If your switch is a member of a switch stack, you must use the spanning-tree [vlan vlan-id] cost cost
interface configuration command instead of the spanning-tree [vlan vlan-id] port-priority priority
interface configuration command to select an interface to put in the forwarding state. Assign lower cost
values to interfaces that you want selected first and higher cost values that you want selected last.
Note
This procedure is optional.
Beginning in privileged EXEC mode, follow these steps to configure port priority:
SUMMARY STEPS
1.
configure terminal
2.
interface interface-id
3.
spanning-tree port-priority priority
4.
spanning-tree vlan vlan-id port-priority priority
5.
end
Catalyst 2960-XR Switch Layer 2 Configuration Guide, Cisco IOS Release 15.0(2)EX1
OL-29424-01 31
Configuring Spanning Tree Protocol
Configuring Port Priority