display mac-address [ mac-address ] [ vlan vlan-id ]
display mac-address { vlan vlan-id | interface-type interface-number }
| Parameter | Description | Value |
|---|---|---|
mac-address |
Displays the entry corresponding to a specified unicast MAC address. |
MAC address in the format of H-H-H. Each H is a 4-digit hexadecimal number, such as 00e0 and fc01. If an H contains less than four digits, 0s are added ahead. For example, if an H is e0, it is equal to 00e0. |
vlan vlan-id |
Displays the MAC address entries in a specified VLAN. |
The value is an integer ranging from 1 to 4094. |
interface-type interface-number |
Displays the MAC address entries on a specified interface. |
The interface can be an Ethernet interface, a GE interface, or an Eth-Trunk interface. |
# Display all MAC address entries.
[sysname] display mac-address
-------------------------------------------------------------------------------
MAC Address VLAN ID Left Time(s) Port Type
-------------------------------------------------------------------------------
0001-0001-0001 1 - GE0/0/2 static
-------------------------------------------------------------------------------
Total items displayed = 1
Item |
Description |
|---|---|
MAC Address |
Indicates the MAC address. |
VLAN ID |
Indicates the VLAN to which the outgoing interface belongs. |
Left Time(s) |
Remained aging time, in seconds |
Port |
Indicates the outbound interface corresponding to the MAC address |
Type |
Indicates the type of MAC addresses. The value can be:
|