一起研究系列:centos7.5下网卡team建立

具体操作步骤:

举例1:
nmcli connection add con-name team0 type team ifname team0 config '{"runner":{"name":"activebackup"}}'
nmcli connection modify team0 ipv4.addresses 172.16.3.40/24 connection.autoconnect yes ipv4.method manual
nmcli connection add con-name team0-slave1 ifname eth1 type team-slave master team0
nmcli connection add con-name team0-slave2 ifname eth2 type team-slave master team0
nmcli connection up team0

删除
nmcli connection delete team0-slave1
nmcli connection delete team0-slave2
nmcli connection delete team0
nmcli connection reload

举例2:
nmcli connection add con-name team0 type team ifname team0 config '{"runner":{"name":"activebackup"}}' ip4 192.168.88.8/24 gw4 192.168.88.1
nmcli connection modify team0 ipv4.dns 8.8.8.8
nmcli connection add con-name team0-eth0 type team-slave ifname ens35 master team0
nmcli connection add con-name team0-eth1 type team-slave ifname ens36 master team0
nmcli connection up team0
nmcli connection up team0-eth0
nmcli connection up team0-eth1
teamdctl team0 stat
ping 192.168.88.1
teamnl team0 ports
teamnl team0 getoption activeport
teanml team0 setoption activeport 6
teamnl team0 getoption activeport
teamdctl team0 stat
nmcli device disconnect ens35
teamnl team0 ports
teamnl team0 getoption activeport
nmcli device connect ens36
teamnl team0 ports

转载于:https://blog.51cto.com/jxwpx/2337603

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值