networking
network_error
ai_generated
true
ICMP redirect received from 10.0.0.1 for destination 192.168.1.100
ID: networking/icmp-redirect-received
85%Fix Rate
82%Confidence
1Evidence
2023-11-20First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| Linux kernel 6.1 | active | — | — | — |
| FreeBSD 13.2 | active | — | — | — |
| Cisco IOS 15.9 | active | — | — | — |
Root Cause
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.
generic中文
路由器发送了ICMP重定向消息,表明存在通往目的地的更优路由,通常是由于路由配置欠佳或非对称路由路径所致。
Official Documentation
https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txtWorkarounds
-
90% success Accept the redirect and update routing table: route add -net 192.168.1.0/24 gw 10.0.0.2 dev eth0
Accept the redirect and update routing table: route add -net 192.168.1.0/24 gw 10.0.0.2 dev eth0
-
95% success Disable redirects only on the specific interface: sysctl -w net.ipv4.conf.eth0.accept_redirects=0
Disable redirects only on the specific interface: sysctl -w net.ipv4.conf.eth0.accept_redirects=0
中文步骤
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
Dead Ends
Common approaches that don't work:
-
75% fail
Disabling ICMP redirect processing globally (net.ipv4.conf.all.accept_redirects=0) may break legitimate routing updates and cause packet loss.
-
80% fail
Ignoring the redirect without updating routing tables can lead to persistent suboptimal paths and increased latency.