centos8做bond4(802.3ad 动态链路聚合)

bond4又称lacp动态链路聚合,需要交换机也做对应的聚合配置

实际测试环境为 anolis8.6 x86_64

配置:

[root@kbuilder ~]# cat /etc/sysconfig/network-scripts/ifcfg-bond
TYPE=Bond
BONDING_OPTS=mode="miimon=100 downdelay=0 updelay=0 mode=4 lacp_rate=fast"
#BONDING_OPTS=mode="miimon=100 mode=1"
BONDING_MASTER=yes
BOOTPROTO=none
NAME=bond
DEVICE=bond
ONBOOT=yes
IPADDR=132.147.1.249
NETMASK=255.255.255.0
GATEWAY=132.147.1.254
[root@kbuilder ~]# cat /etc/sysconfig/network-scripts/ifcfg-ens9f0
TYPE=Ethernet
DEVICE=ens9f0
NAME=ens9f0
ONBOOT=yes
MASTER=bond
SLAVE=yes
[root@kbuilder ~]# cat /etc/sysconfig/network-scripts/ifcfg-ens9f1
TYPE=Ethernet
DEVICE=ens9f1
NAME=ens9f1
ONBOOT=yes
MASTER=bond
SLAVE=yes

验证:

 cat /proc/net/bonding/bond|grep -i mode

 

posted @ 2023-07-11 16:02  咿呀哒喏  阅读(1073)  评论(0编辑  收藏  举报