链路聚合

# 确认NetworkManager已启动
systemctl status NetworkManager
# 使用nmcli命令创建team聚合端口
nmcli con add type team con-name team1 ifname team1 config '{"runner":{"name":"loadbalance"}}'
# 向接口组创建设备
nmcli con add type team-slave con-name team1-port1 ifname eno1 master team1
nmcli con add type team-slave con-name team1-port2 ifname eno2 master team1
# 为聚合端口创建ip地址
nmcli con mod team1 ipv4.addresses "192.168.220.134/24"
nmcli con mod team1 ipv4.gateway "192.168.220.1"
nmcli con mod team1 ipv4.dns "192.168.220.1"
nmcli con mod team1 ipv4.method manual
# 启动端口并查看网络状态
nmcli con up team1-port1
nmcli con up team1-port2
nmcli device status
# 重启网络
service network restart

你可能感兴趣的:(链路聚合)