交换机开启LACP,配置聚合。
网卡eno1, eno2, eno3。eno1为管理口,eno2和eno3绑定,配置bond4.
配置eno2:
vim /etc/sysconfig/network-scripts/ifcfg-eno2
ifcfg-eno2配置如下:
DEVICE=eno2 NAME=eno2 TYPE=Ethernet BOOTPROTO=none ONBOOT=yes MASTER=bond4 SLAVE=yes
配置eno3:
vim /etc/sysconfig/network-scripts/ifcfg-eno3
ifcfg-eno3配置如下:
DEVICE=eno3 NAME=eno3 TYPE=Ethernet BOOTPROTO=none ONBOOT=yes MASTER=bond4 SLAVE=yes
配置bond4:
vim /etc/sysconfig/network-scripts/ifcfg-bond4
bond4配置如下:
DEVICE=bond4 NAME=bond4 TYPE=Bond BONDING_MASTER=yes IPADDR=172.16.32.51 GATEWAY=172.16.32.1 NETMASK=255.255.255.0 DNS1=172.16.32.241 DNS2=172.16.32.243 PEERDNS=yes ONBOOT=yes BOOTPROTO=static BONDING_OPTS="mode=802.3ad miimon=100 lacp_rate=fast arp_validate=0"
重启服务,使配置生效:
systemctl network restart
bonding状态查看:
cat /proc/net/bonding/bond4
来源:https://www.cnblogs.com/xiaoerlang/p/5553203.html