linux整理

linux:扩充ARP表

2017-06-30  本文已影响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

上一篇 下一篇

猜你喜欢

热点阅读