stp compliance

Use stp compliance to configure the mode that 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

When the command is configured in Layer 2 Ethernet interface view, it takes effect only on that interface.

When the command is configured in Layer 2 aggregate interface view, it takes effect only on the aggregate interface.

When the command is configured on a member port in an aggregation group, it takes effect only after the port leaves the aggregation group.

Examples

# Configure Ten-GigabitEthernet 1/0/1 to send only standard-format (802.1s) MSTP packets.

<Sysname> system-view
[Sysname] interface ten-gigabitethernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] stp compliance dot1s