vmware ubuntu ip config

来源:互联网 发布:python numpy amax 编辑:程序博客网 时间:2024/04/29 10:35

1.vmware 网络设置为"host-only"

2.windows 中的vmware 虚拟网卡的ip设置中修改dns为你的本地连接设置(只修改dns即可)

3.开启服务"VMware DHCP Service"

4.vmware ubuntu中运行命令 "sudo etc/init.d/networking restart"或者"sudo dhclient eth0"

 

另外:

/etc/network/interface中的设置如下(用以下命令修改sudo vi interface)

 

#...

#...

#下面这个好像是装vmtools带的

auto lo

iface lo inet loopback

 

#下面是我们关心的,如果是静态ip,需要其它形式,请查阅其它相关资料

auto eth0

iface eth0 inet dhcp

原创粉丝点击