50
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
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, a case-sensitive string of 1 to 256 characters.
Example
# 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(s)
000f-e201-0101 1 Learned GigabitEthernet1/0/1 AGING
--- 1 mac address(es) found ---
Table 13 Command output
ID of the VLAN to which the MAC address belongs.
State of a MAC address entry:
Config static—Static entry configured manually by the user.
Config dynamic—Dynamic entry configured manually by the user.
Learned—Entry learned by the device.
Blackhole—Blackhole entry.
802.1X—Entry generated after a user passes the 802.1X authentication. For
more information about 802.1X authentication, see Security Configuration
Guide.
Multicast—Static multicast MAC address entry configured manually by the
user.
Number of the port corresponding to the MAC address. Packets destined to
this MAC address are sent out this port (displayed as N/A for a blackhole
MAC address entry).
Aging time:
AGING—Entry is aging.
NOAGED—Entry does not age.
One MAC address entry is found.
display mac-address aging-time
Description
Use the display mac-address aging-time command to display the aging time of dynamic entries in the
MAC address table.