Several ways to set up Bond

Source: Internet
Author: User

    • Bond related information


View Server Bond info: # cat/proc/net/bonding/*


    • How to set the bond script

If you encounter the following error message, you can use the following methods:

Bringing up interface Bond0:device BOND0 does no seem to be present, delaying initialization.


Workaround:

# modprobe Bonding

# lsmod |grep Bonding


After executing these two lines, you can support bond.

# cat/etc/rc.d/network.sh//Add this scripts to/etc/rc.local for automatic start


======================

#!/bin/bash


aip= "10.10.30.26"

Wg= "10.10.30.254"


Ifconfig eth0 up

Ifconfig eth1 up

Modprobe bonding mode=1 miimon=100 primary=eth0

Ifconfig bond0 $AIP netmask 255.255.255.0

Ifenslave bond0 eth0 eth1

Sleep 1


IP ro del default

IP ro add default via $Wg Dev bond0

Sleep 1

Ifdown eth0

Ifconfig eth0 up


    • Bond file Configuration setting method

# cat/etc/sysconfig/network-scripts/ifcfg-bond0

Device= "Bond0"

Bootproto=none

ipaddr=10.10.1.200

netmask=255.255.0.0

gateway=10.0.0.254

Nm_controlled=no

Onboot=yes

Userctl=no

bonding_opts= "mode=1 miimon=100" #注意在mode =1 case, if you need to specify the primary network card, you need to add Primary=eth0


# CAT/ETC/SYSCONFIG/NETWORK-SCRIPTS/IFCFG-EM1

Device= "Em1"

Bootproto=none

Master=bond0

Slave=yes

Onboot=yes

Userctl=no

# CAT/ETC/SYSCONFIG/NETWORK-SCRIPTS/IFCFG-EM2

Device= "EM2"

Bootproto=none

Master=bond0

Slave=yes

Onboot=yes

Userctl=no


    • Dual bond file Configuration Setup mode

# cat/etc/sysconfig/network-scripts/ifcfg-bond0

Device=bond0

Onboot=yes

bonding_opts=miimon=100 mode=0

Bootproto=static

ipaddr=10.2.3.188

netmask=255.255.0.0

# CAT/ETC/SYSCONFIG/NETWORK-SCRIPTS/IFCFG-BOND1

Device=bond1

Onboot=yes

bonding_opts=miimon=100 mode=0

Bootproto=static

ipaddr=10.2.4.188

netmask=255.255.0.0


# CAT/ETC/SYSCONFIG/NETWORK-SCRIPTS/IFCFG-EM1

Device=em1

Type=ethernet

Onboot=yes

Bootproto=none

Slave=yes

Master=bond0

# CAT/ETC/SYSCONFIG/NETWORK-SCRIPTS/IFCFG-EM2

Device=em2

Type=ethernet

Onboot=yes

Bootproto=none

Slave=yes

Master=bond0

# CAT/ETC/SYSCONFIG/NETWORK-SCRIPTS/IFCFG-EM3

Device=em3

Type=ethernet

Onboot=yes

Bootproto=none

Slave=yes

Master=bond1

# CAT/ETC/SYSCONFIG/NETWORK-SCRIPTS/IFCFG-EM4

Device=em4

Type=ethernet

Onboot=yes

Bootproto=none

Slave=yes

Master=bond1


    • Bond error

ISSUE

Ethernet Channel Bonding Driver:v2.6.3-rh (June 8, 2005)

Bonding:Warning:either Miimon or Arp_interval and Arp_ip_target module

Parameters must be specified, otherwise bonding would not detect link failures!

See Bonding.txt for details.

Divert:allocating divert_blk for Bond0


Solution

Properly setup bonding alias in "/etc/modprobe.conf"


# # Setup Bond0 alias and set it ' s option in

# #/etc/modprobe.conf

##

# # Note:

# # MIIMON=100 (msecs) [Media Independent Interface (MII) Link

Monitoring]

# # Mode=1 (Bond mode) ["1" is "active-backup" mode]

##

##

Vi/etc/modprobe.conf

---Add the following to the end of the file---

Alias Bond0 Bonding

Options Bond0 miimon=100 mode=1



[[email protected] log]# grep bond0/etc/modprobe.conf

Alias Bond0 Bonding

Options Bond0 miimon=100 mode=1

Refer:http://kb.dbatoolz.com/tp/3359.bonding_either_miimon_or_arp_interval_and_arp_ip_target_module_must_be_specified.html


Http://www.2cto.com/os/201403/283742.html

This article is from the "Zhangdh Open Space" blog, so be sure to keep this source http://linuxblind.blog.51cto.com/7616603/1712460

Several ways to set up Bond

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.