networking
network_error
ai_generated
true
从10.0.0.1收到发往192.168.1.100的ICMP重定向
ICMP redirect received from 10.0.0.1 for destination 192.168.1.100
ID: networking/icmp-redirect-received
85%修复率
82%置信度
1证据数
2023-11-20首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| Linux kernel 6.1 | active | — | — | — |
| FreeBSD 13.2 | active | — | — | — |
| Cisco IOS 15.9 | active | — | — | — |
根因分析
路由器发送了ICMP重定向消息,表明存在通往目的地的更优路由,通常是由于路由配置欠佳或非对称路由路径所致。
English
A router sent an ICMP redirect message indicating a better route exists for a destination, often due to suboptimal routing configuration or asymmetric routing paths.
官方文档
https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt解决方案
-
Accept the redirect and update routing table: route add -net 192.168.1.0/24 gw 10.0.0.2 dev eth0
-
Disable redirects only on the specific interface: sysctl -w net.ipv4.conf.eth0.accept_redirects=0
无效尝试
常见但无效的做法:
-
75% 失败
Disabling ICMP redirect processing globally (net.ipv4.conf.all.accept_redirects=0) may break legitimate routing updates and cause packet loss.
-
80% 失败
Ignoring the redirect without updating routing tables can lead to persistent suboptimal paths and increased latency.