首页 > 系统服务 > 详细

linux下网卡team的配置

时间:2019-08-16 19:33:00      阅读:273      评论:0      收藏:0      [点我收藏+]

1、配置team 网卡

[root@localhost ~]# mcli connection add type team con-name team0 ifname team0 config {"runner":{"name":"activebackup"}} ip4 192.168.8.100
bash: mcli: 未找到命令...
[root@localhost ~]# nmcli connection add type team con-name team0 ifname team0 config {"runner":{"name":"activebackup"}} ip4 192.168.8.100
成功添加的连接 team0(73624a17-1e70-44a4-b855-e7f8aec3f9ba)。
[root@localhost ~]# teamdctl team0 state
setup:
  runner: activebackup
runner:
  active port: 
[root@localhost ~]# nmcli connection add con-name ens33 ifname ens33 type team-slave master team0
成功添加的连接 ens33(ee50d5aa-2b5e-463b-b4ad-8df900417064)。
[root@localhost ~]# nmcli connection add con-name ens38 ifname ens38 type team-slave master team0
成功添加的连接 ens38(9cfed3c6-0a12-4494-84b9-02f72068a255)。
[root@localhost ~]# 
[root@localhost ~]# teamdctl team0 state
setup:
  runner: activebackup
ports:
  ens33
    link watches:
      link summary: up
      instance[link_watch_0]:
        name: ethtool
        link: up
        down count: 0
  ens38
    link watches:
      link summary: up
      instance[link_watch_0]:
        name: ethtool
        link: up
        down count: 0
runner:
  active port: ens33
[root@localhost ~]# ifdown ens33
成功断开设备 ens33。
[root@localhost ~]# teamdctl team0 state
setup:
  runner: activebackup
ports:
  ens38
    link watches:
      link summary: up
      instance[link_watch_0]:
        name: ethtool
        link: up
        down count: 0
runner:
  active port: ens38
[root@localhost ~]# ifup ens33
成功激活的连接(D-Bus 激活路径:/org/freedesktop/NetworkManager/ActiveConnection/5)
[root@localhost ~]# teamdctl team0 state
setup:
  runner: activebackup
ports:
  ens38
    link watches:
      link summary: up
      instance[link_watch_0]:
        name: ethtool
        link: up
        down count: 0
runner:
  active port: ens38

 

linux下网卡team的配置

原文:https://www.cnblogs.com/dayu-liu/p/11365192.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!