- ip link
- nmcli con add type team con-name team0 ifname team0 config ‘{"runner":{"name":"activebackup"}}‘
- nmcli con add type team-slave con-name team0-port1 ifname eno1 master team0
- nmcli con add type team-slave con-name team0-port2 ifname eno2 master team0
- teamctl team0 state
- nmcli dev dis team0
- systemctl stop NetworkManager
- systemctl disable NetworkManager
- cd /etc/sysconfig/network-scripts/
- ls -l ifcfg-*
- vim ifcfg-team0
- tail ifcfg-team0
NAME=team0
UUID=......
ONBOOT=yes
BRIDGE=brteam0
BRIDGE=brteam0
- cat ifcfg-team0-port1
NAME=team0-port1
UUID=...
DEVICE=eno1
ONBOOT=yes
TEAM_MASTER=team0
DEVICETYPE=TeamPort
(也可以直接vim编辑,11dd)
ifcfg-team0-port2同port1
- systemctl restart network
- reboot
- ping -I brteam0 192.168.0.254
时间: 2024-10-26 02:22:08