Linux服务器多网卡网络汇聚(聚合)

我这里才用的dell720xd服务器,8网卡

1.添加一个虚拟聚合网卡

nmcli connection add type team con-name team0 config '{"runner":{"name":"loadbalance"}}'

2.设置相关参数

nmcli connection modify team0 ipv4.addresses '192.168.1.10'
nmcli connection modify team0 ipv4.method manual

3.添加指定名称的物理网卡到虚拟聚合网卡

nmcli connection add type team-slave con-name team0-1 ifname em1 master team0
nmcli connection add type team-slave con-name team0-2 ifname em2 master team0
nmcli connection add type team-slave con-name team0-3 ifname em3 master team0
nmcli connection add type team-slave con-name team0-4 ifname em4 master team0
nmcli connection add type team-slave con-name team0-5 ifname p4p1 master team0
nmcli connection add type team-slave con-name team0-6 ifname p4p2 master team0
nmcli connection add type team-slave con-name team0-7 ifname p4p3 master team0
nmcli connection add type team-slave con-name team0-8 ifname p4p4 master team0

4.链接指定名称的链路聚合

nmcli connection up team0-1
nmcli connection up team0-2
nmcli connection up team0-3
nmcli connection up team0-4
nmcli connection up team0-5
nmcli connection up team0-6
nmcli connection up team0-7

5.查看所有的链路聚合

nmcli connection show

6.删除指定名称的链路聚合

nmcli connection delete team0-1
nmcli connection delete team0-2
nmcli connection delete team0-3
nmcli connection delete team0-4
nmcli connection delete team0-5
nmcli connection delete team0-6
nmcli connection delete team0-7
nmcli connection delete team0-8

你可能感兴趣的:(centos,linux,环境搭建)