vmware 虚拟机经常会出现连不上网的问题,可能是以下几个原因:
编辑》》虚拟网络编辑器,选择桥接用的网卡是哪个。
配置/etc/network/interfaces ,注意eth6还是eth7,如果不行就换个数字;
1 auto lo
2 iface lo inet loopback
3
4 # The primary network interface
5 auto eth0
6 iface eth0 inet static
7 address 192.168.0.42
8 #network 192.168.0.0
9 netmask 255.255.255.0
10 # broadcast 192.168.0.255
11 gateway 192.168.0.1
重启/etc/init.d/networking restart 重启网卡,