# Disable MAC address learning on interface S-Channel1/0/1:10.
<Sysname> system-view
[Sysname] interface s-channel 1/0/1:10
[Sysname-S-Channel1/0/1:10] undo mac-address mac-learning enable
Related commands
display mac-address mac-learning
mac-address mac-learning priority
Use mac-address mac-learning priority to assign MAC learning priority to an interface.
Use undo mac-address mac-learning priority to restore the default.
Syntax
mac-address mac-learning priority { high | low }
undo mac-address mac-learning priority
Default
Low MAC address learning priority is used.
Views
Ethernet interface view, aggregate interface view, S-channel interface view
Predefined user roles
network-admin
Parameters
high: Assigns high MAC learning priority.
low: Assigns low MAC learning priority.
Usage guidelines
The MAC address learning priority values can be high and low. An interface with high MAC address
learning priority can learn any MAC address. An interface with low MAC address learning priority can
learn only the MAC addresses that have not been learned by the high-priority interfaces.
The MAC learning priority mechanism can help defend your network against MAC address spoofing
attacks. You can assign an uplink interface high MAC learning priority and a downlink interface low
MAC learning priority to prevent the downlink interface from learning the MAC address of an upper
layer device (for example, the gateway).
Examples
# Assign high MAC learning priority to interface Ten-GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] mac-address mac-learning priority high
# Assign high MAC learning priority to interface Bridge-Aggregation 1.
<Sysname> system-view
[Sysname] interface bridge-aggregation 1
[Sysname-Bridge-Aggregation1] mac-address mac-learning priority high
# Assign high MAC learning priority to interface S-Channel 1/0/1:10.
56