linux:扩充ARP表

参考:https://www.cyberciti.biz/faq/centos-redhat-debian-linux-neighbor-table-overflow/

vi /etc/sysctl.conf

 ## works best with <= 500 client computers ##
# Force gc to clean-up quickly
net.ipv4.neigh.default.gc_interval = 3600
 
# Set ARP cache entry timeout
net.ipv4.neigh.default.gc_stale_time = 3600
 
# Setup DNS threshold for arp 
net.ipv4.neigh.default.gc_thresh3 = 4096
net.ipv4.neigh.default.gc_thresh2 = 2048
net.ipv4.neigh.default.gc_thresh1 = 1024

sysctl -p

    原文作者:随风化作雨
    原文地址: https://www.jianshu.com/p/1ef573decde7
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞