zoukankan      html  css  js  c++  java
  • Linux6配置bond链路聚合

    适用于RedHat6以及CentOS6

    系统 网卡 bond地址 bond模式 bond功能
    Centos6.9 eth0: 192.168.56.11 eth1:192.168.56.12 192.168.56.100 模式0 负载均衡
    //1.创建绑定网卡配置文件
    [root@xuliangwei ~]# cat ifcfg-bond0
    DEVICE=bond0
    TYPE=Ethernet
    ONBOOT=yes
    USERCTL=no
    BOOTPROTO=static
    IPADDR=192.168.56.200
    NETMASK=255.255.255.0
    GATEWAY=192.168.56.2
    DNS1=192.168.56.2
    BONDING_OPTS="mode=0 miimon=50" #如果使用模式1将mode修改为1即可
    
    //2.修改eth0和eth1网卡配置文件
    [root@xuliangwei ~]# vim /etc/sysconfig/network-scripts/ifcfg-eth0
    DEVICE=eth0
    TYPE=Ethernet
    ONBOOT=yes
    USERCTL=no
    BOOTPROTO=none
    MASTER=bond0
    SLAVE=yes
    [root@xuliangwei ~]# vim /etc/sysconfig/network-scripts/ifcfg-eth1
    DEVICE=eth1
    TYPE=Ethernet
    ONBOOT=yes
    USERCTL=no
    BOOTPROTO=none
    MASTER=bond0
    SLAVE=yes
    
    //3.添加驱动支持bond0
    [root@xuliangwei ~]# vim /etc/modprobe.d/bonding.conf
    alias bond0 bonding
    
    别妄自尊大! 别妄自菲薄! QQ技术交流群:Linux架构师之路~ 471443208
  • 相关阅读:
    系统设计5:Google三剑客
    lintcode亚麻九题
    设计模式17:单例模式
    设计模式16:迭代器模式
    设计模式15:组合模式
    476. Number Complement
    561. Array Partition I
    627. Swap Salary
    617. Merge Two Binary Trees
    728. Self Dividing Numbers
  • 原文地址:https://www.cnblogs.com/oldxu/p/14688719.html
Copyright © 2011-2022 走看看