< Home

Displaying MAC Address Entries

Table 1 Commands used to display MAC address entries

Action

Command

Display all MAC address entries.

display mac-address

Display static MAC address entries.

display mac-address static

Display static MAC address entries in a specified VLAN.

display mac-address static vlan vlan-id

Display MAC address entries learned in a VLAN.

display mac-address dynamic vlan vlan-id

Display MAC address entries learned on an interface.

display mac-address dynamic interface-type interface-number

Check whether a specified MAC address is present.

display mac-address mac-address

Display the aging time of dynamic MAC address entries.

display mac-address aging-time

Display statistics on MAC address entries.

  • Display the total statistics: display mac-address total-number
  • Display the statistics of various types of MAC address entries: display mac-address summary

Display the system MAC address.

display bridge mac-address

Display the MAC address of an interface.

display interface interface-type interface-number

In the command output, Hardware address indicates the MAC address of the interface.

Display the MAC address of a VLANIF interface.

display interface vlanif vlan-id

In the command output, Hardware address indicates the MAC address of the VLANIF interface.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >