環境
系統:Windows 10 企業版
軟件:VMware® Workstation 15 Pro
網卡:VMnet8(NAT模式)
問題
在虛擬機上ping外部主機時,出現大量(DUP!)
# ping 172.168.1.111 PING 172.168.1.111 (172.168.1.111) 56(84) bytes of data. 64 bytes from 172.168.1.111: icmp_seq=1 ttl=127 time=25.0 ms 64 bytes from 172.168.1.111: icmp_seq=1 ttl=128 time=25.0 ms (DUP!) 64 bytes from 172.168.1.111: icmp_seq=1 ttl=127 time=25.3 ms (DUP!) 64 bytes from 172.168.1.111: icmp_seq=2 ttl=127 time=26.6 ms 64 bytes from 172.168.1.111: icmp_seq=2 ttl=128 time=26.6 ms (DUP!) 64 bytes from 172.168.1.111: icmp_seq=2 ttl=127 time=26.9 ms (DUP!)
解決方法
禁用windows10 的
Routing and Remote Access
服務即可
原因分析
Windows 10 默認啟動了
Routing and Remote Access
服務,而VMnet8又啟用了NAT
模式
NAT路由和系統路由兩種模式同時存在,導致路由沖突