码迷,mamicode.com
首页 > 其他好文 > 详细

CentOS 6 / RHEL 6配置bonding 4模式

时间:2018-09-01 12:29:43      阅读:193      评论:0      收藏:0      [点我收藏+]

标签:dev   lan   gre   user   模式   pre   trunk   add   proc   

实现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模式

标签:dev   lan   gre   user   模式   pre   trunk   add   proc   

原文地址:https://www.cnblogs.com/flashBoxer/p/9568902.html

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