team方法

1)、 nmcli connection add type team con-name team0 ifname team0 config
'{"runer":{"name":"activebackup"}}'         ##创建一个team,名称为team0,并且配置了activebackup主从

2)、nmcli connection add type team-slave con-name team0-port1 ifname
eth1 master team0                 ##创建子接口team0-port1,并设置归属于team0


3)、 nmcli connection add type team-slave con-name team0-port2 ifname
eth2 master team0                ##创建子接口team0-port2,并设置归属于team0


4)、 nmcli connection modify team0 ipv4.addresses 192.168.0.101/24
ipv4.method manual               ##设置team0的IP地址


5)、 systemctl restart network          ##重启服务,使其生效

相关文章:

  • 2021-04-24
  • 2022-01-21
  • 2021-09-18
  • 2021-12-04
  • 2021-11-22
  • 2021-12-15
  • 2021-08-27
猜你喜欢
  • 2021-10-09
  • 2021-05-14
  • 2021-07-03
  • 2021-12-21
  • 2022-02-14
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案