Man*_*ara 2 arp ubuntu windows-8
由于为每个 IP 数据报发送 ARP 请求/回复效率低下,因此主机会维护当前条目的缓存(ARP 缓存)。条目在以下时间后过期
Windows 8 的默认 ARP 缓存刷新率是多少?
和
Ubuntu默认的缓存刷新率是多少?
视窗
旧版 Windows 的 ARP 条目超时时间为 2 分钟。
从 Vista 和 Server 2008 开始,这一点已发生变化,以符合 RFC4861。新的实现已将此时间降低到 15 秒到 45 秒之间的随机值。
要查看 Windows 上网络接口的 ARP 缓存超时:
netsh interface ipv4 show interfacesnetsh interface ipv4 show interface <interface ID from step 1>在我的 Windows 10 计算机上,这需要 17500 毫秒。
此 MS 知识库文章解释了 Windows 上 ARP 缓存条目的超时:
Windows Vista TCP/IP 实现中地址解析协议 (ARP) 缓存行为的说明。
乌班图
您可以通过以下方式获取默认的 arp 缓存超时:
cat /proc/sys/net/ipv4/neigh/default/gc_stale_time
Run Code Online (Sandbox Code Playgroud)
默认值通常为60,表示 60 秒后删除条目。每次在表中使用该条目时,该条目的计时器都会重置为 60 秒。
此外,您还可以通过以下方式设置:
echo 3600 >/proc/sys/net/ipv4/neigh/default/gc_stale_time
Run Code Online (Sandbox Code Playgroud)
或者永久存在于配置文件中/etc/sysctl.conf。
| 归档时间: |
|
| 查看次数: |
14533 次 |
| 最近记录: |