Basis RHEL6 Double NIC Binding bond

Source: Internet
Author: User
B o n d i n g i n T e R f a C e s/etc/sysconfig/network-scripts/ ifcfg-bond0Interface configuration file device=bond0 ipaddr=192.168.1.1 netmask=255.255.255.0 gateway=192.168.1.254 onboot=yes Bootproto=none userctl=no nm_controlled=no bonding_opts= "miimon=x mode=x" #bonding parameters separated by spaces "description: mi Imon=100 Miimon refers to how long time to check the network, the Unit is MS (milliseconds) this side of 100, is 100ms, that is, 0.1 seconds means that if there is a network disconnection, will be in 0.1 seconds automatic backup mode, there are seven kinds (0~6) mode=0: Balanced load mode, There is automatic backup, but need "Switch" support and settings. Mode=1: Automatic standby mode, if one line is disconnected, the other lines will be automatically prepared for assistance. MODE=4:LACP is referred into Linux as bonding mode 4 => so you can also use Bond LACP mode=6: Balanced load mode, there is automatic backup, do not have "Switch" support and settings. For example, if two Ethernet interfaces are being channel bonded, both eth0and eth1May look like the following example:device=ethn bootproto=none onboot=yes master=bond0 slave=yes userctl=no NM_CONTROL Led=no recommends that you do not specify a MAC address, which can be # commented. To ensure this module is loaded when the channel bonding interface be brought up, create a new file as root named bonding.confIn the /etc/modprobe.d/Directory alias Bond N bonding Note:Do not add nm_controlled = No, will be netmanager monitored, resulting in two ports Faild,bond prompt "Bond0 connection ativation Failed:device not managed by NetworkManager "

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.