首页 > 系统服务 > 详细

ubuntu 绑定固定ip

时间:2017-06-06 15:38:57      阅读:287      评论:0      收藏:0      [点我收藏+]

cd /etc/network

sudo vi interfaces

在文件中输入如下内容:

auto eth0

iface eth0 inet static

address 192.168.1.1

netmask 255.255.255.0

gateway 192.168.1.254

 

auto eth0:0

iface eth0:0 inet static

address 192.168.1.2

netmask 255.255.255.0

gateway 192.168.1.254

ubuntu 绑定固定ip

原文:http://www.cnblogs.com/zmingh/p/6951655.html

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