45
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 8
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.
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).
AGING TIME
Aging time:
•
AGING—The entry is aging.
•
NOAGED—The entry does not age.
1 mac address(es) found
One MAC address entry is found.
display mac-address aging-time
Syntax
display mac-address aging-time
[
|
{
begin
|
exclude
|
include
}
regular-expression
]
View
Any view