日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Configure a VLAN on top of a team with NetworkManager (nmcli) in RHEL7

發(fā)布時間:2025/3/17 编程问答 22 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Configure a VLAN on top of a team with NetworkManager (nmcli) in RHEL7 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

2019獨角獸企業(yè)重金招聘Python工程師標(biāo)準(zhǔn)>>>

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 named?myteam?which will provide a team device named?team0. The team mode will be?activebackup?and?ethtool?link 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 myteam
  • 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:ens10link watches:link summary: upinstance[link_watch_0]:name: ethtoollink: updown count: 0ens15link watches:link summary: upinstance[link_watch_0]:name: ethtoollink: updown count: 0 runner:active port: ens10

  • Create the VLAN connection profiles which will be on top of the new team device.?The?dev?parameter must refer to the team?device?name, not the team profile name. The following command will create a connection profile named?myteam-vlan123?which will provide VLAN ID 123 on top of device?team0:

    ### 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 team0
  • Other 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 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:
    • Networking Guide: Configure Network Teaming

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"

?

轉(zhuǎn)載于:https://my.oschina.net/u/3362827/blog/1635752

總結(jié)

以上是生活随笔為你收集整理的Configure a VLAN on top of a team with NetworkManager (nmcli) in RHEL7的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。

主站蜘蛛池模板: 国产区高清 | 国产白丝喷水 | 国产一区二区三区精品视频 | 亚洲国产精品成人综合久久久 | 三上悠亚中文字幕在线播放 | 手机av在线免费观看 | 国产一区二区三区在线视频 | 又大又粗弄得我出好多水 | 亚洲精品一二三四 | 国产综合视频一区二区 | 懂色中文一区二区在线播放 | 成人国产三级 | 里番acg★同人里番本子大全 | 麻豆久久久 | 蜜桃视频在线入口www | 中文字幕欧美亚洲 | 亚洲 欧美 激情 另类 校园 | 日韩第六页 | 香蕉精品视频在线观看 | 伊人影片| 亚洲精品国产一区二 | 亚洲伦理一区 | 大色av | 欧美色频 | 爱露出 | 天堂av电影在线观看 | 最近中文字幕在线中文高清版 | 污污视频免费网站 | 丁香六月激情综合 | 亚洲三级a| 国产激情二区 | 日韩久久影视 | 亚洲乱码国产乱码精品精 | 亚洲一区久久 | 国产一级二级三级 | 欧美系列一区二区 | 曰韩av| av不卡一区| 欧美色图综合网 | 久久精国产 | 性xxxx18| 日本一区二区久久 | 黄色在线观看网址 | 欧美国产激情 | 国产剧情久久久 | 国产精品毛片一区二区三区 | 亚洲va在线∨a天堂va欧美va | 性高潮在线观看 | 污片在线免费观看 | 色干综合| 午夜亚洲AV永久无码精品蜜芽 | 久久精品国产99精品国产亚洲性色 | 一级黄色av | 欧美成人怡红院 | 欧美在线免费观看 | 国产顶级毛片 | 国产精品毛片一区二区 | 68日本xxxxxⅹxxx22 | 少妇又色又爽 | 风间由美一区 | 精品一区91| 国产精品毛片一区二区 | 污污软件在线观看 | 亚洲精品一级 | 性视频播放免费视频 | 美女干b视频 | 亚洲成a人v欧美综合天堂麻豆 | 免费看成人 | 99久久久无码国产精品衣服 | 免费无码av片在线观看 | 久久在线免费视频 | 国产日产精品一区 | 美女让男生桶 | 日本欧美亚洲 | 青青草国产成人99久久 | 日韩欧美视频免费观看 | 69久久久久| 希岛婚前侵犯中文字幕在线 | 想要xx在线观看 | 激情久久久久久 | 精品区一区二区 | 人碰人人 | 国产裸体视频 | www.av成人 | 久久riav| 日韩不卡高清视频 | 激情五月激情综合 | 国产精品无码内射 | 亚洲老女人视频 | 亚洲不卡在线视频 | 激情小说图片视频 | 天天爽天天爽夜夜爽毛片 | 成人免费91| 国产一区二区三区视频播放 | 男生和女生差差视频 | 夜夜操狠狠操 | 怡春院在线视频 | 久久亚洲av成人无码国产电影 | 一级全黄裸体免费观看视频 |