The above information indicates that the aging time of dynamic entries in the MAC address table is 300
seconds.
display mac-address mac-learning
Syntax
display mac-address mac-learning [ interface-type interface-number ]
View
Any view
Default Level
1: Monitor level
Parameters
interface-type interface-number: Specifies an interface by its type and number. Displays MAC address
learning status of the specified interface.
Description
Use the display mac-address mac-learning command to display MAC address learning status of the
specified or all Ethernet ports.
Examples
# Display MAC address learning status of port GigabitEthernet 2/0/1.
<Sysname> display mac-address mac-learning gigabitethernet 2/0/1
Mac address learning status of the switch: enable
PortName
GigabitEthernet2/0/1
Table 1-2 display mac-address mac-learning command output description
Mac address learning status of the switch
PortName
Learning Status
mac-address (Ethernet interface view)
Syntax
mac-address { dynamic | static } mac-address vlan vlan-id
undo mac-address { dynamic | static } mac-address vlan vlan-id
View
Ethernet interface view, Layer-2 aggregate interface view
Learning Status
enable
Field
1-3
Description
Global MAC address learning status, enabled or
disabled
Port name
MAC address learning status for a port, enabled
or disabled