stp compliance
Function
The stp compliance command configures the format for the MSTP packets that are received and sent on the device.
The undo stp compliance command restores the default format for the MSTP packets that are received and sent on the device.
By default, the MSTP packet format is auto.
Parameters
Parameter | Description | Value |
---|---|---|
auto | Indicates that the protocol format is self-adaptive. | - |
dot1s | Indicates that the format is standard IEEE 802.1s. | - |
legacy | Indicates the private packet format. | - |
Usage Guidelines
Usage Scenario
MSTP protocol packets have two formats: dot1s (IEEE 802.1s standard packets) and legacy (proprietary protocol packets). The stp compliance command can be used on a device to set an MSTP packet format based on the format of the MSTP packet received from a remote device so that this device can better communicate with the remote device.
The auto mode is set to allow a port to automatically switch to the MSTP protocol packet format used by the remote end based on the MSTP protocol packet format received from the remote end. This enables the two interfaces to use the same MSTP protocol packet format.
Precautions
If you configure different packet formats on the same interface in the system view and the interface view, the latest configuration overrides the previous one.
Example
# Set the format of the MSTP packets to the standard format of the interface.
<Huawei> system-view
[Huawei] interface gigabitethernet 0/0/1
[Huawei-GigabitEthernet0/0/1] stp compliance dot1s
# Restore the self-adaptive format of the MSTP packets that are received and sent by the switching device.
<Huawei> system-view
[Huawei] interface gigabitethernet 0/0/1
[Huawei-GigabitEthernet0/0/1] undo stp compliance