If this command is executed with the "no" syntax, the setting returns to the default.
[Note]
This command can be specified only for LAN/SFP port and logical interface.
It is not possible to specify this command for a LAN/SFP port that is associated to a logical interface.
If a LAN/SFP port is associated with a logical interface, the setting of this command for the corresponding LAN/SFP port
returns to the default.
If a LAN/SFP port is
shutdown
by BPDU guard, it can be brought back by executing the
no shutdown
command for that
interface.
If a logical interface is
shutdown
by BPDU guard, it can be brought back by executing the
shutdown
command for that
interface and then executing the
no shutdown
command.
[Example]
Enable BPDU guard for LAN port #1.
SWR2311P(config)#interface port1.1
SWR2311P(config-if)#spanning-tree bpdu-guard enable
6.3.9 Set interface path cost
[Syntax]
spanning-tree
path-cost
path-cost
no
spanning-tree
path-cost
[Parameter]
path-cost
:
<1-200000000>
Path cost value
[Initial value]
Use the following values according to the link speed of the interface.
Link speed
Path cost value
1000Mbps
20000
100Mbps
200000
10Mbps
2000000
For a logical interface, the path cost value is calculated based on totaling the link speed of each associated LAN/SFP port.
[Input mode]
interface mode
[Description]
Sets the path cost of the applicable interface.
If this command is executed with the "no" syntax, the setting returns to the default.
[Note]
In the case of MSTP, this is the setting for CIST (instance #0).
This command can be specified only for LAN/SFP port and logical interface.
It is not possible to specify this command for a LAN/SFP port that is associated to a logical interface.
If a LAN/SFP port is associated with a logical interface, the setting of this command for the corresponding LAN/SFP port
returns to the default.
[Example]
Set the path cost of LAN port #1 to 100000.
SWR2311P(config)#interface port1.1
SWR2311P(config-if)#spanning-tree path-cost 100000
6.3.10 Set interface priority
[Syntax]
spanning-tree
priority
priority
no
spanning-tree
priority
Command Reference | Layer 2 functions |
175