【Ubuntu 14.04】修改网络地址

时间:2015-07-07 07:07:32   收藏:0   阅读:162

// 修改网络地址

root@ubuntu:/etc/network# vi /etc/network/interfaces

# 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


auto eth0

iface eth0 inet static

address 192.168.1.130

netmask 255.255.255.0

gateway 192.168.1.1


// 修改DNS

在上述配置文件里面,添加

dns-nameservers 8.8.8.8 // 或者其它ip


原文:http://huangchao.blog.51cto.com/10446378/1671467

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!