< Home

display device mac-number

Function

The display device mac-number command displays the number of MAC addresses of a switch.

Format

display device mac-number [ slot slot-id ]

Parameters

Parameter Description Value
slot slot-id

Specifies a device ID.

The value must be set according to the device configuration.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

One or more MAC addresses may be configured on a switch before delivery. To check the number of MAC addresses of a switch, run the display device mac-number command. If the switch has multiple MAC addresses configured, the MAC addresses of Layer 3 interfaces are different from the system MAC address. If the switch has only one MAC address configured, the MAC addresses of Layer 3 interfaces are the same as the system MAC address. On a switch with one or more MAC addresses configured, the MAC addresses of Layer 2 interfaces are the same as the system MAC address.

If slot slot-id is not specified in a stack, the display device mac-number command displays the number of MAC addresses of the master switch.

Example

# Display the number of MAC addresses.

<HUAWEI> display device mac-number
The number of MAC address : 1 
Table 1 Description of the display device mac-number command output

Item

Description

The number of MAC address

Number of MAC addresses.

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