linux bond绑定

描述:

  ens224、ens256进行网卡绑定(mode1主备模式)

ens224网卡配置:

TYPE=Ethernet
BOOTPROTO=static
DEVICE=ens224
NAME=ens224
ONBOOT=yes
MASTER=bond0
SLAVE=yes

ens256网卡配置:

TYPE=Ethernet
BOOTPROTO=static
DEVICE=ens256
NAME=ens256
ONBOOT=yes
MASTER=bond0
SLAVE=yes

bond0网卡配置:

DEVICE=bond0
ONBOOT=yes
IPADDR=192.168.xxx.xxx
NETMASK=255.255.255.0
GATEWAY=192.168.xxx.1
MASTER=yes
BONDING_OPTS="mode=1 miimon=100"
DEFROUTE=yes

猜你喜欢

转载自www.cnblogs.com/xue0123/p/10972195.html