Ubuntu下单网卡多IP地址的配置
2014-03-17 18:48
288 查看
打开网络配置文件
如下添加多IP即可
保存后使用命令:
#sudo /etc/init.d/networking restart
让配置生效
参考:
http://leohot.blog.163.com/blog/static/1348656022013030114332337/
http://www.blogjava.net/zhyiwww/archive/2010/02/20/313476.html
/etc/network/interfaces
如下添加多IP即可
# The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address 8.8.8.2 netmask 255.255.255.248 gateway 8.8.8.1 要注意这里,多个不同IP段,只要1个gateway配置即可,其他IP不需要配置gateway auto eth0:0 iface eth0:0 inet static address 8.8.8.3 netmask 255.255.255.248 auto eth0:1 iface eth0:1 inet static address 6.6.6.130 注意这里,虽然这是不同的IP段,但是不需要配置gateway,只需要配置netmask即可 netmask 255.255.255.224
保存后使用命令:
#sudo /etc/init.d/networking restart
让配置生效
参考:
http://leohot.blog.163.com/blog/static/1348656022013030114332337/
http://www.blogjava.net/zhyiwww/archive/2010/02/20/313476.html
相关文章推荐
- Ubuntu下单网卡多IP地址的配置
- Ubuntu下单网卡多IP地址的配置
- Ubuntu下单网卡多IP地址的配置
- ubuntu网卡配置固定ip
- 整理在ubuntu重装之后配置过程(6G内存,修改网卡物理地址,修改hosts,codeblocks,eclipse,jdk,配置eclipse编译python)
- Ubuntu 网卡ip地址设置参考
- Ubuntu下单网卡绑定多个IP
- 整理在ubuntu重装之后配置过程(6G内存,修改网卡物理地址,修改hosts,codeblocks,eclipse,jdk,配置eclipse编译python)
- centos 和 ubuntu 下单网卡设置多个IP
- Linux下单网卡配置多IP其实可以这样简单
- Ubuntu IP系统配置文件使用命令设置地址
- Ubuntu下配置虚拟IP地址
- [工作笔记]一个ubuntu配置双网卡双网段IP走不同网关的脚本
- Ubuntu下配置虚拟IP地址
- 在 Ubuntu 15.10 上为单个网卡设置多个 IP 地址
- Ubuntu 下 IP 地址与DNS配置
- Linux/UNIX系统下单网卡配置多IP方法
- CentOS下单网卡配置双IP的解决办法
- ubuntu网卡ip的配置
- 实战Ubuntu下单网卡绑定多IP