
55
begin
: Displays the first line that matches the specified regular expression and all lines that follow.
exclude
: Displays all lines that do not match the specified regular expression.
include
: Displays all lines that match the specified regular expression.
regular-expression
: Specifies a regular expression, which is a case sensitive string of 1 to 256 characters.
Description
Use the
display mac
-
address
command to display information about the MAC address table.
If you execute this command without specifying any parameters, it displays information about all MAC
address entries on the device, including unicast MAC address entries and static multicast MAC address
entries.
If you execute this command using only the
vlan
keyword or the
count
keyword, or only these two
keywords, the output will include information about unicast MAC address entries and static multicast
MAC address entries.
Related commands:
mac-address (system view)
,
mac-address (Ethernet interface view)
, and
mac-address timer
;
display mac-address multicast
and
display mac-address multicast count
(
IP
Multicast Command Reference
).
Examples
# Display the MAC address table entry for MAC address 000f-e201-0101.
<Sysname> display mac-address 000f-e201-0101
MAC ADDR VLAN ID STATE PORT INDEX AGING TIME
000f-e201-0101 1 Learned GigabitEthernet1/0/1 AGING
--- 1 mac address(es) found ---
Table 12
Output description
Field Description
MAC ADDR
MAC address.
VLAN ID
ID of the VLAN to which the MAC address belongs.
STATE
State of a MAC address entry:
•
Config static
—
Static entry manually configured by the user.
•
Config dynamic
—
Dynamic entry manually configured by the user.
•
Learned
—
Entry learned by the device.
•
Blackhole
—
Destination blackhole entry.
•
AUTH
—
Entry generated after a user passes the MAC authentication. For
more information about MAC authentication, see the
Security Configuration
Guide
.
•
802.1X
—
Entry generated after a user passes the 802.1X authentication. For
more information about 802.1X authentication, see the
Security
Configuration Guide
.
•
Multicast
—
Static multicast MAC address entry manually configured by the
user. For more information about static multicast MAC address entries, see
the
IP Multicast Configuration Guide
.
PORT INDEX
Number of the port corresponding to the MAC address. Packets destined to
this MAC address will be sent out from this port. (Displayed as
N/A
for a
blackhole MAC address entry).