show ethernet-switching mac-learning-log
Syntax
show ethernet-switching mac-learning-log
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.
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:
|
|
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.
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. |
|
MAC address that are added, learned, deleted, changed or moved from one interface to another interface. |
|
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. |
|
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.
Field Name |
Field Description |
---|---|
|
Timestamp when the MAC address was added or deleted from the log. |
|
VLAN index. An internal value assigned by Junos OS for each VLAN. |
|
Learned MAC address. |
|
MAC address deleted or added to the MAC learning log. |
|
The forwarding state of 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)
show ethernet-switching mac-learning-log (EX Series switch)
user@switch> show ethernet-switching mac-learning-log Mon Feb 25 08:07:05 2008 vlan_name v1 mac 00:00:00:00:00:00 was deleted Mon Feb 25 08:07:05 2008 vlan_name v9 mac 00:00:00:00:00:00 was deleted Mon Feb 25 08:07:05 2008 vlan_name HR_vlan mac 00:00:00:00:00:00 was deleted Mon Feb 25 08:07:05 2008 vlan_name v3 mac 00:00:00:00:00:00 was deleted Mon Feb 25 08:07:05 2008 vlan_name v12 mac 00:00:00:00:00:00 was deleted Mon Feb 25 08:07:05 2008 vlan_name v13 mac 00:00:00:00:00:00 was deleted Mon Feb 25 08:07:05 2008 vlan_name sales_vlan mac 00:00:00:00:00:00 was deleted Mon Feb 25 08:07:05 2008 vlan_name employee1 mac 00:00:00:00:00:00 was deleted Mon Feb 25 08:07:05 2008 vlan_name employee2 mac 00:00:00:00:00:00 was deleted Mon Feb 25 08:07:05 2008 vlan_name v3 mac 00:00:00:00:00:00 was added Mon Feb 25 08:07:05 2008 vlan_name HR_vlan mac 00:00:00:00:00:00 was added Mon Feb 25 08:07:05 2008 vlan_name employee2 mac 00:00:00:00:00:00 was added Mon Feb 25 08:07:05 2008 vlan_name employee1 mac 00:00:00:00:00:00 was added Mon Feb 25 08:07:05 2008 vlan_name employee2 mac 00:00:05:00:00:05 was learned Mon Feb 25 08:07:05 2008 vlan_name employee1 mac 00:30:48:90:54:89 was learned Mon Feb 25 08:07:05 2008 vlan_name HR_vlan mac 00:00:5e:00:01:00 was learned Mon Feb 25 08:07:05 2008 vlan_name sales_vlan mac 00:00:5e:00:01:08 was learned [output truncated]
show ethernet-switching mac-learning-log (QFX Series Switches, QFabric, NFX Series Devices and EX4600)
user@switch> show ethernet-switching mac-learning-log Mon Jun 30 13:49:49 2014 vlan_name v11+11 mac 00:10:94:00:00:02 was learned on ge-1/0/22.0 with flags: 0x2001f << MAC address that as dynamically learned Mon Jun 30 13:50:29 2014 vlan_name v11+11 mac 00:10:94:00:00:02 was deleted from ge-1/0/22.0 with flags: 0x1080 << MAC address that was deleted Mon Jun 30 13:51:28 2014 vlan_name v11+11 mac 00:00:00:01:01:01 was added to ge-1/0/22.0 with flags: 0x2013f << Static MAC address that was added Mon Jun 30 13:51:46 2014 vlan_name v11+11 mac 00:00:00:01:01:01 was deleted from ge-1/0/22.0 with flags: 0x1120 << delete of Static MAC address that was deleted Mon Jun 30 13:52:03 2014 vlan_name v11+11 mac 00:10:94:00:00:02 was learned on ge-1/0/22.0 with flags: 0x2001f << MAC address that was dynamically learned Mon Jun 30 13:52:11 2014 vlan_name v11+11 mac 00:10:94:00:00:02 was moved from ge-1/0/22.0 to ge-1/0/21.0 with flags: 0x2101f << MAC address that was moved Mon Jun 30 13:54:24 2014 vlan_name v11+11 mac 00:10:94:00:00:02 was changed on ge-1/0/21.0 with flags: 0x2113f << MAC address that changed from a dynamic address to a static address
show ethernet-switching mac-learning-log (SRX Series Firewalls)
user@host> show ethernet-switching mac-learning-log Wed Mar 18 08:07:05 2009 vlan_idx 7 mac 00:00:5E:00:53:00 was deleted Wed Mar 18 08:07:05 2009 vlan_idx 9 mac 00:00:5E:00:53:00 was deleted Wed Mar 18 08:07:05 2009 vlan_idx 10 mac 00:00:5E:00:53:00 was deleted Wed Mar 18 08:07:05 2009 vlan_idx 11 mac 00:00:5E:00:53:00 was deleted Wed Mar 18 08:07:05 2009 vlan_idx 12 mac 00:00:5E:00:53:00 was deleted Wed Mar 18 08:07:05 2009 vlan_idx 13 mac 00:00:5E:00:53:00 was deleted Wed Mar 18 08:07:05 2009 vlan_idx 14 mac 00:00:5E:00:53:00 was deleted Wed Mar 18 08:07:05 2009 vlan_idx 15 mac 00:00:5E:00:53:00 was deleted Wed Mar 18 08:07:05 2009 vlan_idx 16 mac 00:00:5E:00:53:00 was deleted Wed Mar 18 08:07:05 2009 vlan_idx 4 mac 00:00:5E:00:53:00 was added Wed Mar 18 08:07:05 2009 vlan_idx 6 mac 00:00:5E:00:53:00 was added Wed Mar 18 08:07:05 2009 vlan_idx 7 mac 00:00:5E:00:53:00 was added Wed Mar 18 08:07:05 2009 vlan_idx 9 mac 00:00:5E:00:53:00 was added Wed Mar 18 08:07:05 2009 vlan_idx 10 mac 00:00:5E:00:53:00 was added Wed Mar 18 08:07:05 2009 vlan_idx 11 mac 00:00:5E:00:53:00 was added Wed Mar 18 08:07:05 2009 vlan_idx 12 mac 00:00:5E:00:53:00 was added Wed Mar 18 08:07:05 2009 vlan_idx 13 mac 00:00:5E:00:53:00 was added Wed Mar 18 08:07:05 2009 vlan_idx 14 mac 00:00:5E:00:53:00 was added Wed Mar 18 08:07:05 2009 vlan_idx 15 mac 00:00:5E:00:53:00 was added Wed Mar 18 08:07:05 2009 vlan_idx 16 mac 00:00:5E:00:53:00 was added Wed Mar 18 08:07:05 2009 vlan_idx 5 mac 00:00:5E:00:53:00 was added Wed Mar 18 08:07:05 2009 vlan_idx 18 mac 00:00:5E:00:53:AA was learned Wed Mar 18 08:07:05 2009 vlan_idx 5 mac 00:00:5E:00:53:AB was learned Wed Mar 18 08:07:05 2009 vlan_idx 6 mac 00:00:5E:00:53:AC was learned Wed Mar 18 08:07:05 2009 vlan_idx 16 mac 00:00:5E:00:53:AD was learned Wed Mar 18 08:07:05 2009 vlan_idx 7 mac 00:00:5E:00:53:AE was learned Wed Mar 18 08:07:05 2009 vlan_idx 8 mac 00:00:5E:00:53:AF was learned Wed Mar 18 08:07:05 2009 vlan_idx 12 mac 00:00:5E:00:53:AG was learned [output truncated]
Release Information
Command introduced in Junos OS Release 9.0.