码迷,mamicode.com
首页 > Web开发 > 详细

Configuring Network Interface Bonding

时间:2016-11-10 21:54:33      阅读:190      评论:0      收藏:0      [点我收藏+]

标签:linux   bonding   

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 in 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 will 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


[root@JerryDai 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"


[root@JerryDai network-scripts]$ cat ifcfg-eth0

    DEVICE=eth0

    TYPE=Ethernet

    ONBOOT=yes

    NM_CONTROLLED=no

    BOOTPROTO=none

    MASTER=bond0

    SLAVE=yes

    

[root@JerryDai network-scripts]$ cat ifcfg-eth1

    DEVICE=eth1

    TYPE=Ethernet

    ONBOOT=yes

    NM_CONTROLLED=no

    BOOTPROTO=none

    MASTER=bond0

    SLAVE=yes


Configuring Network Interface Bonding

标签:linux   bonding   

原文地址:http://jerrydai.blog.51cto.com/12141841/1871526

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!