xStack DGS-3612G Layer 3 Gigabit Ethernet Managed Switch CLI Manual
config stp
switches utilizing the Multiple Spanning Tree Protocol.
forwarddelay <value 4-30>
−
The maximum amount of time (in seconds)
that the root device will wait before changing states. The user may choose
a time between 4 and 30 seconds. The default is 15 seconds.
txholdcount <value 1-10>
- The maximum number of BPDU Hello packets
transmitted per interval. Default value = 3.
fbpdu [enable | disable]
−
Allows the forwarding of STP BPDU packets
from other network devices when STP is disabled on the Switch. The
default is
enable
.
lbd [enable | disable] –
This feature is used to temporarily shutdown a port
on the Switch when a BPDU packet has been looped back to the switch.
When the Switch detects its own BPDU packet coming back, it signifies a
loop on the network. STP will automatically be blocked and an alert will be
sent to the administrator. The LBD STP port will restart (change to
discarding state) when the
LBD Recover Time
times out. The Loopback
Detection function will only be implemented on one port at a time. The
default is enabled.
lbd_recover_timer [<value 0> | <value 60-1000000>] -
This field will set the
time the STP port will wait before recovering the STP state set. 0 will
denote that the LBD will never time out or restart until the administrator
personally changes it. The user may also set a time between 60 and
1000000 seconds. The default is 60 seconds.
Restrictions Only
administrator-level users can issue this command.
Example usage:
To configure STP with maxage 18 and maxhops of 15:
DGS-3612G:4#config stp maxage 18 maxhops 15
Command: config stp maxage 18 maxhops 15
Success.
DGS-3612G:4#
config stp ports
Purpose
Used to setup STP on the port level.
Syntax
config stp ports <portlist> {externalCost [auto | <value 1-200000000>] |
hellotime <value 1-10> | migrate [yes | no] edge [true | false] | p2p [true |
false | auto] | state [enable | disable] | lbd [enable | disable] | fbpdu
[enable | disable]}
Description
This command is used to create and configure STP for a group of ports.
Parameters
<portlist>
−
Specifies a range of ports to be configured. The beginning and
end of the port list range are separated by a dash. For example, 1-4 specifies
all of the ports between port 1 and port 4.
externalCost
−
This defines a metric that indicates the relative cost of
forwarding packets to the specified port list. Port cost can be set
automatically or as a metric value. The default value is
auto
.
•
auto
– Setting this parameter for the external cost will automatically
set the speed for forwarding packets to the specified port(s) in the list
for optimal efficiency. Default port cost: 100Mbps port = 200000.
Gigabit port = 20000.
•
<value 1-200000000>
- Define a value between 1 and 200000000 to
determine the external cost. The lower the number, the greater the
74