Centos 6 Server do Bond mode=6

Source: Internet
Author: User


Generally I have seen the company has to do mode=4, next I want to practice is to do mode=6 a mode (Bonding mode:adaptive load Balancing)



System environment:

$ Cat/etc/issuecentos Release 6.7 (Final) Kernel \ r on an \m


Need a bond port custom created

$ cat/etc/sysconfig/network-scripts/ifcfg-bond0 device=bond0bonding_opts= "mode=6 miimon=100" BOOTPROTO=noneONBOOT= Yesipaddr=netmask=255.255.255.0gateway=userctl=no


Change the configuration of eth0 and eth0

$ cat/etc/sysconfig/network-scripts/ifcfg-eth0device=eth0bootproto=noneonboot=yesmaster=bond0slave=yesuserctl= No
$ cat/etc/sysconfig/network-scripts/ifcfg-eth1device=eth1bootproto=noneonboot=yesmaster=bond0slave=yesuserctl= No



When you create a file and write a single line of configuration

$ cat/etc/modprobe.d/bonding.conf alias bond0 bonding




Note that you must load the bonding module, which is usually loaded by default. You can use the following command to view

$ lsmod | grep bondingbonding 131724 0


Load command (no need to hit, play also relationship)

Modprobe bonding



Restart the NIC/etc/init.d/network restart


Test command:

Ifocnfig-a

Cat/proc/net/bonding/bond0

Important To view information about network traffic

$ cat/proc/net/bonding/bond0

Ethernet Channel Bonding driver:v3.7.1 (April 27, 2011)


Bonding mode:adaptive Load Balancing

Primary Slave:none

Currently Active Slave:eth1

MII Status:up

MII Polling Interval (ms): 100

Up Delay (ms): 0

Down Delay (ms): 0


Slave Interface:eth0

MII Status:up

speed:1000 Mbps

Duplex:full

Link Failure count:0

Permanent HW Addr:24:6e:96:0b:35:b8

Slave Queue id:0


Slave interface:eth1

MII Status:up

speed:1000 Mbps

Duplex:full

Link Failure count:0

Permanent HW ADDR:24:6E:96:0B:35:B9

Slave Queue id:0


The above can see that the current active is eth1


Test experience:

1 Ifdown One of the mouths, one of them up (if it's slow and consistent ping bond address if slow may make the switch's convergence strategy relevant, and your network engineer to understand)


2 Direct reboot machine See if the bindings are also in effect also normal


Characteristics:

1 The MAC address of the bond port and the currently Active Slave NIC address sample being used

$ ifconfig-a |   Grep-i hwbond0 link encap:ethernet HWaddr 24:6e:96:0b:36:00 eth0 Link encap:ethernet HWaddr 24:6e:96:0b:36:01 eth1 Link encap:ethernet HWaddr 24:6e:96:0b:36:00


2 traffic is load-sharing

Bond port Flow =eth1 + eth0

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/7F/7F/wKioL1cgv42iG6x4AAAs9sZ6CZk091.png "title=" Bond.png "alt=" Wkiol1cgv42ig6x4aaas9sz6czk091.png "/>


3 do not have to do any configuration on the switch (mode=6 switch must not do port channel binding )



This article is from the "Tridewah operation and maintenance work Road" blog, please be sure to keep this source http://cuidehua.blog.51cto.com/5449828/1768388

Centos 6 Server do Bond mode=6

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.