R0106-HP MSR Router Series Layer 2 - LAN Switching Command Reference(V7)

27
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
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
When the setting is configured in Layer 2 Ethernet interface view, it takes effect on only the interface.
Examples
# Configure GigabitEthernet 2/1/1 to send only standard-format (802.1s) MSTP packets.
<Sysname> system-view