目的:虛擬機中Linux與主機互聯,便於通過FTP互轉文件
設置為無線連接。

在虛擬機設置主機連接方式橋接方式

設置虛擬機的IP地址
我的虛擬機網卡是eth0,每個人可能不同根據具體情況來定[code]#設置IP地址
# sudo vim /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.1.102
gateway 192.168.1.1
netmask 255.255.255.0
#重啟網卡
sudo /etc/init.d/networking restart
4.這時主機和虛擬機就能夠ping通了

[1]http://jingyan.baidu.com/article/e5c39bf5bbe0e739d7603396.html
[2]http://www.cqeis.com/news_detail/newsId=1477.html