2

Since sending an ARP request/reply for each IP data-gram is inefficient, hosts maintain a cache (ARP Cache)of current entries. The entries expire after

What is the default ARP cache refresh rate of Windows 8?

and

What is the default cache refresh rate of Ubuntu?

1 Answer 1

5

Windows

Older versions of Windows used to have a timeout of 2 minutes for ARP entries.

This has changed in Vista and Server 2008 onwards to comply with RFC4861. The new implementation has lowered this time to a random value between 15 seconds and 45 seconds.

To see the ARP cache timeout for a network interface on Windows:

  • Run: netsh interface ipv4 show interfaces
  • Get the interface ID for the required interface from the above command.
  • Run: netsh interface ipv4 show interface <interface ID from step 1>
  • See the "Reachable Time" in the output from the above command.

On my computer with Windows 10 this gives 17500 ms.

image

This MS KB article explains the timeout for ARP cache entries on Windows:
Description of Address Resolution Protocol (ARP) caching behavior in Windows Vista TCP/IP implementations.

Ubuntu

You can get the default arp cache timeout by:

cat /proc/sys/net/ipv4/neigh/default/gc_stale_time

The default is usually 60, meaning 60 seconds until an entry is removed. Every time the entry is used in the table, the timer for this entry resets to 60 seconds.

Additionally you can set it by:

echo 3600 >/proc/sys/net/ipv4/neigh/default/gc_stale_time

Or permanently in the config file /etc/sysctl.conf.

1
  • How would you do this on macos? Apr 5, 2020 at 2:56

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .