xStack DGS-3400 Series Layer 2 Gigabit 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 BDPU 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] – When this is enabled, the Switch will temporarily 
block STP switch-wide when a BDPU packet has been looped back. If the 
Switch detects its own BDPU 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 default is enable. 
lbd_recover_timer [ 0 | < second 60 -1000000 > ] – Time allowed for 
recovery after an STP loopback has been detected. After the timer has 
expired the Switch checks for an STP loopback, if no loopback detected, 
STP will be resumed. Entering 0 will disable LBD recovery. 
Restrictions Only administrator-level users can issue this command. 
Example usage: 
To configure STP with maxage 18 and maxhops of 15: 
DGS-3400:4#config stp maxage 18 maxhops 15 
Command: config stp maxage 18 maxhops 15 
 
Success. 
 
DGS-3400: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]} 
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 
probability the port will be chosen to forward packets.  
hellotime <value 1-10> − The time interval between transmission of 
configuration messages by the designated port, to other devices on the 
bridged LAN, thus stating that the Switch is still functioning. The user may 
choose a time between 1 and 10 seconds. The default is 2 seconds. 
migrate [yes | no] – Setting this parameter as “yes” will set the ports to send 
 
71