DGS-1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide
585
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.
spanning-tree guard root
no spanning-tree guard root
Summary of Contents for DGS-1510 Series
Page 1: ...1 0 ...
Page 27: ...DGS 1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide 24 ...
Page 281: ...DGS 1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide 278 ...
Page 336: ...DGS 1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide 333 ...
Page 475: ...DGS 1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide 472 ...
Page 695: ...DGS 1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide 692 ...