< Home

stp compliance

Function

The stp compliance command configures the format for the MSTP packets that are received and sent on the switching device.

The undo stp compliance command restores the default format for the MSTP packets that are received and sent on the switching device.

By default, the MSTP packet format is auto.

Format

stp compliance { auto | dot1s | legacy }

undo stp compliance

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.

-

Views

Ethernet interface view, GE interface view, XGE interface view, MultiGE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view, port group view, 25GE interface view

Default Level

2: Configuration level

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.

If the auto parameter is set, the device preferentially sends IEEE·802.1s-compliant MSTP packets and can process IEEE·802.1s-compliant and vendor-specific MSTP packets. After an interface receives an MSTP packet from a non-Huawei device, the interface automatically switches to the packet format supported by the peer device based on the format of the received packet.

If the dot1s parameter is set, the device preferentially sends IEEE·802.1s-compliant MSTP packets and can process IEEE·802.1s-compliant and vendor-specific MSTP packets. After an interface receives an MSTP packet from a non-Huawei device, the interface automatically switches to the packet format supported by the peer device based on the format of the received packet.

If the legacy parameter is set, the device preferentially sends vendor-specific MSTP packets and can process IEEE·802.1s-compliant and vendor-specific MSTP packets. After an interface receives an MSTP packet from a non-Huawei device, the interface automatically switches to the packet format supported by the peer device based on the format of the received packet.

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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >