l2protocol tunnel dot1q
Use l2protocol tunnel dot1q to enable L2PT for a protocol.
Use undo l2protocol tunnel dot1q to disable L2PT for a protocol.
Syntax
In Layer 2 Ethernet interface view:
l2protocol { cdp | dldp | eoam | gvrp | lacp | lldp | mvrp | pagp | pvst | stp | udld | vtp } tunnel dot1q
undo l2protocol { cdp | dldp | eoam | gvrp | lacp | lldp | mvrp | pagp | pvst | stp | udld | vtp } tunnel dot1q
In Layer 2 aggregate interface view:
l2protocol { gvrp | mvrp | pvst | stp | vtp } tunnel dot1q
undo l2protocol { gvrp | mvrp | pvst | stp | vtp } tunnel dot1q
Default
L2PT is disabled for all protocols.
Views
Layer 2 Ethernet interface view
Layer 2 aggregate interface view
Predefined user roles
network-admin
Parameters
cdp: Specifies CDP.
dldp: Specifies DLDP.
eoam: Specifies EOAM.
gvrp: Specifies GVRP.
lacp: Specifies LACP.
lldp: Specifies LLDP. L2PT for LLDP supports LLDP packets from only nearest bridge agents.
mvrp: Specifies MVRP.
pagp: Specifies PAgP.
pvst: Specifies PVST.
stp: Specifies STP.
udld: Specifies UDLD.
vtp: Specifies VTP.
Usage guidelines
Before you enable L2PT for a protocol on a port, perform the following tasks:
Enable the protocol on the CE, and disable the protocol on the port.
Enable L2PT only on customer-facing PE ports. If you enable L2PT on ports connected to the service provider network, L2PT determines that the ports are connected to a customer network.
Do not enable L2PT on a port that is going to join a service loopback group. All configuration is removed after the port joins the group.
You can enable L2PT on member ports of a Layer 2 aggregation group, but the configuration does not take effect.
Examples
# Disable STP and enable L2PT for STP on .
<Sysname> system-view [Sysname] interface [Sysname-] undo stp enable [Sysname-] l2protocol stp tunnel dot1q
# Disable STP and enable L2PT for STP on Bridge-Aggregation 1.
<Sysname> system-view [Sysname] interface bridge-aggregation 1 [Sysname-Bridge-Aggregation1] undo stp enable [Sysname-Bridge-Aggregation1] l2protocol stp tunnel dot1q