stp permit packet source-mac (VSI-LDP-PW view)

Function

The stp permit packet source-mac command enables the function to process STP, RSTP, and MSTP BPDUs that carry a specified source MAC address.

The undo stp permit packet source-mac command disables the function to process STP, RSTP, and MSTP BPDUs that carry a specified source MAC address.

By default, the function to process STP, RSTP, and MSTP BPDUs that carry a specified source MAC address is not enabled.

Format

stp permit packet source-mac source-mac source-mac-mask

undo stp permit packet source-mac source-mac source-mac-mask

Parameters

Parameter Description Value
source-mac source-mac

Specifies the source MAC address based on which STP, RSTP, and MSTP BPDUs are processed.

The value is a 12-digit hexadecimal number, in the format of H-H-H. Each H is 4 digits. If an H contains fewer than 4 digits, the left-most digits are padded with zeros. For example, e0 is displayed as 00e0.

source-mac-mask

Specifies a mask of the source MAC address.

The value is a 12-digit hexadecimal number, in the format of H-H-H. Each H is 4 digits. If an H contains fewer than 4 digits, the left-most digits are padded with zeros. For example, e0 is displayed as 00e0.

Views

VSI-LDP-PW view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mstp write

Usage Guidelines

Usage Scenario

On a network running STP, RSTP, or MSTP, if a device transparently transmits unexpected STP, RSTP, or MSTP BPDUs, network flapping may occur. To address this problem, run the stp permit packet command to enable the device to process only the STP, RSTP, and MSTP BPDUs carrying a specified source MAC address.

Prerequisites

To set the stp deny packet command, run the stp enable command on the interface to enable STP/RSTP/MSTP.

Precautions

  • A maximum of 16 source MAC addresses can be configured in the same interface view or VSI-LDP-PW view.
  • If both the stp deny packet and stp permit packet commands are configured in the same interface view or VSI-LDP-PW view, the device preferentially executes the stp deny packet command.
  • If the function to process STP, RSTP, and MSTP BPDUs that carry a specified source MAC address is incorrectly enabled, a broadcast storm may occur. Therefore, ensure that the source MAC address and source MAC address mask are correct before executing the stp permit packet command.

Example

# Configure pw1 to process STP BPDUs with the source MAC address of 2-2-0.
<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 enable
[*HUAWEI-vsi-1-ldp-pw-pw1] stp permit packet source-mac 2-2-0 ffff-ffff-0000
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >