centos ip bonding 一个网卡多个ips,多个网口一个ip
1,配置一个网卡多ips的情况cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0:0DEVICE="eth0"TYPE="Ethernet"UUID=""ONBOOT="yes"NM_CONTROLLED="yes"BOOTPROTOCOL="static"IPADDR=""NETMASK=""GATEWAY=""或者ifconfig eth0:0 ip netmask uproute add default gwroute del default gw2,多网卡绑定一个ip2.1 vim /etc/sysconfig/network-scripts/ifcfg-bond0DEVICE=bond0IPADDR=NETWORK=10.114.100.254NETMASKuserctl=noBOOTPROTO=noneONBOOT=yes2.2 vi /etc/sysconfig/network-scripts/ifcfg-eth0 仅仅有如下infosDEVICE=eth0 USERCTL=noONBOOT=yesMASTER=bond0SLAVE=yesBOOTPROTO=none2.3 vi /etc/sysconfig/network-scripts/ifcfg-eth1DEVICE=eth1USERCTL=noONBOOT=yesMASTER=bond0SLAVE=yesBOOTPROTO=none2.4 vim /etc/modprobe.conf 添加如下信息alias bond0 bonding 0ptions bond0 mode=blance-alb miimon=1002.5执行modprobe bonding && service restart && less /proc/net/bonding/bond0 posted on 2015-01-19 17:03 阅读( ...) 评论( ...)