某單位 A 部門無法訪問上級 B 部門網絡,同網段不同 IP 主機表現迥異:有的 100% 丟包、有的正常、有的 20%-50% 丟包,**換 IP 現象隨 IP 漂移**,最終定位為核心路由器配置了**指向不存在下一跳的錯誤默認路由**,導致 ECMP 負載分擔將流量送入黑洞。
ip route 0.0.0.0 0.0.0.0 192.168.10.2 ! 正確上行
ip route 0.0.0.0 0.0.0.0 10.20.12.254 ! 錯誤下一跳,該 IP 不存在
Router# configure terminal
Router(config)# no ip route 0.0.0.0 0.0.0.0 10.20.12.254
Router(config)# end
Router# write memory
重啟路由器後,所有主機恢復正常訪問 B 部門及廣域網,故障徹底解決。
Destination Gateway Flags Refs Use Interface
default 26.112.191.98 UGS 0 0 net0
default 26.112.191.98 UGS 0 18 net0
26.112.191 26.112.191.2 UC 1 0 net0
26.112.191.2 127.0.0.1 UGHS 3 92 lo0
127.0.0.1 127.0.0.1 UH 3 9786480 lo0
224 26.112.191.2 UCS 0 0 net0