Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

show ethernet-switching mac-learning-log

Syntax

Description

Displays the event log of learned MAC addresses.

Required Privilege Level

view

Output Fields

Output fields for EX Series switches:

The following table lists the output fields for the show ethernet-switching mac-learning-log command. Output fields are listed in the approximate order in which they appear.

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

Field Name

Field Description

Date and Time

Timestamp when the MAC address was added or deleted from the log.

vlan_name

VLAN name. A value defined by the user for all user-configured VLANs.

MAC

Learned MAC address.

Deleted | Added

MAC address deleted or added to the MAC learning log.

Blocking

The forwarding state of the interface:

  • blocked—Traffic is not being forwarded on the interface.

  • unblocked—Traffic is forwarded on the interface.

Flags

Displays the MAC address flags in which the MAC event occurred. This option is for debugging purposes.

Output fields for QFX Series switches, QFabric, NFX Series devices and EX4600:

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

Table 2: show ethernet-switching mac-learning-log Output Fields

Field Name

Field Description

Date and Time

Timestamp in UTC when the MAC operation occurred.

vlan_name

VLAN name. A value defined by the user for all user-configured VLANs. The name of the VLAN on which the MAC is learned.

MAC

Learned MAC address.

Event op

MAC address that are added, learned, deleted, changed or moved from one interface to another interface.

Interface Name

The name of the interface on which the MAC address is learned. When a MAC address is moved, there is another field with the name of the interface. The log displays the name of the interface from where the MAC address moved, and the name of the interface to where the MAC address moved.

Flags

Displays the MAC address flags in which the MAC event occurred. This option is for debugging purposes.

Output fields for SRX Series Firewalls:

Table 3 lists the output fields for the show ethernet-switching mac-learning-log command on SRX Series Firewalls. Output fields are listed in the approximate order in which they appear.

Table 3: show ethernet-switching-mac-learning-log Output Fields

Field Name

Field Description

Date and Time

Timestamp when the MAC address was added or deleted from the log.

VLAN-IDX

VLAN index. An internal value assigned by Junos OS for each VLAN.

MAC

Learned MAC address.

Deleted | Added

MAC address deleted or added to the MAC learning log.

Blocking

The forwarding state of the interface:

  • blocked—Traffic is not being forwarded on the interface.

  • unblocked—Traffic is forwarded on the interface.

Sample Output

show ethernet-switching mac-learning-log (EX Series switch)

show ethernet-switching mac-learning-log (QFX Series Switches, QFabric, NFX Series Devices and EX4600)

show ethernet-switching mac-learning-log (SRX Series Firewalls)

Release Information

Command introduced in Junos OS Release 9.0.