Cisco Systems RJ-45-to-AUX Switch User Manual


 
This example uses 100 as the port cost:
spantree cost 100
Verifying the Port Cost Configuration on Both a Set/Clear
Command− and CLI−Based Interface
To verify the port cost on the port configured previously, use the following Privileged mode command:
show spantree <module/port>
The following command provides output on module 0, port 3:
show spantree 0/3
The output on the console should look similar to this:
Port Vlan Port−State Cost Priority Fast−StartGroup−method
—————— —————— —————————— ———— ———————— —————————— ——————————
0/3 4 forwarding 10 32 disabled
Configuring the Port Priority on a Set/Clear Command−Based
IOS
The port with the lowest priority value forwards frames for all VLANs. In the event that all ports have the
same priority value, the port with the lowest port number will forward the frames. The possible port priority
value range is from 0 to 63. The default port priority value is 32. To change a port’s priority, enter the
following Privileged mode command:
set spantree portpri <module/port> <port priority>
Here, 4 is the module number, 3 is the port number, and 10 is the port priority:
set spantree portpri 4/3 10
Configuring the Port Priority on a CLI−Based IOS
On a Cisco IOS command−based switch, the priority value is a numerical value from 0 to 255. To set the port
priority on a Cisco IOS command−based switch, enter the following Interface Configuration mode command:
spantree priority <port priority>
In this example, 100 is the priority value:
spantree priority 100
217