ubuntu14.04 vmware下网络ip配置
2016-09-20 10:42
246 查看
1, vi /etc/network/interfaces 添加如下内容
auto lo (原有信息,不变)
iface lo inet loopback (原有信息,不变)
auto eth0
#iface eth0 inet dhcp (动态获取,解除此行下面内容可不设置)
iface eth0 inet static (eth0是网卡信息,但名字有时候不是eth0,需要通过ifconfig命令确定)
address 192.168.1.118
netmask 255.255.255.0
gateway 192.168.1.254 (可以通过win系统网络连接本本地查看)
2,vi /etc/resolv.conf ,添加如下内容
nameserver 202.106.0.20 (可以通过win网络连接本本地查看),或者通过其他可上网电脑查看
。
3,vi /etc/resolvconf/resolv.conf.d/base 添加如下:
nameserver 202.106.0.20
3, sudo /etc/init.d/networking restart 重启生效,或者init6重启系统
4 ping www.baidu.com ,ifconfig 测试
参考链接:
http://jingyan.baidu.com/article/e5c39bf5bbe0e739d7603396.html
auto lo (原有信息,不变)
iface lo inet loopback (原有信息,不变)
auto eth0
#iface eth0 inet dhcp (动态获取,解除此行下面内容可不设置)
iface eth0 inet static (eth0是网卡信息,但名字有时候不是eth0,需要通过ifconfig命令确定)
address 192.168.1.118
netmask 255.255.255.0
gateway 192.168.1.254 (可以通过win系统网络连接本本地查看)
2,vi /etc/resolv.conf ,添加如下内容
nameserver 202.106.0.20 (可以通过win网络连接本本地查看),或者通过其他可上网电脑查看
。
3,vi /etc/resolvconf/resolv.conf.d/base 添加如下:
nameserver 202.106.0.20
3, sudo /etc/init.d/networking restart 重启生效,或者init6重启系统
4 ping www.baidu.com ,ifconfig 测试
参考链接:
http://jingyan.baidu.com/article/e5c39bf5bbe0e739d7603396.html
相关文章推荐
- VMware下Ubuntu 14.04静态ip配置
- 使用虚拟机VMware 12 Player 运行Ubuntu 14.04 配置网络的两种方法(有线、无线)
- 【个人笔记】ubuntu 网络配置(IP MAC gateway nameserver)
- 【个人笔记】ubuntu 网络配置(IP MAC gateway nameserver)
- ubuntu 网络配置 ip dns
- VMware Ubuntu14.10 配置静态IP
- Ubuntu Server 12.04(14.04) 静态IP简洁配置
- VMware(网络连接-linux 的ip配置-主从机间共享文件夹)--转载
- vmware ubuntu系统配置,网络配置
- vmware中给Ubuntu配置固定的ip
- WIN7下VMware+Ubuntu配置上网(对无线网络也有效)
- WIN8.1上VMWare10虚拟机安装Ubuntu 14.04,安装JDK和SDK以及环境变量配置
- VMWare 下新装Ubuntu 网络配置(上网、静态IP)
- VMware下ubuntu14.04安装和网络设定
- ubuntu在VMware的网络配置
- Win7 VMware安装ubuntu网络配置联网
- 关于windows与vmware 10.0下ubuntu网络配置总结
- ubuntu 12.04 以固定 IP 地址连接网络并配置DNS
- 复制虚拟机vmware centos搭建集群节点过程中网络配置eth0和eth1遇到的问题以及NAT模式下虚拟机静态IP配置方法
- vmware下ubuntu的网络桥接配置