创建team(模式主备)
nmcli con add type team con-name team0 ifname team0 config ‘{“runner”: {“name”:“activebackup”}}’
配置ip地址
nmcli con mod team0 ipv4.addresses 172.16.11.26/25 ipv4.gateway 172.16.11.126 ipv4.dns 114.114.114.114 ipv4.method manual autoconnect yes
端口加入team
nmcli con add type team-slave con-name team0-port1 ifname em1 master team0
nmcli con add type team-slave con-name team0-port2 ifname em3 master team0
nmcli con add type team-slave con-name team0-port3 ifname em5 master team0
nmcli con add type team-slave con-name team0-port4 ifname em7 master team0
启动team端口
nmcli conn up team0
查看team状态
teamdctl team0 state
nmcli使用笔记
最新推荐文章于 2024-07-07 04:56:41 发布