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.
Usage Scenario
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.<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