Fit AP V200R010C00 Command Reference

display mac-address

display mac-address

Function

The display mac-address command displays the MAC address table of the wireless access point. A MAC address entry contains the destination MAC address, VLAN ID, outbound interface, and entry type.

Format

display mac-address mac-address [ vlan vlan-id ] [ verbose ]

display mac-address [ vlan vlan-id | interface-type interface-number ] * [ verbose ]

Parameters

Parameter

Description

Value

mac-address

Specifies the destination MAC address in an entry.

The value is in H-H-H format. H is a hexadecimal number of 4 digits. The MAC address cannot be FFFF-FFFF-FFFF, 0000-0000-0000, or a multicast MAC address.

vlan vlan-id

Displays MAC address entries in a specified VLAN.

The value is an integer that ranges from 1 to 4094.

interface-type interface-number

Displays the MAC address entries with a specified outbound interface.
  • interface-type specifies the type of the outbound interface.
  • interface-number specifies the number of the outbound interface.

-

verbose

Displays detailed information about MAC address entries.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

The MAC address table of the wireless access point stores MAC addresses of other devices. When forwarding an Ethernet frame, the wireless access point searches the MAC address table for the outbound interface according to the destination MAC address and VLAN ID in the Ethernet frame.

The display mac-address command displays all MAC address entries, such as dynamic MAC address entries, static MAC address entries, and blackhole MAC address entries. A MAC address entry contains the destination MAC address, VLAN ID, outbound interface, and entry type.

Follow-up Procedure

If any MAC address entry in the command output is incorrect, run the undo mac-address command to delete the entry or run the mac-address command to add a correct one.

Precautions

If you run the display mac-address command without parameters, all MAC address entries are displayed.

When the wireless access point has a large number of MAC address entries, it is recommended that you specify parameters in the command to filter the output information. Otherwise, the following problems may occur due to excessive output information:
  • The displayed information is repeatedly refreshed, so you cannot find the required information.
  • The system traverses and retrieves information for a long time, and does not respond to any request.

Example

# Display all MAC address entries.

<Huawei> display mac-address
------------------------------------------------------------------------------- 
MAC Address    VLAN/VSI                          Learned-From        Type       
------------------------------------------------------------------------------- 
4c1f-cc25-611b    100/-                  GE0/0/1                    security   
                                                                                
------------------------------------------------------------------------------- 
Total items displayed = 1   
Table 6-1  Description of the display mac-address command output

Item

Description

MAC Address

Destination MAC address in a MAC address entry.

VLAN/VSI

ID of the VLAN or name of the VSI that a MAC address belongs to.

Learned-From

Interface on which the MAC address is learned.

Type

Type of a MAC address entry.
  • static: indicates a static MAC address entry, which is manually configured and will not be aged out.
  • blackhole: indicates a blackhole MAC address entry, which is manually configured and will not be aged out.
  • dynamic: indicates a MAC address entry learned by the wireless access point, which will be aged out when the aging time expires.
  • security: indicates a MAC address entry that an interface learns after port security is enabled.
  • sticky: indicates a MAC address entry that an interface learns after the sticky MAC function is enabled.
  • mux: indicates a MAC address entry learned by a MUX VLAN enabled interface.
  • snooping: indicates a static MAC address entry generated based on the dynamic DHCP snooping binding table.
Translation
Favorite
Download
Update Date:2021-02-27
Document ID:EDOC1100064353
Views:3207169
Downloads:4067
Average rating:4.0Points