How to disable MAC address learning on S series switches

For S series switches (except the S1700), you can use the following methods to disable MAC address learning:
1. Disable MAC address learning on an interface.
[HUAWEI] interface gigabitethernet0/0/3
[HUAWEI-GigabitEthernet0/0/3] mac-address learning disable
2. Disable MAC address learning in a VLAN.
[HUAWEI] vlan 2
[HUAWEI-vlan2] mac-address learning disable

Scroll to top