给linux配置静态IP
2016-09-23 18:41
330 查看
cd /etc/network
编辑interfaces文件
vi interfaces
auto eth0
#ifce eth0 inet dhcp
iface eth0 inet static
address 10.104.203.166
netmask 255.255.254.0
gateway 10.104.203.254
退出保存
运行命令:
ifdown eth0
ifup eth0
配置dns服务器
ubuntu 的dns服务器信息,放在 /etc/resolv.conf中,
添加dns服务器地址,如202.112.125.53,则在上述文件中加入
nameserver 202.112.125.53
小结:
只要按上面的步骤配置完,就能上网了,如果还不行就重启下机器试试
编辑interfaces文件
vi interfaces
auto eth0
#ifce eth0 inet dhcp
iface eth0 inet static
address 10.104.203.166
netmask 255.255.254.0
gateway 10.104.203.254
退出保存
运行命令:
ifdown eth0
ifup eth0
配置dns服务器
ubuntu 的dns服务器信息,放在 /etc/resolv.conf中,
添加dns服务器地址,如202.112.125.53,则在上述文件中加入
nameserver 202.112.125.53
小结:
只要按上面的步骤配置完,就能上网了,如果还不行就重启下机器试试
相关文章推荐
- linux 配置静态IP 弹出eth0 失败
- linux 配置静态ip
- Linux下自动获取和静态配置IP的方法
- 1 weekend110的Linux带图形系统安装 + 网络配置 + 静态IP设置
- linux系统设置静态IP 查看网卡配置文件
- 在linux系统下单网卡的双静态IP配置
- Linux下的静态IP配置【weber出品】
- 在linux下配置静态IP
- linux 配置静态IP
- Linux配置静态IP
- 使用linux作为服务器,配置静态ip
- Hadoop学习笔记_linux网络配置及静态ip设置
- Linux配置静态ip
- linux设置开机启动网关且配置静态IP
- Linux下配置静态IP 设置DNS和主机名
- 详述Linux配置静态IP、设置DNS和主机名
- Linux操作系统下配置静态IP上网
- linux配置静态IP
- Linux 配置静态IP
- 【Linux】VMware虚拟机中如何配置静态IP