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

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
XGE1/0/3                      Enabled
XGE1/0/4                      Enabled

Table 16: Command output

Field

Description

Global MAC address learning status

Global MAC address learning status:

  • Enabled.

  • Disabled.

Port

Interface name.

Learning Status

MAC address learning status of an interface:

  • Enabled.

  • Disabled.

Related commands

mac-address mac-learning enable