< Home

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 [ slot slot-id ]

display mac-address total-number [ vsi vsi-name ]

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

display mac-address total-number vlan all

display mac-address total-number { mux | security | sticky | sec-config | snooping | pre-authen | authen } [ vlan vlan-id | interface-type interface-number ] *

display mac-address total-number blackhole [ vlan vlan-id | vsi vsi-name ]

display mac-address total-number dynamic [ slot slot-id ] [ vlan vlan-id | interface-type interface-number ] *

display mac-address total-number dynamic [ slot slot-id ] [ vsi vsi-name ]

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

display mac-address total-number static vsi vsi-name

Parameters

Parameter

Description

Value

slot slot-id

Displays the number of MAC address entries on a specified card.

The value is an integer and must be the slot ID of a running card.

mux

Displays the number of MUX MAC address entries.

-

dynamic

Displays the number of dynamic MAC address entries.

-

security

Displays the number of secure dynamic MAC address entries.

-

sec-config

Displays the number of secure static MAC address entries.

-

snooping

Displays the number of static MAC address entries generated based on the dynamic DHCP snooping binding table.

-

pre-authen

Displays the number of static MAC address entries corresponding to a user in pre-connection state after NAC authentication is enabled.

-

authen

Displays the number of static MAC address entries that is generated after a user passes NAC authentication.

-

sticky

Displays the number of sticky 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.

-

vsi vsi-name

Displays the number of MAC address entries in a specified VSI.

NOTE:

Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731S-H, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730S-H, and S6730-H support this parameter.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

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

When the switch 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 no interface is specified in the display mac-address total-number command, the total number of MAC address entries learned by all interfaces is displayed.

If an interface is specified in the display mac-address total-number command, the total number of MAC address entries in the VLAN where the interface resides is displayed.

If no VLAN is specified in the display mac-address total-number command, the total number of MAC address entries in all VLANs is displayed.

Example

# Display the number of dynamic MAC address entries.

<HUAWEI> display mac-address total-number dynamic
Total number of MAC address : 20
Table 1 Description of the display mac-address total-number command output

Item

Description

Total number of MAC address

Total number of MAC address entries in the system.

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