Create a Team in RHEL7

SOLUTION VERIFIED

Environment

  • Red Hat Enterprise Linux 7
  • NetworkManager
  • teamd

Issue

  • Would like to configure a basic Team in RHEL 7.
  • Need to know how to make team0 with RHEL.

Resolution

  For steps to use Teaming with VLANs, please see How to configure a VLAN on top of a team with NetworkManager (nmcli) in RHEL7.

  • Create the team interface connection profile with nmcli. The following command will create a connection profile named myteam which will provide a team device named team0. The team mode will be activebackup and ethtool link monitoring will be used:

    ### With static IP addressing:
    # nmcli connection add type team con-name myteam ifname team0 config ‘{"runner": {"name": "activebackup"}, "link_watch": {"name": "ethtool"}}‘ ip4 192.168.0.100/24 gw4 192.168.0.1
    
    ### With DHCP addressing:
    # nmcli connection add type team con-name myteam ifname team0 config ‘{"runner": {"name": "activebackup"}, "link_watch": {"name": "ethtool"}}‘
  • Create a profile for each team port (slave). The master parameter must refer to the team device name, not the team profile name. In the example below the interfaces ens10 and ens15 are added to team0:
    # nmcli connection add type team-slave con-name myteam-port1 ifname ens10 master team0
    # nmcli connection add type team-slave con-name myteam-port2 ifname ens15 master team0
  • Confirm the team is working as expected with the teamdctl program. At a minimum, ensure the correct runner is in use or connectivity may not work:
    # teamdctl team0 state
    setup:
      runner: activebackup
    ports:
      ens10
        link watches:
          link summary: up
          instance[link_watch_0]:
            name: ethtool
            link: up
            down count: 0
      ens15
        link watches:
          link summary: up
          instance[link_watch_0]:
            name: ethtool
            link: up
            down count: 0
    runner:
      active port: ens10
  • Other connection properties such as DNS servers, search domains, and static routes can be set after the profile has been created. Use the nmcli connection show command to see all the available properties for a connection profile. Use the nmcli connection modify command to set any given property. All properties and their possible values are described in the nm-settings man page.
    # nmcli connection show <profile name>
    
    # nmcli connection modify <profile name> <property> <value>

Root Cause

  • Please see the RHEL 7 Networking Guide chapter on Teaming and the teamd.conf man page for more information on configuring Teaming and the different modes and configuration options which are available:

Diagnostic Steps

  • It is best to remove or disable any existing connection profiles which correspond to the interfaces to be used in the team. This ensures the right connection profile is always used:

    • The following command will list all the existing connection profiles (connection.id) and the interface (connection.interface-name, if set) they are associated with. If there are any matches for the interfaces to be used, delete the matching profile (or set the profile‘s connection.autoconnect property to no and note the profile name so it is not accidentally reused):
    # for connection in $(nmcli -t --fields uuid con) ; do echo ; nmcli con show uuid $connection | egrep "connection.id|connection.interface-name" ; done
    • If an existing profile needs to be removed, do so with the following command where $PROFILE is the connection.id seen in the output from the command above:
    # nmcli connection del "$PROFILE"
时间: 2024-12-13 18:09:08

Create a Team in RHEL7的相关文章

Codeforces Round #544 (Div. 3) C. Balanced Team [暴力剪枝]

You are a coach at your local university. There are n n students under your supervision, the programming skill of the i i -th student is a i ai . You have to create a team for a new programming competition. As you know, the more students some team ha

执行计划-数据访问方式(全表扫描与4种索引的方式)

执行计划 Oracle执行计划的相关概念: Rowid:系统给oracle数据的每行附加的一个伪列,包含数据表名称,数据库id,存储数据库id以及一个流水号等信息,rowid在行的生命周期内唯一. Recursive sql:为了执行用户语句,系统附加执行的额外操作语句,譬如对数据字典的维护等. Row source(行源):oracle执行步骤过程中,由上一个操作返回的符合条件的行的集合. Predicate(谓词):where后的限制条件. Driving table(驱动表):又称为连接的

Hibernate映射set与List

1.对于set类型,如果集合中的元素是简单地类型,如字符串型,set使用另外一种映射方式: team类: 1 import java.util.HashSet; 2 import java.util.Set; 3 4 public class Team 5 { 6 private String id; 7 8 private String teamName; 9 10 private Set students = new HashSet(); 11 12 public String getId(

App Distribution Guide (二)

Configuring Your Xcode Project for Distribution  You can edit your project settings anytime, but some settings are necessary during development. Others are recommended when you distribute your app for beta testing and required when you submit your ap

Oracle必备语句

Oracle_11g常用SQL语句(高级工程师必备) Oracle_11g常用SQL语句(高级工程师必备) -- 退出 SQLPLUSexit; -- 修改 system(sys) 账号密码SQLPLUS /NOLOGCONN /AS SYSDBAALTER USER SYSTEM IDENTIFIED BY tarring; -- 清除 SQLPLUS 屏幕CLEAR SCREEN;CL SCR; -- 查看数据文件位置SELECT NAME FROM v$datafile; -- 查看控制文

湖南省大学生程序设计竞赛系统设计

背景:本人一直学习DBA数据库维护技能,出于同学需要,充当数据库设计开发,第一次与同学一起完成了一套小型管理系统的设计开发.自己充当数据库设计者,记录下来自己作为留念.  (相关的UML图已省略) 一. 引言 1.1项目背景 湖南省每年都要举行大学生程序设计竞赛,每次竞赛时,由组委会发布竞赛要求,各大高校分别对自己学校的队伍进行报名. 传统的以人工方式为主进行该项赛事的报名工作,每年将耗费大量的人力物力,同时还伴随着各种突发问题.如果通过计算机网络将竞赛组委会和各大高校联系在一起,使用网络发布竞

GitHub的多人协同开发配置

GitHub For Windows 下载地址:https://windows.github.com/ 基本的注册登录就不细讲了. 在源代码管理上,最重要的就是仓库了.仓库这一概念很容易理解,所谓仓库,就是存放东西的地方,因为仓库就是我们存放源码的地方. 下载安装好GitHub之后,在左上角就用一个+符号,通过这个就可以完成仓库的创建和迁出.然后右键该仓库->点击Open in Explorer,就可以在文件资源管理器中打开该项目 当我们对项目进行了修改(添加文件,修改文件,删除文件等),就会出

控制器的设计与实现(五)

创建army实体模型类的控制器armyController 添加了队伍模型的添加,编辑,详情,删除几种方法  相关代码如下 1 using System; 2 using System.Collections.Generic; 3 using System.Data; 4 using System.Linq; 5 using System.Web; 6 using System.Web.Mvc; 7 using 排球计分规则.Models; 8 9 namespace 排球计分规则.Contro

Wrapping calls to the Rational Functional Tester API——调用Rational Functional Tester封装的API

转自:http://www.ibm.com/developerworks/lotus/library/rft-api/index.html The Rational GUI automation tool has a wonderful recorder feature that records a user's activities and automatically generates code that simulates these activities. You can then im