stp bpdu vlan

Function

The stp bpdu vlan command enables an interface to add a specified VLAN ID to bridge protocol data units (BPDUs) before sending them.

The undo stp bpdu vlan command disables the function.

By default, an interface does not add a VLAN ID to BPDUs that it sends.

Format

stp bpdu vlan vlan-id

undo stp bpdu vlan

Parameters

Parameter Description Value
vlan-id

Specifies the VLAN ID that the interface adds to BPDUs.

The value is an integer ranging from 1 to 4094.

Views

Layer 2 100GE interface view, Layer 2 10GE interface view, 25GE-L2 view, 400GE-L2 view, Layer 2 40GE interface view, Layer 2 50GE interface view, Layer 2 Eth-Trunk interface view, Layer 2 GE interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ethernet write

Usage Guidelines

Usage Scenario

  • If multiple user networks are connected to the same interface of a PE, configure the interfaces of CEs to add specific VLAN IDs to BPDUs before sending them to the PE.
  • Run the stp bpdu vlan command on an interface of a CE to add a specified VLAN ID to BPDUs before sending them. Then, run the bpdu-tunnel stp vlan command on the interface of the PE that is connected to the CE to allow the BPDUs carrying the specified VLAN ID to be transparently transmitted over the carrier network.
  • In most cases, the stp bpdu vlan command is configured on the network-side interface of a CE.

Prerequisites

If the interface is a Layer 3 interface, it must have been switched to a Layer 2 interface using the portswitch command.

The interface has been added to a specified VLAN.

Example

# Configure GE 0/1/1 to add VLAN ID 100 to BPDUs before sending them.
<HUAWEI> system-view
[~HUAWEI] vlan 100
[*HUAWEI-vlan100] commit
[~HUAWEI-vlan100] quit
[~HUAWEI] interface GigabitEthernet 0/1/1
[~HUAWEI-GigabitEthernet0/1/1] portswitch
[*HUAWEI-GigabitEthernet0/1/1] port trunk allow-pass vlan 100
[*HUAWEI-GigabitEthernet0/1/1] stp bpdu vlan 100
Copyright ? Huawei Technologies Co., Ltd.
Copyright ? Huawei Technologies Co., Ltd.
< Previous topic Next topic >