首页 > 系统服务 > 详细

ubuntu系统下设置静态IP

时间:2016-02-24 12:31:40      阅读:163      评论:0      收藏:0      [点我收藏+]

改动 /etc/network/interfaces文件 加入下面内容


# The loopback network interface

auto lo eth0
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet static
        address 192.168.0.200
        netmask 255.255.255.0
        gateway 192.168.0.1

allow-hotplug eth0:1
iface eth0:1 inet static
        address 192.168.1.100
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.1

ubuntu系统下设置静态IP

原文:http://www.cnblogs.com/mengfanrong/p/5212387.html

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