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

Release Information

Command introduced in Junos OS Release 9.0 for EX Series switches.

Command introduced in Junos OS Release 9.5 for SRX Series devices.

Command introduced in Junos OS Release 11.1 for the QFX Series.

Description

Displays the event log of learned MAC addresses.

Required Privilege Level

view

List of 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 devices)

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 devices:

Table 3 lists the output fields for the show ethernet-switching mac-learning-log command on SRX Series devices. 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)

user@switch> show ethernet-switching mac-learning-log

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

user@switch> show ethernet-switching mac-learning-log

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

user@host> show ethernet-switching mac-learning-log