zoukankan      html  css  js  c++  java
  • 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
     

    参考:

    https://www.centos.org/docs/5/html/5.1/Deployment_Guide/s3-modules-bonding-directives.html
    https://www.kernel.org/doc/Documentation/networking/bonding.txt
    https://access.redhat.com/documentation/zh-CN/Red_Hat_Enterprise_Virtualization/3.5/html/Installation_Guide/sect-Bonding.html#Bonding_Logic_in_Red_Hat_Enterprise_Virtualization

  • 相关阅读:
    NSURLConnection的异步请求方式
    <iOS>关于Xcode上的Other linker flags
    使用十六进制色值表示UIColor
    kubernetes & docker
    01 docker的安装与基本使用
    08 数组
    07 grep 正则
    06 信号处理和expect
    05 函数
    04 流程控制
  • 原文地址:https://www.cnblogs.com/flashBoxer/p/9568902.html
Copyright © 2011-2022 走看看