XG700 User's Guide
138/266
All Rights Reserved, Copyright (C) PFU LIMITED 2005-2006
5.10.9 spanning-tree port-path-cost
Function
Sets a path cost of each port.
Use the no form to return to the default setup.
Prompt
xg(config-if)#, or xg(config-agg)#
Command syntax
spanning-tree port-path-cost <1-200000000>
no spanning-tree port-path-cost
Parameter
port-path-cost <1-200000000>
Sets a path cost of each port. It can be within the range of 1 to 200000000.
The following path cost values are recommended by IEEE802.1D.
IEEE802.1d (16bit)
IEEE802.1d (32bit)
Link speed
Recommended
range
Recommended
value
Recommended
range
Recommended
value
100M bps
10 - 60
19
20000 - 2000000
200000
1G bps
3 - 10
4
2000 - 200000
20000
10G bps
1 - 5
2
200 - 20000
2000
Command type
Configuration command
Configuration command Default
2 (16bit)
2000 (32bit)
Example
Set the path cost of switch port 2 to 3:
xg(config)# interface port 2
xg(config)# spanning-tree port-path-cost 3