Cisco WS-C4003 Software Guide - Page 112
Configuring PVST+ Port Cost, Configuring PVST+ Port Priority
View all Cisco WS-C4003 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 112 highlights
Using PVST+ Chapter 7 Configuring Spanning Tree Configuring PVST+ Port Cost You can configure the port cost of switch ports. Ports with lower port costs are more likely to be chosen to forward frames. Assign lower numbers to ports attached to faster media (such as full duplex) and higher numbers to ports attached to slower media.The possible range of cost is 1 to 65535. The default differs for different media. Path cost is typically 1000 ÷ LAN speed in megabits per second. To configure the port cost for a port, perform this task in privileged mode: Step 1 Step 2 Task Configure the port cost for a switch port. Verify the port cost setting. Command set spantree portcost {mod/port} cost show spantree mod/port This example shows how to configure the port VLAN priority on a port and verify the configuration: Console> (enable) set spantree portcost 2/3 12 Spantree port 2/3 path cost set to 12. Console> (enable) show spantree 2/3 VLAN 1 . . . Port Vlan Port-State Cost Prio Portfast Channel_id 1/1 1 not-connected 4 32 disabled 0 1/2 1 not-connected 4 32 disabled 0 2/1 1 not-connected 100 32 disabled 0 2/2 1 not-connected 100 32 disabled 0 2/3 1 forwarding 12 32 disabled 0 2/4 1 not-connected 100 32 disabled Configuring PVST+ Port Priority You can configure the port priority of switch ports in PVST+ mode. The port with the lowest priority value forwards frames for all VLANs. The possible port priority value is 0 to 63. The default is 32. If all ports have the same priority value, the port with the lowest port number forwards frames. To configure the port priority for a port, perform this task in privileged mode: Step 1 Step 2 Task Configure the port priority for a switch port. Verify the port priority setting. Command set spantree portpri mod_num/port_num priority show spantree mod/port This example shows how to configure the port priority for a port: Console> (enable) set spantree portpri 2/3 16 Bridge port 2/3 port priority set to 16. Console> (enable) show spantree 2/3 VLAN 1 . . . Port Vlan Port-State Cost Prio Portfast Channel_id 7-16 Software Configuration Guide-Catalyst 4000 Family, Catalyst 2948G, Catalyst 2980G, Releases 6.3 and 6.4 78-12647-02