Ubuntu能與局域網中其它機子互ping
(經過eth2
)ubuntu
Ubuntu能上外網 (經過eth0
),好比使用w3m
打開網頁code
Ubuntu卻ping
不通外網 (理論上應該是能夠經過eth0
ping
出去的), 從下面的結果能夠看出,其實已經能夠經過eth0
接口聯到外網解析出baidu.com
的ip
了,只是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