首页 > Web开发 > 详细

Configuring Network Interface Bonding

时间:2016-11-10 21:53:57      阅读:223      评论:0      收藏:0      [点我收藏+]

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!