标签:ubuntu 14.04 ip dns interface
// 修改网络地址
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
标签:ubuntu 14.04 ip dns interface
原文地址:http://huangchao.blog.51cto.com/10446378/1671467