297
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.
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 GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] undo stp enable
[Sysname-GigabitEthernet1/0/1] 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
l2protocol tunnel-dmac
Use l2protocol tunnel-dmac to set the destination multicast MAC address for tunneled
packets.