AIX, Linux ARP cache timeout
Post date: Aug 5, 2011 9:29:22 AM
Hogyan lehet módosítani az ARP cache viselkedését AIX-en, illetve Linuxon?
AIX:
$ no -o arpt_killc
arpt_killc = 20
arpt_killc - Purpose: Specifies the time in minutes before a complete ARP entry will be deleted.
Tuning: To reduce ARP activity in a stable network, you can increase arpt_killc.
Lasd meg:
AIX ARP cache tuning (AIX InfoCenter)
man no -> arpqsize, arptab_bsiz, arptab_nb
ARP cache ürítése: arp -d egyenként minden bejegyzésre...
Linux 2.6.37:
$ sysctl -a | grep stale
Van egy globális default, de egyes interface-ekre külön is lehet állítani, ezen belül kulon értékek vannak IPv4-re és IPv6-ra.
net.ipv4.neigh.default.gc_stale_time = 60
net.ipv4.neigh.lo.gc_stale_time = 60
net.ipv4.neigh.eth0.gc_stale_time = 60
net.ipv4.neigh.eth2.gc_stale_time = 60
net.ipv4.neigh.vboxnet0.gc_stale_time = 60
net.ipv6.neigh.default.gc_stale_time = 60
net.ipv6.neigh.lo.gc_stale_time = 60
net.ipv6.neigh.eth0.gc_stale_time = 60
net.ipv6.neigh.eth2.gc_stale_time = 60
net.ipv6.neigh.vboxnet0.gc_stale_time = 60
Lásd még:
Address Resolution Protocol (ARP)
man sysctl, man sysctl.conf
ARP cache ürítése:
# ip neigh flush all
# ip -s -s neigh flush all # statisztika, MAC cimek