R0106-HP MSR Router Series Layer 2 - LAN Switching Command Reference(V7)
3
Related commands
mac-address timer
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 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, this command displays the global MAC address learning status and the MAC
address learning status of each interface.
Examples
# Display the global MAC address learning status and the MAC learning status of each interface.
<Sysname> display mac-address mac-learning
Global MAC address learning status: Enabled.
Port Learning Status
GE2/1/1 Enabled
GE2/1/2 Enabled
GE2/1/3 Enabled
GE2/1/4 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