Configure a VLAN on top of a team with NetworkManager (nmcli) in RHEL7
SOLUTION VERIFIED
- September 13 2016 KB1248793
Environment
- Red Hat Enterprise Linux 7
- NetworkManager
- teamd
Issue
- Would like to configure a VLANs with Teaming in RHEL 7.
- Need to know how to make VLANs like team0.10 for a team0 device with RHEL and NetworkManager.
Resolution
For steps to use Teaming without VLANs, please see How to create a Team in RHEL7.
Create the team interface connection profile with
nmcli. The following command will create a connection profile namedmyteamwhich will provide a team device namedteam0. The team mode will beactivebackupandethtoollink monitoring will be used:# nmcli connection add type team con-name myteam ifname team0 config '{"runner": {"name": "activebackup"}, "link_watch": {"name": "ethtool"}}'Disable IPv4 and IPv6 addressing for the team connection profile. The connection must be brought up again for these changes to take effect. In the example below the connection profile name is
myteam:# nmcli connection modify myteam ipv4.method disable ipv6.method ignore
# nmcli connection up myteamCreate a profile for each team port (slave). The
masterparameter must refer to the team device name, not the team profile name. In the example below the interfacesens10andens15are added toteam0:# 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 team0Confirm the team is working as expected with the
teamdctlprogram. At a minimum, ensure the correctrunneris 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: ens10Create the VLAN connection profiles which will be on top of the new team device. The
devparameter must refer to the team device name, not the team profile name. The following command will create a connection profile namedmyteam-vlan123which will provide VLAN ID 123 on top of deviceteam0:### With static IP addressing:
# nmcli connection add type vlan con-name myteam-vlan123 ifname team0.123 id 123 dev team0 ip4 192.168.0.100/24 gw4 192.168.0.1 ### With DHCP addressing:
# nmcli connection add type vlan con-name myteam-vlan123 ifname team0.123 id 123 dev team0Other connection properties such as DNS servers, search domains, and static routes can be set for the VLAN profiles after they have been created. Use the
nmcli connection showcommand to see all the available properties for a connection profile. Use thenmcli connection modifycommand to set any given property. All properties and their possible values are described in thenm-settingsman 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.confman 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'sconnection.autoconnectproperty tonoand 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.idseen in the output from the command above:
# nmcli connection del "$PROFILE"
- The following command will list all the existing connection profiles (
Configure a VLAN on top of a team with NetworkManager (nmcli) in RHEL7的更多相关文章
- Configure a VLAN (on top of a bond) with NetworkManager (nmcli) in RHEL7
not on top of a bond Environment Red Hat Enterprise Linux 7 NetworkManager Issue Need an 802.1q VLAN ...
- Create a Team in RHEL7
SOLUTION VERIFIED September 13 2016 KB2620131 Environment Red Hat Enterprise Linux 7 NetworkManager ...
- how to configure team on liunx(RHEL7.x/Centos7.x)
#install team sofeware yum install teamd -y #check team configuration nmcli con show #Next we create ...
- Set up VLAN (802.1q) tagging on a network interface?
SOLUTION VERIFIED October 13 2015 KB39674 KB741413 environment Red Hat Enterprise Linux 4 Red Hat En ...
- Linux系统nmtui/nmcli绑定双网卡为team
今天给大家带来图形化界面网络配置工具—nmtui的使用方法,可以省去敲命令的繁琐,较少误操作,结果更加直观. 小知识: nmtui:Network Manager Text User Interfac ...
- openvswith Frequently Asked Questions
Open vSwitch <http://openvswitch.org> 参考地址:http://git.openvswitch.org/cgi-bin/gitweb.cgi?p=ope ...
- Windows Server 2012 NIC Teaming介绍及注意事项
Windows Server 2012 NIC Teaming介绍及注意事项 转载自:http://www.it165.net/os/html/201303/4799.html Windows Ser ...
- CentOS 7 网卡子接口的创建
OS:CentOS 7 在linux上创建vlan需要加载802.1q模块: 1.检测OS是否已经加载802.1q模块 [root@controller ~]# modinfo 8021q filen ...
- FIM 2010: Kerberos Authentication Setup
The goal of this article is to provide some background information regarding the Kerberos related co ...
随机推荐
- NodeJs之child_process
一.child_process child_process是NodeJs的重要模块.帮助我们创建多进程任务,更好的利用了计算机的多核性能. 当然也支持线程间的通信. 二.child_process的几 ...
- ABP文档 - EntityFramework 集成
文档目录 本节内容: Nuget 包 DbContext 仓储 默认仓储 自定义仓储 特定的仓储基类 自定义仓储示例 仓储最佳实践 ABP可使用任何ORM框架,它已经内置了EntityFrame(以下 ...
- 带你实现开发者头条APP(四)---首页优化(加入design包)
title: 带你实现开发者头条APP(四)---首页优化(加入design包) tags: design,Toolbar,TabLayout,RecyclerView grammar_cjkRuby ...
- JQuery 复制粘贴上传图片插件(textarea 和 tinyMCE)
开源地址:https://github.com/yuezhongxin/paste-upload-image.js 支持 Ctrl+C/Ctrl+V 上传,支持拖拽上传,也支持 QQ/微信截图上传. ...
- 界面设计技法之css布局
css布局之于页面就如同ECMAScript之于JS一般,细想一番,html就如同语文,css就如同数学,js呢,就是物理,有些扯远,这里就先不展开了. 回到主题,从最开始的css到如今的sass(l ...
- Angularjs参考框架地址
1.Table(Grid)参考地址 https://github.com/samu/angular-table https://github.com/daniel-nagy/md-data-table ...
- C++ 拷贝构造函数和赋值运算符
本文主要介绍了拷贝构造函数和赋值运算符的区别,以及在什么时候调用拷贝构造函数.什么情况下调用赋值运算符.最后,简单的分析了下深拷贝和浅拷贝的问题. 拷贝构造函数和赋值运算符 在默认情况下(用户没有定义 ...
- IOS之Objective-C学习 ARC下的单例模式
单例模式是我常用的一种设计模式,最常见的用途就是用来保存数据并且传递数据.这都归功于单例模式的特性,首先就让我为大家简单介绍一下单例模式的特性. 单例模式的三大特性: 1.某个类只能有一个实例: 2. ...
- 好用的Markdown编辑器一览 readme.md 编辑查看
https://github.com/pandao/editor.md https://pandao.github.io/editor.md/examples/index.html Editor.md ...
- jenkins无法重启tomcat的原因
在使用Hudson的执行sh脚本的时候,如果sh脚本是一个后台进程,如 Tomcat 这样的服务.如果使用Hudson的默认配置,会发现这些sh 进程有启动的过程,但是不会常驻后台,看Hudson 输 ...