今天,安装了XFace桌面,但是出现一个问题,桥连方式无法上网了。家里是无线路由+ADSL宽带上网。
在VMWARE上尝试使用NAT上网方式,并更改/etc/network/interfaces文件,清空内容之后输入以下内容:
DHCP
auto eth0 iface eth0 inet dhcp
然后重启网路服务:
sudo /etc/init.d/networking restart
网络连接成功。
Cheers
因为单位是固定IP上网的,在此贴上固定IP设置方式:
Static IP
auto eth0 iface eth0 inet static address 192.168.1.100 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 gateway 192.168.1.1