Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?




Hierarchy Level


Enable Layer 2 protocol tunneling (L2PT) on a VLAN on switches that do not use the the Enhanced Layer 2 Software (ELS) configuration style (which includes EX2200, EX3300, EX4200, EX4500, and EX4450 switches).


This command is not available on switches that use ELS configuration style (including EX2300, EX3400, EX4300, EX4600, EX9200, and any QFX Series switches that support L2PT). On those switches, you enable L2PT using the protocol statement at the [edit protocols layer2-control mac-rewrite interface interface-name] hierarchy level. See Configuring Layer 2 Protocol Tunneling.

For details on ELS, see Using the Enhanced Layer 2 Software CLI.

The remaining statements are explained separately. See CLI Explorer.


L2PT is not enabled.


all—Enable all supported Layer 2 protocols.

protocol-name—Name of the Layer 2 protocol. Values are:

  • 802.1x—IEEE 802.1X authentication

  • 802.3ah—IEEE 802.3ah Operation, Administration, and Maintenance (OAM) link fault management (LFM)


    If you enable L2PT for untagged OAM LFM packets, do not configure LFM on the corresponding access interface.

  • cdp—Cisco Discovery Protocol

  • e-lmi—Ethernet local management interface

  • gvrp—GARP VLAN Registration Protocol

  • lacp—Link Aggregation Control Protocol


    If you enable L2PT for untagged LACP packets, do not configure LACP on the corresponding access interface.

  • lldp—Link Layer Discovery Protocol

  • mmrp—Multiple MAC Registration Protocol

  • mvrp—Multiple VLAN Registration Protocol

  • stp—Spanning Tree Protocol, Rapid Spanning Tree Protocol, and Multiple Spanning Tree Protocol

  • udld—Unidirectional Link Detection (UDLD)

  • vstp—VLAN Spanning Tree Protocol

  • vtp—VLAN Trunking Protocol

Required Privilege Level

system—To view this statement in the configuration.system-control—To add this statement to the configuration.

Release Information

Statement introduced in Junos OS Release 10.0 for EX Series switches.