• 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日
  • 相关阅读:
    这些HTML、CSS知识点,面试和平时开发都需要 No1-No4(知识点:HTML、CSS、盒子模型、内容布局)
    skywalking在 .net Framework客户端使用
    websoket的扫码登陆简单用法
    微信授权登陆nginx代理
    本地下载文件的方法(兼容下载图片和视频)
    Vue-给对象新增属性(使用Vue.$set())
    浏览器解析URL的过程
    promise es6,es7
    filter全局方法的写法
    监听滚动条
  • 原文地址:https://www.cnblogs.com/zphj1987/p/13575240.html
Copyright © 2020-2023  润新知