![background image](http://html1.mh-extra.com/html/xenya/xs26gs/xs26gs_user-manual_3274837146.webp)
XS26GS Managed Optical Ethernet Switch User Manual
141
Description
Use
spanning-tree max-hops
command to set the MSTP max-hops.
Use
no spanning-tree max-hops
command to restore the max-hops to default
value.
The default max-hops are 20.
Examples
XS# spanning-tree max-hops 18
Configure successfully
spanning-tree mode
Syntax
spanning-tree mode {stp | rstp | mstp}
View
System view
Parameters
stp
: specifies the STP mode.
rstp
: specifies the RSTP mode.
mstp
: specifies the MSTP mode
Description
Use
stp mode
command to set the operating mode of the switch.
To make the switch compatible with STP/RSTP/MSTP, the following three operating
modes are provided.
stp
: in this mode, the ports of the switch send STP BPDUs to neighbor devices.
In the case that there is a neighbor switch working in RSTP or MSTP mode, the port
between them will work in STP mode.
rstp
: in this mode, the ports of a switch send RSTP BPDUs to neighbor devices.
mstp
: in this mode, the ports of a switch send MSTP BPDUs to neighbor devices.
Examples
XS#
spanning-tree mode stp
Set successfully
spanning-tree bpdu-guard
Syntax
spanning-tree bpdu-guard
no
spanning-tree
bpdu-guard
View
System
view