display mac-address total-number
Function
The display mac-address total-number command displays the number of MAC address entries of a specified type.
Format
display mac-address total-number
display mac-address total-number [ vlan vlan-id | interface-type interface-number ] *
display mac-address total-number vlan all
display mac-address total-number blackhole [ vlan vlan-id ]
display mac-address total-number dynamic [ vlan vlan-id | interface-type interface-number ] *
display mac-address total-number static [ vlan vlan-id | interface-type interface-number ] *
Parameters
Parameter |
Description |
Value |
---|---|---|
dynamic |
Displays the number of dynamic MAC address entries. |
- |
blackhole |
Displays the number of blackhole MAC address entries. |
- |
static |
Displays the number of static MAC address entries. |
- |
vlan vlan-id |
Displays the number of MAC address entries in a specified VLAN. |
The value is an integer that ranges from 1 to 4094. |
vlan all |
Displays the number of MAC address entries in all VLANs. |
- |
interface-type interface-number |
Displays the number of MAC address entries learned by a specified interface. |
- |
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.
When the wireless access point has many MAC address entries of different types, you can use the display mac-address total-number command to view statistics on MAC address entries of a specified type.
Precautions
If no parameter is specified, the total number of MAC address entries in the system is displayed.
If interface-type interface-number is not specified, the total number of MAC addresses learned by all interfaces is displayed.
If vlan vlan-id is not specified, the total number of MAC addresses in all VLANs is displayed.