How to configure strict ARP entry learning on S series switches

For S series switches (except S1700 switches), enabling strict ARP entry learning allows the switch to learn only ARP entries for ARP Reply packets in response to ARP Request packets sent by itself.
Enabling strict ARP entry learning on the switch device affects only the ARP entry learning on the switch, not on the hosts.

# Enable strict ARP entry learning on VLANIF 100.
[HUAWEI] interface vlanif 100
[HUAWEI-Vlanif100] arp learning strict force-enable

# Enable strict ARP entry learning globally on the switch and enable this function on GE1/0/1.
[HUAWEI] arp learning strict
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] undo portswitch
[HUAWEI-GigabitEthernet0/0/1] arp learning strict force-disable

The physical interfaces on some switch models cannot switch between Layer 2 and Layer 3 modes through the undo portswitch command.

Scroll to top