This command enables STP on the device globally in the CONFIG mode and on certain interfaces in configuration modes of interfaces (FRONT-PORT, PORT-CHANNEL). The use of the negative form of the command (no) denies the use of STP feature.
[no] spanning-tree enable
The command contains no arguments.
CONFIGURE
FRONT-PORT
PORT-CHANNEL
ma4000(config)# spanning-tree enable |
STP feature enabled.
This command sets the delay time for data transmission. Forwarding delay is the time, during which the interface remains in 'Listening' and 'Learning' states prior to going into 'Forwarding' state.
The use of the negative form of the command (no) sets the default data transmission delay time.
spanning-tree fdelay <DELAY>
no spanning-tree fdelay
<DELAY> – data transmission delay time, [4 .. 30] seconds.
15 seconds
CONFIG
ma4000(config)# spanning-tree fdelay 20 |
This command sets the time of sending hello-packages.
The exchange of hello-packets is carried out between the Root Bridge and dedicated bridges (Designated Bridges) and serves to exchange information on the topology of the entire switched local network.
The use of the negative form of the command (no) sets the default hello packets sending time.
spanning-tree hello <TIME>
no spanning-tree hello
<TIME> – hello packets sending time.
2
CONFIG
ma4000(config)# spanning-tree hello 2 |
1 In the current firmware version this parameter can not be changed. Default value is 2.
This command sets the maximum number of BPDU packets the device can receive within a second.
The use of the negative form of the command (no) sets the default maximum number of BPDU packets the device can receive within a second.
spanning-tree holdcount <COUNT>
no spanning-tree holdcount
<COUNT> – number of BPDU packets, may take values [1 .. 10].
6
CONFIG
ma4000(config)# spanning-tree holdcount 5 |
This command sets the value of BPDU packet waiting timer.
The use of the negative form of the command (no) sets the default value of BPDU packet waiting timer.
spanning-tree maxage <TIME>
no spanning-tree maxage
<TIME> – BPDU packet waiting time, may take values [6 .. 40].
20
CONFIG
ma4000(config)# no spanning-tree maxage 15 |
This command sets the type of the spanningtree protocol: STP, RSTP, MST.
The use of a negative form (no) of the command sets RSTP (default value).
spanning-tree mode <MODE>
no spanning-tree mode
<MODE> – protocol type:
RSTP
CONFIG
ma4000(config)# spanning-tree mode rstp |
The command is used to set the BPDU packet processing mode by the interface with STP disabled.
The use of a negative form (no) of the command sets the default value.
spanning-tree bpdu <MODE>
<MODE> – processing method:
flooding
CONFIG
ma4000(config)# spanning-tree bpdu flooding |
This command in the mode PP4X CONFIGURE sets the bridge priority of the binding tree STP, (0-65535). The root switch is assigned a lower priority switch. 32768 is set by default. The priority value should be a multiple of 4096.
This command in the FRONT-PORT, PORT-CHANNEL configuration mode sets the interface priority in the STP, (0-240). The priority value should be a multiple of 16. 128 is set by default.
The use of a negative form (no) of the command sets the default STP operation priority.
spanning-tree priority <PRIORITY>
no spanning-tree priority
<PRIORITY > – priority;
In CONFIG mode takes the value [0...65535], which should be a multiple of 4096;
In FRONT-PORT modes, PORT-CHANNEL takes [0...240], which should be a multiple of 16.
in CONFIG mode – 32768;
in FRONT-PORT, PORT-CHANNEL mode – 128.
CONFIG
FRONT-PORT
PORT-CHANNEL
ma4000(front-port-2/5)# spanning-tree priority 128 |
Priority 128 is set.
This command sets the value of the STP path for the configurable port.
The use of a negative form (no) of the command sets the default path cost value.
spanning-tree pathcost <PATHCOST>
no spanning-treepath cost
<PATHCOST> – path cost, may take values [0.. 200000000].
0
FRONT-PORT
PORT-CHANNEL
ma4000(front-port-2/5)# spanning-tree pathcost 1 |
Path cost 1 is set.
This command sets the connection type as an edge link to the host. In this case, data transmission is enabled automatically for the port, when the link is established.
The use of a negative form (no) of the command restores the default value.
[no] spanning-tree admin-edge
The command contains no arguments.
disabled
FRONT-PORT
PORT-CHANNEL
ma4000(front-port-2/5)# spanning-tree admin-edge |
For the configured port, the type of edgelink connection is enabled.
This command defines the type of p2p connection definition.
The use of a negative form (no) of the command sets the default p2p connection definition type.
spanning-tree admin-p2p <TYPE>
no spanning-tree admin-p2p
<TYPE> – connection definition type:
auto
FRONT-PORT
PORT-CHANNEL
ma4000(front-port-2/5)# spanning-tree admin-p2p auto |
For the configured port, the connection type p2p is defined on the basis of bdpu.
This command sets the automatic bridge detection on the configured interface/interfaces.
The use of a negative form (no) of the disables automatic bridge detection on the configured interface/interfaces.
[no] spanning-tree auto-edge
enabled
The command contains no arguments.
FRONT-PORT
PORT-CHANNEL
ma4000(front-port-2/5)# spanning-tree auto-edge |
The automatic bridge detection feature is enabled.
Switch to mst configuration mode.
spanning-tree mst configuration
The command contains no arguments.
CONFIG
ma4000(config)# spanning-tree mst configuration |
This command allows you to set a priority for this access node over others that use a shared MSTP instance. The value should be a multiple of 4096.
The use of a negative form (no) of the command sets the default priority value.
[no] spanning-tree mst instance priority <INSTANCE> <PRIORITY>
<INSTANCE> – MSTP instance ID, may take values [1..15];
<PRIORITY> – priority, may take values in the range [0..61440], the value should be a multiple of 4096.
32768
CONFIG
ma4000(config)# spanning-tree mst instance |
The command sets the maximum amount of hops for BPDU packet that are required to build a tree and to keep its structure information. If the packet has already passed the maximum amount of hops, it is dropped on the next hop.
The use of a negative form (no) of the command sets the default value.
[no] spanning-tree mst max-hops <COUNT>
<COUNT> – maximum amount of hops, may take values [6..40].
CONFIG
ma4000(config)# spanning-tree mst max-hops |
This command allows to view the STP status on the device stack. If you specify the instance command, you can view the STP status for a specific MSTP instance identifier.
show spanning-tree active [instance <INSTANCE>]
<INSTANCE> – MSTP instance ID, may take values [1..15].
ROOT
ma4000# show spanning-tree active spanning tree: off |
The command is used to view the bridge status. If you specify the instance command, you can view the bridge status for a specific MSTP instance identifier.
show spanning-tree bridge [instance <INSTANCE>]
<INSTANCE> – MSTP instance ID, may take values [1..15].
ROOT
ma4000# show spanning-tree bridge Cannot get spanning-tree status |
This command allows to view the STP status for the specified interface range.
show spanning-tree interface <INTERFACE> <RANGE>
<INTERFACE> – interface type: front-port; gpon-port; ont; plc-front-port; plc-mgmt-pon-port; plc-pon-port; plc-slot-channel; plc-slot-port; port-channel; slot-channel; slot-port; stack-port. The description of interfaces is given in Table 4.1.
<RANGE> – interface number. The range of values and numbering rules are described in Table 4.1. If you specify the value 'all' in the command, all interfaces of the given type will be specified.
You may specify the list of numbers using comma ( , ) or specify the range using hyphen ( - ).
ROOT
ma4000# show spanning-tree interface front-port 1/0-1 spanning tree: off |
The command is used to view the way BPDU packets are processed for interfaces where STP function is disabled.
show spanning-tree bpdu
The command contains no arguments.
ROOT
ma4000# show spanning-tree bpdu Global: flooding |
This command is used to view information about configured MSTP instances.
show spanning-tree mst-configuration
The command contains no arguments.
ROOT
ma4000# show spanning-tree mst-configuration Name: Revision: 0 MST Configuration ~~~~~~~~~~~~~~~~~ Inst State Mapped Vlans ---- -------- ------------------------------------------------------------ 0 enabled 1, 30, 200 |