Description
Example
mac-address (Ethernet interface view)
Syntax
View
Parameter
Description
Use the
display mac-address mac-learning
learning status of the specified or all Ethernet interfaces.
# Display MAC address learning status of all Ethernet interfaces.
<Sysname> display mac-address mac-learning
Mac address learning status of the switch: enable
PortName
GigabitEthernet1/1
GigabitEthernet1/2
GigabitEthernet1/3
GigabitEthernet1/4
GigabitEthernet2/1
GigabitEthernet2/2
GigabitEthernet2/3
GigabitEthernet2/4
Table 638 Description on the fields of display mac-address mac-learning
Field
Mac-address learning status of the switch
PortName
Learning Status
mac-address { dynamic | static } mac-address vlan vlan-id
undo mac-address { dynamic | static } mac-address vlan vlan-id
Ethernet interface view
dynamic: Dynamic MAC address entries. Aging time is set for these entries.
static: Static MAC address entries. Similar to blackhole MAC address entries,
these entries do not age but you can add or remove them.
mac-address: Specifies a MAC address in the format of H-H-H.
vlan vlan-id: Specifies the VLAN to which the Ethernet interface belongs. vlan-id is
the specified VLAN ID, in the range 1 to 4094.
Use the
mac-address
specified Ethernet port.
Use the
undo mac-address
Ethernet port.
Note that:
Learning Status
enable
enable
enable
enable
enable
enable
enable
enable
Description
Global MAC address learning status,
enabled or disabled.
Port name
Interface MAC address learning status,
enabled or disabled.
command to add or modify a MAC address entry on a
command to remove a MAC address entry on the
command to display MAC address
2479