zoukankan      html  css  js  c++  java
  • ubuntu配置bonding 武汉

    如果节点上有多个网络接口时可以通过bonding将多个网络接口虚拟为一个网络接口,bonding可以提供高可用及负载均衡功能,从而提高节点的网络接口性能及可用性。

    配置单bond

    一、使用如下命令安装

    apt-get install ifenslave-2.6
    

    二、配置bonding

    修改网络接口配置文件/etc/network/interfaces

    配置一个bond

    auto lo
    iface lo inet loopback
        
    auto eth8
    iface eth8 inet manual
    bond-master bond0
        
    auto eth7
    iface eth7 inet manual
    bond-master bond0
        
    auto eth6
    iface eth6 inet manual
    bond-master bond0
        
    auto eth5
    iface eth5 inet manual
    bond-master bond0
        
    auto eth0
    iface eth0 inet static
    address 192.168.8.102
    netmask 255.255.0.0
    gateway 192.168.1.1
    dns-nameservers 8.8.8.8
        
    auto bond0
    iface bond0 inet static
    address 10.0.0.102
    netmask 255.255.0.0
        
    bond-slaves none
    bond-miimon 100
    bond-mode balance-alb
    

    配置双bond

    auto lo
    iface lo inet loopback
        
    auto eth2
    iface eth2 inet manual
    bond-master bond0
        
    auto eth3
    iface eth3 inet manual
    bond-master bond0
        
    auto eth4
    iface eth4 inet manual
    bond-master bond0
        
    auto eth0
    iface eth0 inet static
    address 10.0.0.103
    netmask 255.255.0.0
        
    auto bond0
    iface bond0 inet static
    address 192.168.9.103
    netmask 255.255.0.0
    gateway 192.168.1.1
    dns-nameservers 8.8.8.8
    bond-slaves none
    bond-miimon 100
    bond-mode balance-alb
        
    auto eth5
    iface eth5 inet manual
    bond-master bond1
        
    auto eth6
    iface eth6 inet manual
    bond-master bond1
        
    auto eth7
    iface eth7 inet manual
    bond-master bond1
        
    auto bond1
    iface bond1 inet static
    address 10.1.0.103
    netmask 255.255.0.0
    bond-slaves none
    bond-miimon 100
    bond-mode balance-alb
    

    配置过程需要按照顺序配置,配置网卡,然后写bond的配置,两组错开就可以了

    更新历史

    why when
    创建 2011年12月30日
    更新 2019年12月9日
  • 相关阅读:
    PHP (20140519)
    PHP (20140516)
    js(20140517)在JS方法中返回多个值的三种方法
    PHP (20140515)
    PHP (20140514)
    Java内网发送邮件
    每日一“酷”之Cookie
    每日一“酷”之Queue
    每日一“酷”之pprint
    每日一“酷”之copy
  • 原文地址:https://www.cnblogs.com/zphj1987/p/13575240.html
Copyright © 2011-2022 走看看