1、使用bond 需要先加载kernel bond module
modprobe bonding
2、使用bridge需要安装
bridge-utils
yum -y install bridge-utils
3、bond 网络配置
-
DEVICE=bond0
-
NM_CONTROLLED=no
-
ONBOOT=yes
-
USERCTL=no
-
BONDING_OPTS="mode=5 miimon=50"
-
BRIDGE=br0
4、网卡网络配置
-
DEVICE=ens3
-
ONBOOT=yes
-
NM_CONTROLLED=no
-
MASTER=bond0
-
SLAVE=yes
-
USERCTL=no
-
DEVICE=ens4
-
ONBOOT=yes
-
NM_CONTROLLED=no
-
MASTER=bond0
-
SLAVE=yes
-
USERCTL=no
5、bridge配置
-
DEVICE=br0
-
TYPE=Bridge
-
BOOTPROTO=static
-
ONBOOT=yes
6、重启网络
# systemctl restart network
阅读(3047) | 评论(0) | 转发(0) |