Chapter 20: Rapid Spanning Tree Protocol (RSTP) Commands
368 Section III: Layer 2 Switching
SET STP PORT
Syntax
set stp port=
port_list
[portpriority=
portpriority
]
[pathcost=
cost
|auto] [edgeport=yes|no|on|off|true|false]
[ptp=auto|yes|no|on|off|true|false]
[migrationcheck=on|yes|true]
Parameters
port_list
Specifies one or more ports. To specify multiple ports, use
commas to separate nonconsecutive numbers (for example 5,7,9)
or a dash to specify consecutive numbers (for example (1-4).
portpriority
Specifies the port’s priority. This parameter is used as a tie breaker
when two or more ports are determined to have equal costs to the
root bridge. The range is 0 to 240 in increments of 16, for a total of
16 increments, as shown in Table 40. The default is 128. If you
enter a value that is not an increment of 16, the switch rounds the
value down to the previous increment.
pathcost
Specifies the port’s cost. The spanning tree algorithm uses the
cost parameter to decide which port provides the lowest cost path
to the root bridge for that LAN. The options are:
cost: A value for the port cost. The range is 1 to 200,000,000.
Table 40. Port Priority Values
Bridge Priority Bridge Priority
0 128
16 144
32 160
48 176
64 192
80 208
96 224
112 240