stp compliance (VSI-LDP-PW view)

Function

The stp compliance command configures a format for sent and received Multiple Spanning Tree Protocol (MSTP) BPDUs.

The undo stp compliance command restores the default format of sent and received MST BPDUs.

By default, the format of sent and received MST BPDUs is auto.

Format

stp compliance { auto | dot1s | legacy }

undo stp compliance

Parameters

Parameter Description Value
auto

Indicates that the MST BPDU format is self-adaptive.

-

dot1s

Indicates that the MST BPDU format is standard IEEE 802.1s.

-

legacy

Indicates that the MST BPDU format is proprietary.

-

Views

VSI-LDP-PW view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mstp write

Usage Guidelines

Usage Scenario

MST BPDUs have two formats: dot1s (IEEE 802.1s standard) and legacy (proprietary). To facilitate device communication, run the stp compliance command to set an MST BPDU format for a local device based on the format of MST BPDUs from the remote device.

To allow a port to automatically accommodate to the format of MST BPDUs sent by a remote device, configure the auto format.

Example

# Set the pw1's MST BPDU format to IEEE 802.1s.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] quit
[*HUAWEI] mpls l2vpn
[*HUAWEI-l2vpn] quit
[*HUAWEI] vsi 1
[*HUAWEI-vsi-1] pwsignal ldp
[*HUAWEI-vsi-1-ldp] vsi-id 33
[*HUAWEI-vsi-1-ldp] peer 1.1.1.1
[*HUAWEI-vsi-1-ldp] peer 1.1.1.1 pw pw1
[*HUAWEI-vsi-1-ldp-pw-pw1] quit
[*HUAWEI-vsi-1-ldp] pw pw1
[*HUAWEI-vsi-1-ldp-pw-pw1] stp compliance dot1s
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >