Changes an interface's spanning-tree port path cost.
The default path cost is 200000000.
Interface configuration mode
Lower path cost indicates a greater chance of becoming root.
To set the port cost to 128:
device# configure terminal device(config)# interface ethernet 1/5 device(conf-if-eth-1/5)# spanning-tree cost 128