The stp bpdu vlan command configures the STP packets sent from an interface to contain the specified VLAN ID.
The undo stp bpdu vlan command cancels the configuration.
By default, the STP packets sent from an interface do not contain VLAN IDs.
Parameter |
Description |
Value |
---|---|---|
vlan-id |
Specifies the VLAN ID contained in the STP packets sent from an interface. |
The value is an integer that ranges from 1 to 4094. |
Ethernet interface view, GE interface view, XGE interface view, 100GE interface view, 40GE interface view, MultiGE interface view, port group view, 25GE interface view, Eth-Trunk interface view
When multiple user networks connect to the interfaces of the same PE, the PE interface needs to distinguish STP packets from different user networks. In this case, you need to configure the STP packets sent from each CE interface to contain the specified VLAN ID. In addition, the STP packets sent to the CE interface must also contain the specified VLAN ID.
On the CE interface, run the stp bpdu vlan vlan-id command to configure the STP packets sent to the PE to contain the specified VLAN ID. On the PE interface connected to the CE, run the l2protocol-tunnel vlan command to enable the STP packets with the specified VLAN ID to traverse the ISP network.
Before running the stp bpdu vlan command on a CE interface, ensure that the CE interface has been added to the specified VLAN.
The stp bpdu vlan command is usually configured on the network interface of the CE.