spanning-tree enable
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.
Syntax
[no] spanning-tree enable
Parameters
The command contains no arguments.
Command mode
CONFIGURE
FRONT-PORT
PORT-CHANNEL
Example
ma4000(config)# spanning-tree enable
STP feature enabled.
spanning-tree fdelay
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.
Syntax
spanning-tree fdelay <DELAY>
no spanning-tree fdelay
Parameters
<DELAY> – data transmission delay time, [4 .. 30] seconds.
Default value
15 seconds
Command mode
CONFIG
Example
ma4000(config)# spanning-tree fdelay 20
spanning-tree hello1
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.
Syntax
spanning-tree hello <TIME>
no spanning-tree hello
Parameters
<TIME> – hello packets sending time.
Default value
2
Command mode
CONFIG
Example
ma4000(config)# spanning-tree hello 2
1 In the current firmware version this parameter can not be changed. Default value is 2.
spanning-tree holdcount
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.
Syntax
spanning-tree holdcount <COUNT>
no spanning-tree holdcount
Parameters
<COUNT> – number of BPDU packets, may take values [1 .. 10].
Default value
6
Command mode
CONFIG
Example
ma4000(config)# spanning-tree holdcount 5
spanning-tree maxage
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.
Syntax
spanning-tree maxage <TIME>
no spanning-tree maxage
Parameters
<TIME> – BPDU packet waiting time, may take values [6 .. 40].
Default value
20
Command mode
CONFIG
Example
ma4000(config)# no spanning-tree maxage 15
spanning-tree mode
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).
Syntax
spanning-tree mode <MODE>
no spanning-tree mode
Parameters
<MODE> – protocol type:
- stp – IEEE 802.1D Spanning Tree Protocol;
- rstp – IEEE 802.1W Rapid Spanning Tree Protocol;
- mstp – IEEE 802.1S Multiple Spanning Tree Protocol.
Default value
RSTP
Command mode
CONFIG
Example
ma4000(config)# spanning-tree mode rstp
spanning-tree bpdu
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.
Syntax
spanning-tree bpdu <MODE>
Parameters
<MODE> – processing method:
- filtering – BPDU packets are filtrated on the interface with disabled STP;
- flooding – untagged BPDU packets are transmitted on the interface with disabled STP, tagged ones are filtrated.
Default value
flooding
Command mode
CONFIG
Example
ma4000(config)# spanning-tree bpdu flooding
spanning-tree priority
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.
Syntax
spanning-tree priority <PRIORITY>
no spanning-tree priority
Parameters
<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.
Default value
in CONFIG mode – 32768;
in FRONT-PORT, PORT-CHANNEL mode – 128.
Command mode
CONFIG
FRONT-PORT
PORT-CHANNEL
Example
ma4000(front-port-2/5)# spanning-tree priority 128
Priority 128 is set.
spanning-tree pathcost
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.
Syntax
spanning-tree pathcost <PATHCOST>
no spanning-treepath cost
Parameters
<PATHCOST> – path cost, may take values [0.. 200000000].
Default value
0
Command mode
FRONT-PORT
PORT-CHANNEL
Example
ma4000(front-port-2/5)# spanning-tree pathcost 1
Path cost 1 is set.
spanning-tree admin-edge
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.
Syntax
[no] spanning-tree admin-edge
Parameters
The command contains no arguments.
Default value
disabled
Command mode
FRONT-PORT
PORT-CHANNEL
Example
ma4000(front-port-2/5)# spanning-tree admin-edge
For the configured port, the type of edgelink connection is enabled.
spanning-tree admin-p2p
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.
Syntax
spanning-tree admin-p2p <TYPE>
no spanning-tree admin-p2p
Parameters
<TYPE> – connection definition type:
- auto – the definition is based on bpdu;
- force-false – forced link as p2p;
- force-true – forced link as a non p2p.
Default value
auto
Command mode
FRONT-PORT
PORT-CHANNEL
Example
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.
spanning-tree auto-edge
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.
Syntax
[no] spanning-tree auto-edge
Default value
enabled
Parameters
The command contains no arguments.
Command mode
FRONT-PORT
PORT-CHANNEL
Example
ma4000(front-port-2/5)# spanning-tree auto-edge
The automatic bridge detection feature is enabled.
spanning-tree mst configuration
Switch to mst configuration mode.
Syntax
spanning-tree mst configuration
Parameters
The command contains no arguments.
Command mode
CONFIG
Example
ma4000(config)# spanning-tree mst configuration
spanning-tree mst instance priority
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.
Syntax
[no] spanning-tree mst instance priority <INSTANCE> <PRIORITY>
Parameters
<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.
Default value
32768
Command mode
CONFIG
Example
ma4000(config)# spanning-tree mst instance
spanning-tree mst max-hops
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.
Syntax
[no] spanning-tree mst max-hops <COUNT>
Parameters
<COUNT> – maximum amount of hops, may take values [6..40].
Command mode
CONFIG
Example
ma4000(config)# spanning-tree mst max-hops
show spanning-tree active
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.
Syntax
show spanning-tree active [instance <INSTANCE>]
Parameters
<INSTANCE> – MSTP instance ID, may take values [1..15].
Command mode
ROOT
Example
ma4000# show spanning-tree active spanning tree: off
show spanning-tree bridge
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.
Syntax
show spanning-tree bridge [instance <INSTANCE>]
Parameters
<INSTANCE> – MSTP instance ID, may take values [1..15].
Command mode
ROOT
Example
ma4000# show spanning-tree bridge Cannot get spanning-tree status
show spanning-tree interface
This command allows to view the STP status for the specified interface range.
Syntax
show spanning-tree interface <INTERFACE> <RANGE>
Parameters
<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 ( - ).
Command mode
ROOT
Example
ma4000# show spanning-tree interface front-port 1/0-1 spanning tree: off
show spanning-tree bpdu
The command is used to view the way BPDU packets are processed for interfaces where STP function is disabled.
Syntax
show spanning-tree bpdu
Parameters
The command contains no arguments.
Command mode
ROOT
Example
ma4000# show spanning-tree bpdu Global: flooding
show spanning-tree mst-configuration
This command is used to view information about configured MSTP instances.
Syntax
show spanning-tree mst-configuration
Parameters
The command contains no arguments.
Command mode
ROOT
Example
ma4000# show spanning-tree mst-configuration Name: Revision: 0 MST Configuration ~~~~~~~~~~~~~~~~~ Inst State Mapped Vlans ---- -------- ------------------------------------------------------------ 0 enabled 1, 30, 200