一、假设主机是xp系统,IP地址:192.168.1.11(不是自动获取);将vm的的网络设置为网桥 二、以root用户进入ubuntu,设置IP:打开/etc/network/interfaces文件,将下面配置复制进去: auto lo iface lo inet loopback auto etho iface etho inet static address 192.168.1.18 netmask 255.255.255.0 network 192.168.0.0 broadcast 192.168.0.255 gateway 192.168.1.1 三、设置DNS:打开/etc/resolv.conf,复制下面内容 # Generated by NetworkManager nameserver 202.96.69.38 四、重启网络服务: sudo /etc/init.d/networking restart (责任编辑:IT) |