CentOS IPs Bonding

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.