首页 > 系统服务 > 详细

【Ubuntu 14.04】修改网络地址

时间:2015-07-07 07:07:32      阅读:159      评论:0      收藏:0      [点我收藏+]

// 修改网络地址

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】修改网络地址

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!