Command Reference MAC Address Commands
The address learning function is enabled.
Interface configuration mode.
MAC address learning cannot be disabled on the port where the security function is enabled. The
security function cannot be configured on the port where address learning is disabled.
The following example disables the port address learning function.
Ruijie(config-if)# no mac-address-learning
2.3 mac-address-learning (global)
Use this command to enable MAC address learning globally. Use the no or default form of this
command to restore the default setting.
mac-address-learning enable
Use this command to disable MAC address learning globally.
mac-address-learning disable
Use this command to restore MAC address learning globally.
default mac-address-learning
Enables MAC address learning globally.
Disables MAC address learning globally.
The mac-address-learning enable command is enabled by default.
Global configuration mode
When this function is enabled, the MAC address is learned in global configuration mode the same as
learned in interface configuration mode.
The following example disables MAC address learning globally.
Ruijie(config)# mac-address-learning disable