Centos Bond Configuration

Source: Internet
Author: User

#Centos Bond

-CentOS 6.5 Bond

-eth0

-eth1

# Create Ifcfg-bond0

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

Device=bond0

Bootproto=none

Onboot=yes

ipaddr=10.58.11.11

netmask=255.255.255.0

network=10.58.11.0

gateway=10.58.11.254

Userctl=no

Name=bond0

# # # View Ifcfg-eth0

```
# Intel Corporation 82545EM gigabitethernet Controller (Copper) #网卡名字可注释
Device=eth0
Bootproto=static
#HWADDR =00:0C:29:A8:19:CB #MAC地址可以注释
Onboot=yes
Master=bond0
Slave=yes
Userctl=no
Ipv6init=no
```

# # # View Ifcfg-eth1

```
# Intel Corporation 82545EM gigabitethernet Controller (Copper) #网卡名字可注释
Device=eth1
Bootproto=static
Onboot=yes
#HWADDR =00:0c:29:a8:19:d5 #MAC地址可以注释
Master=bond0
Slave=yes
Userctl=no
Ipv6init=no
```

#创建或修改模块文件

Vim/etc/modprode.conf

#加载bongding module, the external virtual network interface device is BOND0, add the following 2 lines at the end

Alias Bond0 bongding

Options Bond0 mode=1 miimon=100

Miimon is the time interval unit of the link monitoring is milliseconds, miimon=100 means that every 100 milliseconds to detect connectivity between the NIC and the switch, such as the use of additional links to the general rule.
Mode=0 means load balancing, both NICs are working and need to be supported by the switch
Mode=1 means redundancy, Nic only one job, one problem enable additional
Mode=6 means load balancing, both NICs work without the need for a switch for support


# #添加自启动

/etc/rc.d/rc.local

Ifenslave bond0 eth0 eth1

# #检测

# # #重启网络服务

/etc/init.d/network restart

# # View BOND0 status

More/proc/net/bonding/bond0

# # #查看网口

Ifconfig-a

This article is from the "Trisha" blog, make sure to keep this source http://cuiruizhouok.blog.51cto.com/2909906/1694530

Centos Bond Configuration

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.