display mac-address summary

Function

The display mac-address summary command displays statistics about all MAC address entries on a device.

Format

display mac-address summary

Parameters

None

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
mac read

Usage Guidelines

Usage Scenario

A MAC address table is an interface-based Layer 2 forwarding table. It stores information about MAC addresses learned by a device. A MAC address entry contains a MAC address, an interface on which a packet is forwarded to this MAC address, and a VLAN to which the specified interface belongs or a VSI to which the specified interface is bound. Before forwarding a packet, the device searches the MAC address table based on the destination MAC address of the packet and locate the outbound interface quickly. This facilitates packet forwarding and reduces broadcast traffic.

If a device learns a great number of MAC addresses of different types, run the display mac-address summary command to view statistics about the MAC address entries on the device.

Precautions

If no static or static blackhole MAC address entries are configured on a device, statistics about the two types of MAC address entries are 0.

If MAC address learning is disabled on a device, statistics about dynamic MAC address entries are 0. You can run the undo mac-address learning disable command in the VLAN view to enable MAC address learning.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display statistics about the MAC address entries on the device.
<HUAWEI> display mac-address summary
--------------------------------------------------------
Slot        Total    Blackhole  Static  Dynamic
--------------------------------------------------------

1              4            1       3        0
--------------------------------------------------------
Table 1 Description of the display mac-address summary command output
Item Description
Slot

Slot number of the board.

Total

Number of total MAC address entries.

Blackhole

Number of blackhole MAC address entries.

Static

Number of static MAC address entries.

Dynamic

Number of dynamic MAC address entries.

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