Disabling MAC address learning on a VLAN

When global MAC address learning is enabled, you can disable MAC address learning on a per-VLAN basis.

To disable MAC address learning on a VLAN:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enable global MAC address learning.

mac-address mac-learning enable

By default, global MAC address learning is enabled.

3. Enter VLAN view.

vlan vlan-id

N/A

4. Disable MAC address learning on the VLAN.

undo mac-address mac-learning enable

By default, MAC address learning on the VLAN is enabled.