美文网首页linux整理
linux:扩充ARP表

linux:扩充ARP表

作者: 随风化作雨 | 来源:发表于2017-06-30 12:02 被阅读11次

    参考: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

    相关文章

      网友评论

        本文标题:linux:扩充ARP表

        本文链接:https://www.haomeiwen.com/subject/tzbbcxtx.html