Owners manual

DGS-1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide
575
61-7 spanning-tree state
This command is used to enable or disable the STP operation. Use the no command to revert to default
setting.
spanning-tree state {enable | disable}
no spanning-tree state
Parameters
enable
Specifies to enable STP for the configured interface.
disable
Specifies to disable STP for the configured interface.
Default
By default, this option is enabled.
Command Mode
Interface Configuration Mode.
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)#
61-8 spanning-tree cost
This command is used to configure the value of the port path-cost on the specified port. Use the no
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