CentOS 6 / RHEL 6配置bonding 4模式

Posted flashboxer

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CentOS 6 / RHEL 6配置bonding 4模式相关的知识,希望对你有一定的参考价值。

实现bond 802.3ad or 4 模式:(IEEE 802.3ad),

    方式:创建一个整合的组,这个组会共享网速和网络双工(duplex)设置。模式 4 会根据 IEEE 802.3ad 标准使用活动组中的所有网络接口

    1、需要交换机配合配置,

   2、两端负载均衡模式:基于源IP和目的IP

 

系统配置:

  

/etc/modprobe.d/bonding.conf 

alias bond1 bonding
options bond1 mode=4 miimon=100 lacp_rate=fast xmit_hash_policy=layer2+3



/etc/sysconfig/network-scripts/ifcfg-eth1

DEVICE=eth1
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
MASTER=bond1
SLAVE=yes


/etc/sysconfig/network-scripts/ifcfg-eth2

DEVICE=eth2
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
MASTER=bond1
SLAVE=yes


/etc/sysconfig/network-scripts/ifcfg-bond1 

DEVICE=bond1
IPADDR=IP地址
NETMASK=子网掩码
BROADCAST=广播地址
GATEWAY=网关
ONBOOT=yes
BOOTPROTO=static
USERCTL=no
TYPE=Ethernet

 

检查配置:

cat /proc/net/bonding/bond1


Ethernet Channel Bonding Driver: v3.6.0 (September 26, 2009) Bonding Mode: IEEE 802.3ad Dynamic link aggregation Transmit Hash Policy: layer2+3 (2) MII Status: up MII Polling Interval (ms): 100 Up Delay (ms): 0 Down Delay (ms): 0 802.3ad info LACP rate: fast Aggregator selection policy (ad_select): stable Active Aggregator Info: Aggregator ID: 1 Number of ports: 2 Actor Key: 17 Partner Key: 1073 Partner Mac Address: 3c:e8:24:e8:df:20 Slave Interface: eth1 MII Status: up Speed: 1000 Mbps Duplex: full Link Failure Count: 0 Permanent HW addr: 80:18:44:e2:61:9d Aggregator ID: 1 Slave queue ID: 0 Slave Interface: eth2 MII Status: up Speed: 1000 Mbps Duplex: full Link Failure Count: 0 Permanent HW addr: 80:18:44:e2:61:9e Aggregator ID: 1 Slave queue ID: 0

 

交换机的配置:

interface Eth-Trunk4
 port link-type access
 port default vlan 301
 mode lacp
 

 

参考:

技术分享图片

 




以上是关于CentOS 6 / RHEL 6配置bonding 4模式的主要内容,如果未能解决你的问题,请参考以下文章

PYENV for RHEL 6

PYENV for RHEL 6

RHEL5.6的双网卡配置

rhel 配置centos源

centos 6.0的内核版本是多少

RHEL7/CentOS7基本配置 𣧲