Switch 7700 Command reference Guide, v2.0

Table Of Contents
306 CHAPTER 8: USING STP COMMANDS
Parameter
cost: Specifies the path cost, ranging from 1 to 200000.
Description
Using the stp cost command, you can configure the path cost on a spanning
tree for the current Ethernet port. Using the
undo stp cost command, you can
restore the default cost.
By default, the bridge gets the path cost directly through the speed of the link
connected to the port.
The path cost of an Ethernet port is related to the link speed. You can refer to the
following table. RSTP will check the link speed of the port and get the path cost
directly. It is recommended to set the cost to the default value and let RSTP query
the path cost of the port.
Example
Configure the path cost of Ethernet1/0/1 to 200.
[SW7700-Ethernet1/0/1]stp cost 200
stp edged-port Syntax
stp edged-port { enable | disable }
undo stp edged-port
View
Ethernet port view
Parameter
enable: Sets the current Ethernet port as an edge port.
disable: Sets the current Ethernet port as a non-edge port.
Description
Using the stp edged-port enable command, you can configure the current port
as an edge port. Using the
stp edged-port disable command, you can
configure the current port as a non-edge port. Using the
undo stp edged-port
command, you can restore the default setting.
By default, all the Ethernet ports of the bridge are configured as non-edge ports.
Tab le 24 Path cost for ports at different link speeds
Link speed
Recommended
value
Recommended
range
Range
10Mbps 2000 200 to 20000 1 to 200000
100Mbps 200 20 to 2000 1 to 200000
1Gbps 20 2 to 200 1 to 200000
10Gbps 2 2 to 20 1 to 200000