stp compliance

Syntax

stp compliance { auto | dot1s | legacy }

undo stp compliance

View

Ethernet interface view, port group view, Layer 2 aggregate interface view

Default level

2: System level

Parameters

auto: Configures the ports to recognize the MSTP BPDU format automatically and determine the format of MSTP BPDUs to send.

dot1s: Configures the ports to receive and send only standard-format (802.1s-compliant) MSTP BPDUs.

legacy: Configures the ports to receive and send only compatible-format MSTP BPDUs.

Description

Use stp compliance to configure the mode the specified ports will use to recognize and send MSTP BPDUs.

Use undo stp compliance to restore the default.

By 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.

Configured in Ethernet interface view, the setting takes effect on that interface only.

Configured in port group view, the setting takes effect on all ports in the port group.

Configured in Layer 2 aggregate interface view, the setting takes effect only on the aggregate interface.

Configured on a member port in an aggregation group, the setting takes effect only after the port leaves the aggregation group.

Examples

# Configure Ethernet 1/0/1 to receive and send only standard-format (802.1s) MSTP packets.

<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] stp compliance dot1s