- 论坛徽章:
- 0
|
最近在自己的Linux主机上Ping相同子网段的一不可达IP: 1.1.9.134(86090101), 内核在route cache中添加了如下内容:
- $ cat /proc/net/rt_cache | grep 86090101
- Iface Destination Gateway Flags RefCnt Use Metric Source MTU Window IRTT TOSHHRef HHUptod SpecDst
- eth0 86090101 86090101 0 0 0 0 66090101 1500 0 0 00-1 0 66090101
- eth0 86090101 86090101 0 0 2 0 66090101 1500 0 0 00-1 0 66090101
复制代码
同时, neigh cache中留下了如下内容:
- $ ip neigh list
- 1.1.9.134 dev eth0 nud failed
复制代码
奇怪的是, 这条路由缓存记录在一两天内都不会被内核回收. 自然, neigh cache中的failed entry也不会被回收.请问有谁碰到过这样的问题吗?
相关的一些内核参数.$ cat /proc/sys/net/ipv4/neigh/default/gc_stale_time
60
$ cat /proc/sys/net/ipv4/neigh/default/gc_thresh2
4096
$ cat /proc/sys/net/ipv4/neigh/default/gc_thresh3
8192
$ cat /proc/sys/net/ipv4/route/gc_timeout
300 [ 本帖最后由 grep_one 于 2008-8-26 16:46 编辑 ] |
|