Linux做bond4

一、编辑bond网络配置

vim /etc/sysconfig/network-scripts/ifcfg-bond4

DEVICE=bond4
NAME=bond4
TYPE=Bond
ONBOOT=yes
BOOTPROTO=static
BONDING_MASTER=yes
BONDING_OPTS="miimon=100 downdelay=0 updelay=0 mode=802.3ad lacp_rate=fast arp_validate=0"
IPADDR=
NETMASK=
GATEWAY=

二、编辑bond下属网卡信息

vim /etc/sysconfig/network-scripts/ifcfg-网卡名1

DEVICE=网卡名1
ONBOOT=yes
MASTER=bond4
SLAVE=yes 

vim /etc/sysconfig/network-scripts/ifcfg-网卡名2
DEVICE=网卡名2
ONBOOT=yes
MASTER=bond4
SLAVE=yes 

三、设置bond模式

vim /etc/modprobe.d/bond.conf

alias bond4 bonding
Options bond4 miimon=100 mode=4

四、重启网络

systemctl restart network

如图所示:

image-20211109224515634

posted @ 2021-11-09 22:46  带着泥土  阅读(1607)  评论(0编辑  收藏  举报