The stp deny packet vlan command enables the function to deny STP, RSTP, and MSTP BPDUs that carry a specified VLAN ID.
The undo stp deny packet vlan command disables the function to deny STP, RSTP, and MSTP BPDUs that carry a specified VLAN ID.
By default, the function to deny STP, RSTP, and MSTP BPDUs that carry a specified VLAN ID is not enabled.
Parameter | Description | Value |
---|---|---|
to vlan-id2 |
Specifies the end VLAN ID carried in the STP, RSTP, or MSTP BPDUs received by an interface. <vlanEnd> and <vlanBgn> jointly specify a value range. If the to <vlanEnd> parameter is not specified, only the STP, RSTP, and MSTP that carry <vlanBgn> are discarded. |
The value is an integer ranging from 1 to 4094. <vlanEnd> must be greater than <vlanBgn>. |
vlan vlan-id1 |
Specifies the start VLAN ID carried in the STP, RSTP, or MSTP BPDUs received by an interface. |
The value is an integer ranging from 1 to 4094. |
Layer 2 100GE interface view, 100GE interface view, Layer 2 10GE interface view, 10GE interface view, 25GE-L2 view, 25GE interface view, 400GE-L2 view, 400GE interface view, Layer 2 40GE interface view, 40GE interface view, Layer 2 50GE interface view, 50GE interface view, Layer 2 Eth-Trunk interface view, Eth-Trunk interface view, Layer 2 GE interface view, GE optical interface view, GE electrical interface view, Interface group view
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 deny packet command to enable the function to discard the STP, RSTP, and MSTP BPDUs that carry a specified VLAN ID.
Prerequisites
To set the stp deny packet command, run the stp enable command on the interface to enable STP/RSTP/MSTP.
Precautions