DGS-1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide
605
Command Default Level
Level: 12.
Usage Guideline
When a port is spanning tree enabled, the spanning tree protocol engine will either send or process
the spanning tree BPDU received by the port. The command should be used with caution to prevent
bridging loops. The command does not take effect if the Layer 2 protocol tunnel is enabled for STP.
Example
This example shows how to enable Spanning Tree on Ethernet interface eth3/0/1.
Switch# configure terminal
Switch(config)# interface eth3/0/1
Switch(config-if)# spanning-tree state enable
Switch(config-if)#
65-8
spanning-tree cost
This command is used to configure the value of the port path-cost on the specified port. Use the
no
form of this command to revert to the auto-computed path cost.
spanning-tree cost COST
no spanning-tree cost
Parameters
COST
Specifies the path cost for the port. The range is from 1 to
200000000.
Default
The default path cost is computed from the interface’s bandwidth setting.
Command Mode
Interface Configuration Mode.
Command Default Level
Level: 12.
Usage Guideline
In the RSTP or STP-compatible mode, the administrative path cost is used by the single spanning-
tree to accumulate the path cost to reach the Root. In the MSTP mode, the administrative path cost is
used by the CIST regional root to accumulate the path cost to reach the CIST root.
Example
This example shows how to configure the port cost to 20000 for Ethernet interface eth1/0/7.
Switch# configure terminal
Switch(config)# interface eth1/0/7
Switch(config-if)# spanning-tree cost 20000
Switch(config-if)#
65-9
spanning-tree guard root
This command is used to enable the root guard mode. Use the
no
form of this command to revert to
the default setting.
Summary of Contents for DGS-510
Page 1: ...1 ...
Page 287: ...DGS 1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide 284 ...
Page 321: ...DGS 1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide 318 ...
Page 493: ...DGS 1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide 490 ...
Page 733: ...DGS 1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide 730 ...