1.Log in to the Linux operating system as the root user.
2.Modify configuration files in IPv4 and IPv6 scenarios as follows. •IPv4: Modify the ARP table configuration in the IPv4 scenario.a.On the CLI, run the following commands:echo 4096 > /proc/sys/net/ipv4/neigh/default/gc_thresh1
echo 8192 > /proc/sys/net/ipv4/neigh/default/gc_thresh2
echo 20480 > /proc/sys/net/ipv4/neigh/default/gc_thresh3
b.Edit the /etc/sysctl.conf file. Specifically, modify the configuration as follows or add the following configuration items to the end of the file:net.ipv4.neigh.default.gc_thresh1 = 4096
net.ipv4.neigh.default.gc_thresh2 = 8192
net.ipv4.neigh.default.gc_thresh3 = 20480
•IPv6: Modify the ARP table configuration in the IPv6 scenario.a.On the CLI, run the following commands:echo 4096 > /proc/sys/net/ipv6/neigh/default/gc_thresh1
echo 8192 > /proc/sys/net/ipv6/neigh/default/gc_thresh2
echo 20480 > /proc/sys/net/ipv6/neigh/default/gc_thresh3
b.Edit the /etc/sysctl.conf file. Specifically, modify the configuration as follows or add the following configuration items to the end of the file:net.ipv6.neigh.default.gc_thresh1 = 4096
net.ipv6.neigh.default.gc_thresh2 = 8192
net.ipv6.neigh.default.gc_thresh3 = 20480
NOTE:
The values 4096, 8192, and 20480 in the examples are recommended values. The corresponding numbers of ARP routes occupy system memory. Set these values based on actual deployment scenarios.