XS26GS Managed Optical Ethernet Switch User Manual
143
Use
spanning-tree root-guard
command to enable the root protection function
for a specified port on the switch.
Use
no spanning-tree root-guard
command to disable the root protection for a
specified port on the switch.
Examples
XS(Ethernet0/1)#
spanning-tree root-guard
Set successfully
spanning-tree path-cost
Syntax
spanning-tree path-cost
cost
no
spanning-tree
path-cost
View
Ethernet port view
Parameters
cost
: path cost to be set for the port. The range of the
cost
argument varies with the
standard used for calculating the default path cost of a port as follows:
With IEEE 802.1D-1998 standard selected, the path cost of an Ethernet port ranges
from 1 to 65535.
With IEEE 802.1t standard selected, the path cost of an Ethernet port ranges from
1 to 200000000.
The argument ranges from 1 to 200000000, and the default value is auto
(
0
)
.
Description
Use
spanning-tree path-cost
command to set the path cost(s) of the specified
port(s).
Use
no spanning-tree path-cost
command to restore to the default value of the
path cost(s) of the specified port(s).
Examples
XS(Ethernet0/1)#
spanning-tree path-cost
300
Set successfully
spanning-tree priority
Syntax
spanning-tree priority
priority
no
spanning-tree
priority
View
Ethernet port view
Parameters
priority
: port priority to be set. This argument ranges from 0 to 255, and the default
value is 128.