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

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.