Configuring Network Interface Bonding

Source: Internet
Author: User

1. Abount Bonding

The Linux bonding driver provides a method for aggregating

Multiple network interfaces into a single logical "bonded" interface.

The behavior of the bonded interfaces depends upon the mode; Generally

Speaking, modes provide either hot standby or load balancing services.

Additionally, link integrity monitoring may be performed.



Requirements for bonding

1. Ethtool support on the base drivers for retrieving

The speed and duplex of each slave.


2. A switch that supports IEEE 802.3ad Dynamic link

Aggregation.


Most switches would require some type of configuration

To enable 802.3AD mode.


2. Persistent bonding Configuration


Add in the/etc/modprobe.d/dist.conf file

Alias Bond0 Bonding

Options Bond0 mode=1 miimon=30


[email protected] network-scripts]$ cat ifcfg-bond0

Device=bond0

Type=ethernet

Onboot=yes

Nm_controlled=no

Bootproto=none

ipaddr=192.168.1.100

Prefix=24

gateway=192.168.1.1

dns1=114.114.114.114

Defroute=yes

Ipv4_failure_fatal=yes

Ipv6init=no

Name= "System bond0"


[email protected] network-scripts]$ cat Ifcfg-eth0

Device=eth0

Type=ethernet

Onboot=yes

Nm_controlled=no

Bootproto=none

Master=bond0

Slave=yes


[email protected] network-scripts]$ cat Ifcfg-eth1

Device=eth1

Type=ethernet

Onboot=yes

Nm_controlled=no

Bootproto=none

Master=bond0

Slave=yes


Configuring Network Interface Bonding

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.