CentOS IP Bonding One network card multiple IPs, multiple ports one IP
1, configuring a NIC multi-IPS case
cp/etc/sysconfig/network-scripts/ifcfg-eth0/etc/sysconfig/network-scripts/ifcfg-eth0:0
Device= "Eth0"
Type= "Ethernet"
Uuid= ""
onboot= "Yes"
Nm_controlled= "Yes"
Bootprotocol= "Static"
Ipaddr= ""
Netmask= ""
Gateway= ""
or ifconfig eth0:0 IP netmask up
Route add default GW
Route del default GW
2, multiple network adapters bind an IP
2.1 Vim/etc/sysconfig/network-scripts/ifcfg-bond0
Device=bond0
Ipaddr=
network=10.114.100.254
NETMASK
Userctl=no
Bootproto=none
Onboot=yes
2.2 Vi/etc/sysconfig/network-scripts/ifcfg-eth0 only have the following infos
Device=eth0
Userctl=no
Onboot=yes
Master=bond0
Slave=yes
Bootproto=none
2.3 vi/etc/sysconfig/network-scripts/ifcfg-eth1
Device=eth1
Userctl=no
Onboot=yes
Master=bond0
Slave=yes
Bootproto=none
2.4 vim/etc/modprobe.conf Add the following information alias bond0 bonding 0
ptions bond0 mode=blance-alb miimon=100
2.5 Execute modprobe Bonding && service restart && less/proc/net/bonding/bond0
CentOS IPs Bonding