1. Win7上的VMware Network Adapter(VMnet1和VMnet8)都设置为自动获取IP和DSN
2. Ubuntu上打开Terminal输入vi /etc/network/interfaces,内容改为如下:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
3. Ubuntu上接着输入vi /etc/resolv.conf,内容如下(把PC上的DSN都填上):
nameserver 221.5.88.88
nameserver 192.168.0.2
4. VMware Workstation左侧列表中右击当前Ubuntu虚拟机,再点[Setting...]进入Virtual Machine Settings界面,选Network Adapter,再选中Bridged:Connected directly to the physical network.
5. Ubuntu上输入/etc/init.d/networking restart使设置生效