忒有料

一个网卡怎么绑定多个ip 网卡设置教程分享

  # ifdown eth0

  # ifup eth0

  # ifconfig

  这样你就可以看到eth0和eth0:0两个网卡了。

  二、适合绑定的ip数量较多的情况:

  格式:ifcfg-ethx-rangex

  # cd /etc/sysconfig/network-script

  # cp ifcfg-eth0 ifcfg-eth0-range0

  # vi ifcfg-eth0-range0

  device=eth0-range0 ----------------->与文件名对应

  bootproto=yes

  hwaddr=00:01:6c:20:d3:f0

  onboot=yes

  netmask=255.255.255.0

  ipaddr_start=10.141.77.241 ----------------->起始ip地址

  ipaddr_end=10.141.77.245 ----------------->结束ip地址

  type=ethernet

  userctl=no

  ipv6init=no

  peerdns=yes

  修改完成,保存退出

  # ifdown eth0

  # ifup eth0

  # ifconfig

  这样你就可以看到eth0:0到和eth0:4五个网卡了。

分享
发评论

猜你喜欢

相关推荐

热门阅读

Copyright 2018 52FuQing.com
5