display mac-address mac-learning

Use display mac-address mac-learning to display the global MAC address learning status and the MAC learning status of the specified interface or all interfaces.

Syntax

display mac-address mac-learning [ interface interface-type interface-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

interface interface-type interface-number: Specifies an interface by its type and number. If you do not specify an interface, the command displays the global MAC address learning status and the MAC address learning status of all interfaces.

Examples

# Display the global MAC address learning status and the MAC learning status of all interfaces.

<Sysname> display mac-address mac-learning
Global MAC address learning status: Enabled.

Port                         Learning Status
XGE1/0/1                     Enabled
XGE1/0/2                     Enabled

Table 2: Command output

Field

Description

Global MAC address learning status

Global MAC address learning status:

  • Enabled.

  • Disabled.

Learning Status

MAC address learning status of an interface:

  • Enabled.

  • Disabled.

Related commands

mac-address mac-learning enable