zoukankan      html  css  js  c++  java
  • bond-team

    nmcli con add type team con-name team0 ifname team0 config '{"runner":{"name": "roundrobin"}}'
    nmcli con modify team0 ipv4.address '192.168.8.10/24' ipv4.gateway '192.168.8.254' ipv4.dns '221.11.1.67'
    nmcli con modify team0 ipv4.method manual
    nmcli con add type team-slave ifname enp28s0f0 master team0
    nmcli con add type team-slave ifname enp28s0f0 master team0
    service network restart
    teamdctl team0 state


    nmcli connection up team-slave-em1
    nmcli connection up team-slave-em2

    teamnl team0 ports

    teamnl team0 options


    下面正式开始使用命令来配置bond

    nmcli con add type bond ifname bond0 mode balance-rr #(balance-rr负载均衡)

    nmcli con add type bond-slave ifname enp2s0f0 master bond0 (enp20f0网卡名字)

    nmcli con add type bond-slave ifname enp2s0f1 master bond0(enp2sof1网卡名字)

    到此为止bond0已经配置完成
    [root@localhost network-scripts]# vim ifcfg-bond-bond0
    [root@localhost network-scripts]# /etc/init.d/network restart

    DEVICE=em1
    USERCTL=no
    ONBOOT=yes
    MASTER=bond0 # 需要和上面的ifcfg-bond0配置文件中的DEVICE的值对应 SLAVE=yes
    BOOTPROTO=none

    DEVICE=em2
    USERCTL=no
    ONBOOT=yes
    MASTER=bond0 # 与 ifcfg-bond0 配置文件中的DEVICE的值对应 SLAVE=yes
    BOOTPROTO=none


    [root@localhost ~]# cd /etc/sysconfig/network-scripts/

    mkdir /tmp/wangka #在/tmp下面创建wangka的目录用户备份网卡配置文件

    mv enp2s0f0 enp2s0f1 /tmp/wangka

    将enp2s0f0 和 enp2s0f1 移除到 /tmp/wangka目录中,因为使用命令做Bond的时候会重新生成配置文件

    下面正式开始使用命令来配置bond

    nmcli con add type bond ifname bond0 mode balance-rr #(balance-rr负载均衡)

    nmcli con add type bond-slave ifname enp2s0f0 master bond0 (enp20f0网卡名字)

    nmcli con add type bond-slave ifname enp2s0f1 master bond0(enp2sof1网卡名字)

    到此为止bond0已经配置完成

    现在需要配置进入配置文件修改配置文件

    [root@localhost network-scripts]# vim ifcfg-bond-bond0

  • 相关阅读:
    Bootstrap自带的chart插件
    工作笔记2
    SqlFunctions 可以在EF种调用sqlserver的函数
    工作笔记1
    Asp.Net 导出Excel数据文件
    FileUpload上传与下载
    K2工作流的使用
    跨服务器导入数据SQL语句及其问题解决方案
    web.xml listener和event
    web-app子元素
  • 原文地址:https://www.cnblogs.com/createyuan/p/10714976.html
Copyright © 2011-2022 走看看