Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Announcement: Try the Ask AI chatbot for answers to your technical questions about Juniper products and solutions.

close
header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents

show ethernet-switching interface

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
show ethernet-switching interface
<brief | detail | extensive>
<interface-name>

Description

Display Layer 2 learning information for all the interfaces.

Options

none

Display Ethernet-switching information for all interfaces.

brief | detail | extensive

(Optional) Display the specified level of output.

interface-name

(Optional) Display Ethernet-switching information for the specified interface.

Required Privilege Level

view

Output Fields

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

Table 1: show ethernet-switching interface Output Fields

Field Name

Field Description

Logical interface

Name of the logical interface.

VLAN members

VLANs associated with this interface.

Tag

VLAN ID.

MAC limit

Number of MAC addresses that can be associated with the interface.

STP state

Spanning Tree protocol (STP) state.

Logical interface flags

Status of Layer 2 learning properties for each interface:

  • DL—MAC learning is disabled.

  • LH—MAC interface limit has been reached.

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

  • DN—The MAC interface is down.

  • MMAS—The MAC interface is disabled after a MAC address move.

  • SCTL—The MAC interface is disabled after a configured storm-control level is exceeded.

    Note:

    If the physical interface is shutdown due to storm control, all logical interfaces on the shutdown interface display the SCTL logical interface flag.

Tagging

Tagging state of the VLAN.

Sample Output

show ethernet switching interface (Specific Interface)

content_copy zoom_out_map
user@host> show ethernet-switching inerface ae10.0
Logical Interface flags (DL - disable learning, AD - packet action drop,
                         LH - MAC limit hit, DN - interface down)

Logical      Vlan       TAG   MAC      STP          Logical         Tagging
interface    members          limit    state        interface flags
ae10.0                        8192                                   tagged
             VLAN70..   701   1024     Forwarding
                                      
             VLAN70..   702   1024     Forwarding
                                   
             VLAN70..   703   1024     Forwarding
                                   
             VLAN70..   704   1024     Forwarding
                              
             VLAN70..   705   1024     Forwarding
                              
             VLAN70..   706   1024     Forwarding
                                  
             VLAN70..   707   1024     Forwarding
                              
             VLAN70..   708   1024     Forwarding
                                   
             VLAN70..   709   1024     Forwarding
                                  
             VLAN71..   710   1024     Forwarding
                              
             VLAN71..   711   1024     Forwarding
                              
             VLAN71..   712   1024     Forwarding
                              
             VLAN71..   713   1024     Forwarding
                              
             VLAN71..   714   1024     Forwarding
                             
             VLAN71..   715 
[...output truncated...]

show ethernet switching interface (Storm Control in Effect)

content_copy zoom_out_map
user@host> show ethernet-switching interface ge-0/0/2.0
Logical Interface flags (DL - disable learning, AD - packet action drop, LH - 
                         MAC limit hit, DN - interface down, MMAS - Mac-move 
                         action shutdown, AS - Autostate-exclude enabled, SCTL 
                         - shutdown by Storm-control, MI - MAC+IP limit hit)

Logical      Vlan       TAG   MAC    MAC+IP STP         Logical          Tagging
interface    members          limit  limit  state       interface flags
ge-0/0/2.0                    524287 8192               DN,SCTL          untagged
             VLAN1      100   65535  1024   Forwarding                   untagged

show ethernet-switching interface detail

content_copy zoom_out_map
user@host> show ethernet-switching interface detail

Information for interface family:
Name: ge-1/0/3.0
  Type: IFF                             Handle: 0x8bba280
  Index: 331                            Generation: 159
                                        Flags: UP,
  IFD index: 141                        Routing/Vlan index: 4
  IFL index: 331                        Address family: 50
  Sequence number: 0                    MAC sequence number: 0
  MAC limit: 65535                      MACs learned: 0
  Static MACs learned: 0                Non configured static MACs learned: 0
Name: ge-1/0/3.0
  Type: IFBD (static)                   Handle: 0x8bb6e00
  Index:                                Generation: 129
  Trunk id: 0                           Flags: UP,
  IFD index:                            Routing/Vlan index: 2
  IFL index:                            Address family:
  Sequence number: 1                    MAC sequence number: 1
  MAC limit: 65535                      MACs learned: 0
  Static MACs learned: 0                Non configured static MACs learned: 0
  VSTP index: 11                        Rewrite op:
Name: ge-1/0/3.0
  Type: IFBD (static)                   Handle: 0x8bb6f00
  Index:                                Generation: 130
  Trunk id: 0                           Flags: UP,
  IFD index:                            Routing/Vlan index: 3
  IFL index:                            Address family:
  Sequence number: 1                    MAC sequence number: 1
  MAC limit: 65535                      MACs learned: 0
  Static MACs learned: 0                Non configured static MACs learned: 0
  VSTP index: 11                        Rewrite op:

show ethernet-switching interface xe-0/0/2.0 (autostate-exclude enabled on QFX5100 switch)

content_copy zoom_out_map
user@switch> show ethernet-switching interface xe-0/0/2.0
Routing Instance Name : default-switch
Logical Interface flags (DL - disable learning, AD - packet action drop,
                         LH - MAC limit hit, DN - interface down,
                         MMAS - Mac-move action shutdown, AS - Autostate-exclude enabled 
                         SCTL - shutdown by Storm-control)

Logical          Vlan          TAG     MAC         STP         Logical           Tagging 
interface        members               limit       state       interface flags  
xe-0/0/2.0                             294912                   AS                tagged     
                 v100          100     294912      Forwarding                     tagged  

Release Information

Command introduced in Junos OS Release 12.3R2.

footer-navigation