The mac-learning enable command enables MAC address learning for a VSI.
The mac-learning disable command disables MAC address learning of a VSI.
The undo mac-learning disable command enables MAC address learning for a VSI.
By default, MAC address learning is enabled for a VSI.
Parameter | Description | Value |
---|---|---|
enable | Enables a VSI to learn MAC addresses. | - |
disable | Disables a VSI to learn MAC addresses. | - |
Usage Scenario
To disable MAC address learning in a VSI on a VPLS network, run the mac-learning disable command. The VPLS network then functions similarly to a VPWS network. For example, if there are only two PEs with each connecting to one CE, disabling MAC address learning in a VSI on a PE reduces the PE's pressure.
Configuration Impact
After the mac-learning disable command is run for a VSI, the VSI can no longer automatically learn MAC addresses, causing packets to be broadcast on the network. Therefore, exercise caution when running this command.