Chapter 7
Configuring Spanning Tree
To configure the port VLAN cost for a port, perform this task in privileged mode:
Task
Configure the port VLAN cost for a
VLAN on a switch port.
This example shows how to configure the port VLAN cost on a port:
Console> (enable) set spantree portvlancost 2/3 cost 20000 1-5
Port 2/3 VLANs 6-11,13-1005,1025-4094 have path cost 12.
Port 2/3 VLANs 1-5,12 have path cost 20000.
This parameter applies to trunking ports only.
Console> (enable
Configuring the PVST+ Port VLAN Priority
When the switch is in PVST+ mode, you can set the port priority for a trunking port in a VLAN. The
port with the lowest priority value for a specific VLAN forwards frames for that VLAN. The possible
port VLAN priority range is from 0–63. The default is 32. If all ports have the same priority value for a
particular VLAN, the port with the lowest port number forwards frames for that VLAN.
The port VLAN priority value must be lower than the port priority value.
To configure the port VLAN priority for a port, perform this task in privileged mode:
Task
Step 1
Configure the port VLAN priority for a VLAN on
a switch port.
Step 2
Verify the port VLAN priority.
This example shows how to configure the port VLAN priority on a port:
Console> (enable) set spantree portvlanpri 2/3 16 6
Port 2/3 vlans 6 using portpri 16.
Port 2/3 vlans 1-5,7-800,802-1004,1006-4094 using portpri 32.
Port 2/3 vlans 801,1005 using portpri 4.
This parameter applies to trunking ports only.
Console> (enable) show config all
.
.
.
set spantree portcost
set spantree portcost
set spantree portcost
set spantree portpri
set spantree portvlanpri 2/1
set spantree portvlanpri 2/2
.
.
.
set spantree portvlanpri 2/48 0
set spantree portvlancost 2/1
set spantree portvlancost 2/2
set spantree portvlancost 2/3
78-15486-01
2/12,2/15
2/1-2,2/4-11,2/13-14,2/16-48
2/3
2/1-48
Catalyst 4500 Series, Catalyst 2948G, Catalyst 2980G Switches Software Configuration Guide
Command
set spantree portvlancost {mod/port} [cost cost] [vlan_list]
Command
set spantree portvlanpri mod_num/port_num
priority [vlans]
show config all
19
12
32
0
0
cost 99
cost 99
cost 20000 1-5,12
100
—
Release 8.1
Using PVST+
7-27