Ubuntu1010虛擬裡聯網
按網上說的試了很多種方法,
最後用NAT的方法連接
並且把/etc/network/interfaces裡靜態的IP去掉
裡面就放這些內容
auto lo
iface lo inet loopback
然後重啟Ubuntu
yijun@yijun:~$ ping www.baidu.com
PING www.baidu.com (115.239.210.26) 56(84) bytes of data.
64 bytes from 115.239.210.26: icmp_req=1 ttl=128 time=39.1 ms
64 bytes from 115.239.210.26: icmp_req=2 ttl=128 time=34.3 ms
64 bytes from 115.239.210.26: icmp_req=3 ttl=128 time=30.7 ms
64 bytes from 115.239.210.26: icmp_req=4 ttl=128 time=34.0 ms
64 bytes from 115.239.210.26: icmp_req=5 ttl=128 time=35.0 ms
64 bytes from 115.239.210.26: icmp_req=6 ttl=128 time=35.0 ms
64 bytes from 115.239.210.26: icmp_req=7 ttl=128 time=34.9 ms