Ubuntu配置静态IP地址+上网
2012-12-30 18:02
357 查看
1. ~# gedit /etc/network/interfaces
将dhcp 一行屏蔽
添加和静态ip有关的参数
我修改后的文件如下:
2. ~#gedit /etc/resolv.conf
设置dns
我的配置文件如下:
3.执行下面两个命令,启用新设置
~#ifdown eth0
~#ifup eth0
将dhcp 一行屏蔽
添加和静态ip有关的参数
我修改后的文件如下:
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 #iface eth0 inet dhcp iface eth0 inet static address 192.168.1.192 netmask 255.255.255.0 gateway 192.168.1.1 nameserver 192.168.1.1
2. ~#gedit /etc/resolv.conf
设置dns
我的配置文件如下:
nameserver 192.168.1.1 nameserver 8.8.4.4 domain domain search domain
3.执行下面两个命令,启用新设置
~#ifdown eth0
~#ifup eth0
相关文章推荐
- ubuntu8.10 路由器上网静态IP地址的设置
- [伊达原创]ubuntu环境下实战河南网通ADSL上网全配置
- Ubuntu 12.04 server 配置无线上网
- 虚拟机ubuntu上网的配置过程
- virtualbox-Ubuntu网络配置上网,并且通过xshell登陆
- ubuntu配置静态ip 无法解决上网的解决方案
- 第三章:hadoop安装配置,jps命令不能使用。apt-get命令不能下载jdk,缺少依赖包,设置静态ip后不能上网,ubuntu防火墙,ssh无密码登录
- 如何自动获取IP地址及配置静态IP地址上网
- virtualbox中ubuntu配置静态ip地址及DNS
- ubuntu14.04静态ip地址与动态ip地址配置
- Ubuntu15.10 下配置有人USR-G401t 4G模块上网说明
- Ubuntu下双网卡配置静态路由上网
- Ubuntu 12.04 网络配置 Ubuntu静态IP Ubuntu上网配置
- ubuntu无线上网静态ip配置以及配置静态IP 之后无法正常上网的解决方案
- virtualbox 中虚拟机(ubuntu-12.10-server)桥接连接方式静态IP地址配置
- vmWare虚拟机下ubuntu配置代理上网
- VMWare虚拟机下为Ubuntu 配置静态IP上网(NAT方式)
- ubuntu 手动配置interface上网
- 关于ubuntu配置静态IP 无法正常上网的解决方案