Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

show l2pt interface

date_range 21-Nov-24

Syntax

content_copy zoom_out_map
show l2pt interface
<brief | detail>
<interface-name>

Description

Display information about the interfaces and protocols for which the device will use Layer 2 (L2) protocol tunneling (L2PT) across destination encapsulation tunnels in an EVPN network. When the device receives protocol control frames on the configured interfaces, the device transparently transmits those frames across the encapsulation tunnels and doesn't trap those frames to the control plane.

Use this command when you configure L2PT over destination encapsulation tunnels with the l2pt statement at the [edit protocols layer2-control] hierarchy level. The output of this command includes the L2PT-enabled protocols and the destination encapsulation tunnel type.

Note:

Standard L2PT implements protocol tunneling using MAC rewrite operations, so instead of using the l2pt statement, you configure standard L2PT using the mac-rewrite statement at the [edit protocols layer2-control] hierarchy level. See Layer 2 Protocol Tunneling for details on the standard L2PT feature.

To see information about a standard L2PT configuration, use the show mac-rewrite interface command. That command displays the L2PT-enabled protocols and the destination MAC address the device uses for the MAC rewrite operation.

However, you can still use this show l2pt interface command to see information about interfaces where you enabled standard L2PT. In that case, instead of a destination encapsulation tunnel, the command shows the destination MAC address the device uses for the MAC rewrite operation.

Options

(brief | detail)

(Optional) Display the specified level of output.

interface interface-name

(Optional) Display information for L2PT over encapsulation tunnels for the specified interface. Without this option, the command displays L2PT information for all interfaces configured with L2PT over encapsulation tunnels.

Required Privilege Level

view

Output Fields

Table 1: show l2pt interface Output Fields

Field Name

Field Description

Level of Output

Interface

Name of the access interface on which you have configured L2PT over encapsulation tunnels.

brief detail

Destination

Either of the following:

  • When you enable L2PT over encapsulation tunnels, the destination encapsulation tunnel type:

    • vxlan-tunnel—L2PT enabled over VXLAN tunnels on the device.

  • When you enable standard L2PT, the MAC address the device uses for the MAC rewrite operation

brief detail

Protocols

L2 protocol control packets that the device receives on the listed interface and transparently tunnels over the encapsulation tunnels on the device.

brief detail

Sample Output

show l2pt interface

content_copy zoom_out_map
user@device> show l2pt interface

Interface      Destination       Protocols
xe-0/0/1       VXLAN-TUNNEL      8021X 8023AH ELMI LACP LLDP MMRP MVRP 
xe-0/1/1       VXLAN-TUNNEL      LLDP MVRP 

show l2pt interface (L2PT over VXLAN and standard L2PT on different interfaces)

This sample output shows L2PT over VXLAN (Destination=VXLAN-TUNNEL) and standard L2PT (Destination=Protocol MAC rewrite address) enabled on different interfaces for same protocol.

content_copy zoom_out_map
user@device> show l2pt interface

Interface           Destination            Protocols
xe-0/0/2:3          VXLAN-TUNNEL            LLDP
xe-0/0/3:1          01:00:0C:CD:CD:D0       LLDP

show l2pt interface name detail

content_copy zoom_out_map
user@device> show l2pt interface xe-0/0/1 detail

Interface: xe-0/0/1
Destination: VXLAN-TUNNEL
Protocols: 8021X 8023AH ELMI LACP LLDP MMRP MVRP STP

Release Information

Command introduced in Junos OS Release 24.2R1.

footer-navigation