R3721-F3210-F3171-HP High-End Firewalls Network Management Command Reference-6PW101

65
Description
Use display mac-address 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, it displays information about unicast MAC address entries and static multicast MAC address
entries.
Related commands: mac-address (system view), mac-address (interface view), and mac-address timer;
display mac-address multicast and display mac-address multicast count.
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(s)
000f-e201-0101 1 Learned GigabitEthernet0/1 AGING
--- 1 mac address(es) found ---
Table 14 Command output
Field Descri
p
tion
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—The static entry manually configured by the user.
Config dynamic—The dynamic entry manually configured by the user.
Learned—The entry learned by the device.
Blackhole—The destination blackhole entry.
PORT INDEX
Number of the port corresponding to the MAC address. Packets destined to
this MAC address are sent out of this port. For a blackhole MAC address entry
this field displays N/A.
AGING TIME(s)
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
Default level
1: Monitor level