131
network diameter. With the network diameter set to 7 (the default), the three timers are also set to
their defaults.
In STP, RSTP, or MSTP mode, each MST region is considered as a device. The configured network
diameter of the switched network takes effect only on the CIST (or the common root bridge).
In PVST mode, the configured network diameter takes effect only on the root bridges of the specified
VLANs.
Examples
# In MSTP mode, set the network diameter of the switched network to 5.
<Sysname> system-view
[Sysname] stp bridge-diameter 5
# In PVST mode, set the network diameter of VLAN 2 in the switched network to 5.
<Sysname> system-view
[Sysname] stp vlan 2 bridge-diameter 5
Related commands
stp timer forward-delay
stp timer hello
stp timer max-age
stp compliance
Use stp compliance to configure the mode a port uses to recognize and send MSTP BPDUs.
Use
undo stp compliance to restore the default.
Syntax
stp compliance { auto | dot1s | legacy }
undo stp compliance
Default
A port automatically recognizes the formats of received MSTP packets and determines the formats
of MSTP packets to be sent based on the recognized formats.
Views
Layer 2 Ethernet interface view
Layer 2 aggregate interface view
Predefined user roles
network-admin
Parameters
auto: Configures the port to recognize the MSTP BPDU format automatically and determine the
format of MSTP BPDUs to send.
dot1s: Configures the port to receive and send only standard-format (802.1s-compliant) MSTP
BPDUs.
legacy: Configures the port to receive and send only compatible-format MSTP BPDUs.
Usage guidelines
If this command is configured in Layer 2 Ethernet interface view, it takes effect only on that interface.