序号 | 修订内容 | 修订时间 |
---|---|---|
1 | 新增 | 20210422 |
本文主要介绍网卡bond 配置
[root@localhost ~]# cat /etc/centos-release
CentOS Linux release 7.6.1810 (Core)
[root@localhost ~]#
新增配置bond1,采用mode4
[root@localhost ~]# nmcli connection show
NAME UUID TYPE DEVICE
Bond bond0 ad33d8b0-1f7b-cab9-9447-ba07f855b143 bond bond0
enp175s0f1 86ae1450-c05f-400d-903d-b64405a0d182 ethernet enp175s0f1
enp59s0f1 426e93e1-a20b-4fe1-b92d-ebd60748f8b2 ethernet enp59s0f1
virbr0 ff5be524-e7c6-40b9-846e-b9a724fda06c bridge virbr0
eno1 2592ee4b-c158-409a-939a-d179261d4f0f ethernet --
eno2 2a339628-fc53-4389-8222-26e0496b31b1 ethernet --
eno3 049caa2e-5972-4831-b0e4-798422dd2fdc ethernet --
eno4 580b28a8-db2a-4039-b4bb-7a660359f342 ethernet --
enp175s0f0 386bb670-97af-4e0a-b718-bd1d19a4c0e6 ethernet --
enp59s0f0 df372dc3-18b6-4f6b-b0c6-dcc2871aecc9 ethernet --
可见当前已经配置了bond0,新增bond1,由enp59s0f0、enp175s0f0组成;
DEVICE=bond1
TYPE=Bond
ONBOOT=yes
BOOTPROTO=static
BONDING_MASTER=yes
BONDING_OPTS="xmit_hash_policy=layer3+4 mode=4 miimon=80"
IPADDR=10.3.141.32
PREFIX=24
GATEWAY=10.3.141.1
BONDING_OPTS="mode=6 miimon=80" ----这是mode6模式
BONDING_OPTS="mode=1 miimon=80" ----这是mode1模式
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none //改为none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=enp59s0f0
UUID=df372dc3-18b6-4f6b-b0c6-dcc2871aecc9
DEVICE=enp59s0f0
ONBOOT=yes
MASTER=bond1 //新增
SLAVE=yes //新增
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=enp175s0f0
UUID=386bb670-97af-4e0a-b718-bd1d19a4c0e6
DEVICE=enp175s0f0
ONBOOT=yes
MASTER=bond1
SLAVE=yes
原文:https://www.cnblogs.com/weiwei2021/p/14690254.html