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 l2-learning interface

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
show l2-learning interface

Description

(MX Series routers only) Display Layer 2 learning information for all the interfaces.

Options

This command has no options.

Required Privilege Level

view

Output Fields

Table 1 describes the output fields for the show l2-learning interface command. Output fields are listed in the approximate order in which they appear.

Table 1: show l2-learning interfaceOutput Fields

Field Name

Field Description

Logical interface

Name of the logical interface.

Index

Index of the interface.

Routing Instance

Number of the routing instance to which the interface belongs.

Interface device

Value of the order in which the Junos OS finds and initializes the interface.

Logical interface flags

Status of Layer 2 learning properties for each interface:

  • DL—MAC learning is disabled.

  • SE—MAC accounting is enabled.

  • AD—Packets are dropped after the MAC interface limit is reached.

  • MAC limit—Maximum number of MAC addresses that can be learned from the interface.

  • MP—MAC Pinning enabled.

Sample Output

show l2-learning interface

content_copy zoom_out_map
user@host> showl2-learning interface
Information for interface family:

Logical Interface flags (DL -disable learning, SE -stats enabled,
                         AD -packet action drop, LH -mac limit hit)

Logical           Index  Routing   Interface   Logical              MAC
interface                instance  device      Interface flags      limit
ge-11/0/3.0          79         3        136                         1024
ge-11/1/4.100        84         3        150                         1024
ge-11/1/1.100        86         3        147                         1024
ge-11/1/0.100        87         3        146                         1024
xe-10/2/0.100        88         3        144                         1024
xe-10/0/0.100        89         3        129                         1024
ge-11/1/0.200        90         4        146                         1024
ge-11/1/1.200        91         4        147                         1024
ge-11/1/4.200        92         4        150                         1024
xe-10/0/0.200        93         4        129                         1024
xe-10/2/0.200        94         4        144                         1024

show l2 learning-interface

content_copy zoom_out_map
user@host> run show l2-learning interface
Routing Instance Name : default-switch
Logical Interface flags (DL -disable learning, AD -packet action drop,
                         LH - MAC limit hit, DN - Interface Down, MP - MAC Pinning enabled)
Logical             BD         MAC        STP          Logical
Interface           Name       Limit      State        Interface flags
ae0.0                          8192                      MP

Release Information

Command introduced in Junos OS Release 8.4.

Added sample output to indicate an EVPN MAC Pinned interface, introduced in Junos OS 16.2R1.

footer-navigation