# 从10.0.0.1收到发往192.168.1.100的ICMP重定向

- **ID:** `networking/icmp-redirect-received`
- **领域:** networking
- **类别:** network_error
- **验证级别:** ai_generated
- **修复率:** 85%

## 根因

路由器发送了ICMP重定向消息，表明存在通往目的地的更优路由，通常是由于路由配置欠佳或非对称路由路径所致。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| Linux kernel 6.1 | active | — | — |
| FreeBSD 13.2 | active | — | — |
| Cisco IOS 15.9 | active | — | — |

## 解决方案

1. ```
   Accept the redirect and update routing table: route add -net 192.168.1.0/24 gw 10.0.0.2 dev eth0
   ```
2. ```
   Disable redirects only on the specific interface: sysctl -w net.ipv4.conf.eth0.accept_redirects=0
   ```

## 无效尝试

- **** — Disabling ICMP redirect processing globally (net.ipv4.conf.all.accept_redirects=0) may break legitimate routing updates and cause packet loss. (75% 失败率)
- **** — Ignoring the redirect without updating routing tables can lead to persistent suboptimal paths and increased latency. (80% 失败率)
