Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

show ethernet-switching statistics mac-learning

Syntax

Description

Display media access control (MAC) learning statistics.

Note:

For the QFX Series, this command is not supported in Enhanced Layer 2 Software (ELS).

Options

none

(Optional) Display MAC learning statistics for all interfaces.

brief | detail

(Optional) Display the specified level of output. The default is brief.

interface interface-name

(Optional) Display MAC learning statistics for the specified interface.

Required Privilege Level

view

Output Fields

Table 1 lists the output fields for the show ethernet-switching statistics mac-learning command. Output fields are listed in the approximate order in which they appear.

Table 1: show ethernet-switching statistics mac-learning Output Fields

Field Name

Field Description

Level of Output

Interface

Name of the interface for which statistics are being reported. (Displayed in the output under the heading Interface.)

All levels

Learning message from local packets

MAC learning message generated due to packets coming in on the management interface. (Displayed in the output under the heading Local pkts.)

All levels

Learning message from transit packets

MAC learning message generated due to packets coming in on network interfaces. (Displayed in the output under the heading Transit pkts.)

All levels

Learning message with error

MAC learning messages received with errors (Displayed under the heading Error):

  • Invalid VLAN—The VLAN of the packet does not exist.

  • Invalid MAC—The MAC address is either NULL or a multicast MAC address.

  • Security violation—The MAC address is not an allowed MAC address.

  • Interface down—The MAC address is learned on an interface that is down.

  • Incorrect membership—The MAC address is learned on an interface that is not a member of the VLAN.

  • Interface limit—The number of MAC addresses learned on the interface has exceeded the limit.

  • MAC move limit—This MAC address has moved among multiple interfaces too many times in a given interval.

  • VLAN limit—The number of MAC addresses learned on the VLAN has exceeded the limit.

  • VLAN membership limit—The number of MAC addresses learned on the interface as a member of the specified VLAN (VLAN membership MAC limit) has exceeded the limit.

  • Invalid VLAN index—The VLAN of the packet, although configured, does not yet exist in the kernel.

  • Interface not learning—The MAC address is learned on an interface that does not yet allow learning—for example, the interface is blocked.

  • No nexthop—The MAC address is learned on an interface that does not have a unicast next hop.

  • MAC learning disabled—The MAC address is learned on an interface on which MAC learning has been disabled.

  • Others—The message contains some other error.

All levels

Sample Output

show ethernet-switching statistics mac-learning

show ethernet-switching statistics mac-learning detail

show ethernet-switching statistics mac-learning interface ge-0/0/28 detail

show ethernet-switching statistics mac-learning interface

show ethernet-switching statistics mac-learning detail (QFX Series)

Release Information

Command introduced in Junos OS Release 9.4.