Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    show ethernet-switching table

    Syntax

    show ethernet-switching table<brief | count | detail | extensive><address><instance instance-name><interface interface-name><interface interface-name>isid isid<address><vlan-id (all-vlan | vlan-id)><vlan-name (all | vlan-name)>

    Release Information

    Command introduced in Junos OS Release 12.3R2.

    Command introduced in Junos OS Release 12.3R2 for EX Series switches.

    Description

    (MX Series routers and EX Series switches only) Display Layer 2 MAC address information.

    Options

    none

    Display all learned Layer 2 MAC address information.

    brief | count | detail | extensive

    (Optional) Display the specified level of output.

    address

    (Optional) Display the specified learned Layer 2 MAC address information.

    instance instance-name

    (Optional) Display learned Layer 2 MAC addresses for the specified routing instance.

    interface interface-name

    (Optional) Display learned Layer 2 MAC addresses for the specified interface.

    isid isid

    (Optional) Display learned Layer 2 MAC addresses for the specified ISID.

    logical-system logical-system-name

    (Optional) Display Ethernet-switching statistics information for the specified logical system.

    vlan-id (all-vlan | vlan-id)

    (Optional) Display learned Layer 2 MAC addresses for all VLANs or for the specified VLAN.

    vlan-name (all | vlan-name)

    (Optional) Display learned Layer 2 MAC addresses for all VLANs or for the specified VLAN.

    Additional Information

    When Layer 2 protocol tunneling is enabled, the tunneling MAC address 01:00:0c:cd:cd:d0 is installed in the MAC table. When the Cisco Discovery Protocol (CDP), Spanning Tree Protocol (STP), or VLAN Trunk Protocol (VTP) is configured for Layer 2 protocol tunneling on an interface, the corresponding protocol MAC address is installed in the MAC table.

    Required Privilege Level

    view

    List of Sample Output

    show ethernet-switching table
    show ethernet-switching table brief
    show ethernet-switching table count
    show ethernet-switching table extensive

    Output Fields

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

    Table 1: show ethernet-switching table Output fields

    Field Name

    Field Description

    Routing instance

    Name of the routing instance.

    VLAN name

    Name of the VLAN.

    MAC address

    MAC address or addresses learned on a logical interface.

    MAC flags

    Status of MAC address learning properties for each interface:

    • S—Static MAC address is configured.
    • D—Dynamic MAC address is configured.
    • L—Locally learned MAC address is configured.
    • SE—MAC accounting is enabled.
    • NM—Non-configured MAC.
    • R—Locally learned MAC address is configured.

    Logical interface

    Name of the logical interface.

    MAC count

    Number of MAC addresses learned on the specific routing instance or interface.

    Learning interface

    Name of the logical interface on which the MAC address was learned.

    Learning VLAN

    VLAN ID of the routing instance or VLAN in which the MAC address was learned.

    Layer 2 flags

    Debugging flags signifying that the MAC address is present in various lists.

    Epoch

    Spanning-tree-protocolepoch number identifying when the MAC address was learned. Used for debugging.

    Sequence number

    Sequence number assigned to this MAC address. Used for debugging.

    Learning mask

    Mask of the Packet Forwarding Engines where this MAC address was learned. Used for debugging.

    IPC generation

    Creation time of the logical interface when this MAC address was learned. Used for debugging.

    Sample Output

    show ethernet-switching table

    user@host> show ethernet-switching table
    MAC flags (S - static MAC, D - dynamic MAC, L - locally learned
               SE - statistics enabled, NM - non configured MAC, R - remote PE MAC)
    
    Routing instance : default-switch
        Vlan                MAC                 MAC         Age    Logical
        name                address             flags              interface
        VLAN101             88:e0:f3:bb:07:f0   D             -   ae20.0
    
    
    MAC flags (S - static MAC, D - dynamic MAC, L - locally learned
               SE - statistics enabled, NM - non configured MAC, R - remote PE MAC)
    
    Routing instance : default-switch
        Vlan                MAC                 MAC         Age    Logical
        name                address             flags              interface
        VLAN102             88:e0:f3:bb:07:f0   D             -   ae20.0
    
    
    MAC flags (S - static MAC, D - dynamic MAC, L - locally learned
               SE - statistics enabled, NM - non configured MAC, R - remote PE MAC)
    
    Routing instance : default-switch
        Vlan                MAC                 MAC         Age    Logical
        name                address             flags              interface
        VLAN103             88:e0:f3:bb:07:f0   D             -   ae20.0
    
    
    MAC flags (S - static MAC, D - dynamic MAC, L - locally learned
               SE - statistics enabled, NM - non configured MAC, R - remote PE MAC)
    
    Routing instance : default-switch
        Vlan                MAC                 MAC         Age    Logical
        name                address             flags              interface
        VLAN104             88:e0:f3:bb:07:f0   D             -   ae20.0
    
    
    MAC flags (S - static MAC, D - dynamic MAC, L - locally learned
               SE - statistics enabled, NM - non configured MAC, R - remote PE MAC)
    
    Routing instance : default-switch
        Vlan                MAC                 MAC         Age    Logical
        name                address             flags              interface
        VLAN1101            00:1f:12:32:f5:c1   D             -   ae0.0
    
    
    MAC flags (S - static MAC, D - dynamic MAC, L - locally learned
               SE - statistics enabled, NM - non configured MAC, R - remote PE MAC)
    
    Routing instance : default-switch
        Vlan                MAC                 MAC         Age    Logical
        name                address             flags              interface
        VLAN1102            00:1f:12:32:f5:c1   D             -   ae0.0
    
    
    MAC flags (S - static MAC, D - dynamic MAC, L - locally learned
               SE - statistics enabled, NM - non configured MAC, R - remote PE MAC)
    
    Routing instance : default-switch
        Vlan                MAC                 MAC         Age    Logical
        name                address             flags              interface
        VLAN1103            00:1f:12:32:f5:c1   D             -   ae0.0
    
    
    MAC flags (S - static MAC, D - dynamic MAC, L - locally learned
               SE - statistics enabled, NM - non configured MAC, R - remote PE MAC)
    
    Routing instance : default-switch
        Vlan                MAC                 MAC         Age    Logical
        name                address             flags              interface
        VLAN1104            00:1f:12:32:f5:c1   D             -   ae0.0
    
    
    MAC flags (S - static MAC, D - dynamic MAC, L - locally learned
               SE - statistics enabled, NM - non configured MAC, R - remote PE MAC)
    
    Routing instance : default-switch
        Vlan                MAC                 MAC         Age    Logical
        name                address             flags              interface
        VLAN1105            00:1f:12:32:f5:c1   D             -   ae0.0
    
    
    MAC flags (S - static MAC, D - dynamic MAC, L - locally learned
               SE - statistics enabled, NM - non configured MAC, R - remote PE MAC)
    
    Routing instance : default-switch
        Vlan                MAC                 MAC         Age    Logical
        name                address             flags              interface
        VLAN1106            00:1f:12:32:f5:c1   D             -   ae0.0
    [...output truncated...]

    show ethernet-switching table brief

    user@host> show ethernet-switching table brief
    MAC flags (S - static MAC, D - dynamic MAC, L - locally learned
               SE - statistics enabled, NM - non configured MAC, R - remote PE MAC)
    
    Routing instance : default-switch
        Vlan                MAC                 MAC         Age    Logical
        name                address             flags              interface
        VLAN101             88:e0:f3:bb:07:f0   D             -   ae20.0
    
    
    MAC flags (S - static MAC, D - dynamic MAC, L - locally learned
               SE - statistics enabled, NM - non configured MAC, R - remote PE MAC)
    
    Routing instance : default-switch
        Vlan                MAC                 MAC         Age    Logical
        name                address             flags              interface
        VLAN102             88:e0:f3:bb:07:f0   D             -   ae20.0
    
    
    MAC flags (S - static MAC, D - dynamic MAC, L - locally learned
               SE - statistics enabled, NM - non configured MAC, R - remote PE MAC)
    
    Routing instance : default-switch
        Vlan                MAC                 MAC         Age    Logical
        name                address             flags              interface
        VLAN103             88:e0:f3:bb:07:f0   D             -   ae20.0
    
    
    MAC flags (S - static MAC, D - dynamic MAC, L - locally learned
               SE - statistics enabled, NM - non configured MAC, R - remote PE MAC)
    
    Routing instance : default-switch
        Vlan                MAC                 MAC         Age    Logical
        name                address             flags              interface
        VLAN104             88:e0:f3:bb:07:f0   D             -   ae20.0
    
    
    MAC flags (S - static MAC, D - dynamic MAC, L - locally learned
               SE - statistics enabled, NM - non configured MAC, R - remote PE MAC)
    
    Routing instance : default-switch
        Vlan                MAC                 MAC         Age    Logical
        name                address             flags              interface
        VLAN1101            00:1f:12:32:f5:c1   D             -   ae0.0
    [...output truncated...]

    show ethernet-switching table count

    user@host> show ethernet-switching table count
    0 MAC address learned in routing instance default-switch VLAN VLAN1000
    ae26.0:1000
    
    1 MAC address learned in routing instance default-switch VLAN VLAN101
    ae20.0:101
    
      MAC address count per learn VLAN within routing instance:
        Learn VLAN ID      MAC count      Static MAC count
               101              1                 0
    
    1 MAC address learned in routing instance default-switch VLAN VLAN102
    ae20.0:102
    
      MAC address count per learn VLAN within routing instance:
        Learn VLAN ID      MAC count      Static MAC count
               102              1                 0
    
    1 MAC address learned in routing instance default-switch VLAN VLAN103
    ae20.0:103
    
      MAC address count per learn VLAN within routing instance:
        Learn VLAN ID      MAC count      Static MAC count
               103              1                 0
    
    1 MAC address learned in routing instance default-switch VLAN VLAN104
    ae20.0:104
    
      MAC address count per learn VLAN within routing instance:
        Learn VLAN ID      MAC count      Static MAC count
               104              1                 0
    
    0 MAC address learned in routing instance default-switch VLAN VLAN105
    ae20.0:105
    
    0 MAC address learned in routing instance default-switch VLAN VLAN106
    ae20.0:106
    
    0 MAC address learned in routing instance default-switch VLAN VLAN107
    ae20.0:107
    
    0 MAC address learned in routing instance default-switch VLAN VLAN108
    ae20.0:108
    
    0 MAC address learned in routing instance default-switch VLAN VLAN109
    ae20.0:109
    
    0 MAC address learned in routing instance default-switch VLAN VLAN110
    ae20.0:110
    
    1 MAC address learned in routing instance default-switch VLAN VLAN1101
    ae0.0:1101
    
      MAC address count per learn VLAN within routing instance:
        Learn VLAN ID      MAC count      Static MAC count
              1101              1                 0
    
    1 MAC address learned in routing instance default-switch VLAN VLAN1102
    ae0.0:1102
    
      MAC address count per learn VLAN within routing instance:
        Learn VLAN ID      MAC count      Static MAC count
              1102              1                 0
    [...output truncated...]

    show ethernet-switching table extensive

    user@host> show ethernet-switching table extensive
    MAC address: 88:e0:f3:bb:07:f0
      Routing instance: default-switch
    VLAN ID: 101
       Learning interface: ae20.0
       Layer 2 flags: in_hash,in_ifd,in_ifl,in_vlan,in_rtt,kernel,in_ifbd
       Epoch: 0                            Sequence number: 2
       Learning mask: 0x00000008
    
    MAC address: 88:e0:f3:bb:07:f0
      Routing instance: default-switch
    VLAN ID: 102
       Learning interface: ae20.0
       Layer 2 flags: in_hash,in_ifd,in_ifl,in_vlan,in_rtt,kernel,in_ifbd
       Epoch: 0                            Sequence number: 2
       Learning mask: 0x00000008
    
    MAC address: 88:e0:f3:bb:07:f0
      Routing instance: default-switch
    VLAN ID: 103
       Learning interface: ae20.0
       Layer 2 flags: in_hash,in_ifd,in_ifl,in_vlan,in_rtt,kernel,in_ifbd
       Epoch: 0                            Sequence number: 2
       Learning mask: 0x00000008
    
    MAC address: 88:e0:f3:bb:07:f0
      Routing instance: default-switch
    VLAN ID: 104
       Learning interface: ae20.0
       Layer 2 flags: in_hash,in_ifd,in_ifl,in_vlan,in_rtt,kernel,in_ifbd
       Epoch: 0                            Sequence number: 2
       Learning mask: 0x00000008
    
    MAC address: 00:1f:12:32:f5:c1
      Routing instance: default-switch
    VLAN ID: 1101
       Learning interface: ae0.0
       Layer 2 flags: in_hash,in_ifd,in_ifl,in_vlan,in_rtt,kernel,in_ifbd
       Epoch: 0                            Sequence number: 2
       Learning mask: 0x00000008
    
    MAC address: 00:1f:12:32:f5:c1
      Routing instance: default-switch
    VLAN ID: 1102
       Learning interface: ae0.0
       Layer 2 flags: in_hash,in_ifd,in_ifl,in_vlan,in_rtt,kernel,in_ifbd
       Epoch: 0                            Sequence number: 2
       Learning mask: 0x00000008
    
    MAC address: 00:1f:12:32:f5:c1
      Routing instance: default-switch
    VLAN ID: 1103
       Learning interface: ae0.0
       Layer 2 flags: in_hash,in_ifd,in_ifl,in_vlan,in_rtt,kernel,in_ifbd
       Epoch: 0                            Sequence number: 2
       Learning mask: 0x00000008
    
    MAC address: 00:1f:12:32:f5:c1
      Routing instance: default-switch
    VLAN ID: 1104
       Learning interface: ae0.0
       Layer 2 flags: in_hash,in_ifd,in_ifl,in_vlan,in_rtt,kernel,in_ifbd
       Epoch: 0                            Sequence number: 2
       Learning mask: 0x00000008

    Published: 2013-04-03