The mac-learning enable command enables MAC address learning.
The mac-learning disable command disables MAC address learning.
The undo mac-learning disable command enables MAC address learning.
By default, MAC address learning is enabled.
Usage Scenario
After MAC address learning is disabled, a VPLS network can simulate a VPWS network. If there are two PEs and only one CE connects to each PE, you can disable MAC address learning on the PEs to reduce the burden of MAC address learning on the PEs.
Configuration Impact
After the mac-learning disable command is run, the device can no longer automatically learn MAC addresses, causing packets to be broadcast on the network. Exercise caution when using this command.