VMware中Ubuntu網絡正常但ping不出去

配置

  • 主機 win 7
  • 虛擬機 VMware
  • 客戶機 Ubuntu 12.04
  • Ubuntu有兩個網卡:eth0爲NAT, eth2爲bridge

現象

  • Ubuntu能與局域網中其它機子互ping (經過eth2)ubuntu

  • Ubuntu能上外網 (經過eth0),好比使用w3m打開網頁code

  • Ubuntu卻ping不通外網 (理論上應該是能夠經過eth0 ping出去的), 從下面的結果能夠看出,其實已經能夠經過eth0接口聯到外網解析出baidu.comip了,只是ping報文收不到。接口

    honghe@ubuntu20143-s:~$ ping baidu.com -I eth0           
      PING baidu.com (123.125.114.144) from 192.168.133.128 eth0: 56(84) bytes of data.
      ^C
      --- baidu.com ping statistics ---
      3 packets transmitted, 0 received, 100% packet loss, time 2021ms

    若是是沒有正常聯網,是直接返回Destination Host Unreachable圖片

    honghe@ubuntu20143-s:~$ ping 8.8.8.8 -I eth2
      PING 8.8.8.8 (8.8.8.8) from 192.168.133.128 eth2: 56(84) bytes of data.
      From 10.192.5.252 icmp_seq=1 Destination Host Unreachable
      From 10.192.5.252 icmp_seq=2 Destination Host Unreachable
      From 10.192.5.252 icmp_seq=3 Destination Host Unreachable
      ^C
      --- 8.8.8.8 ping statistics ---
      5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4032ms

解決方法

固然是把網卡共享關閉就OK。
在此輸入圖片描述ip

產生緣由

host機win 7上最近插了個360隨身wifi (非廣告), 這玩意默認給我打開網卡共享來產生wifi熱點。虛擬機

解釋

暫時不知如何解釋,望高手留言 ;)it

相關文章
相關標籤/搜索