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