当前位置: 代码迷 >> 综合 >> bond-br0
  详细解决方案

bond-br0

热度:70   发布时间:2023-11-05 22:34:34.0

该网卡名在、etc/udev/rules.d/70-……



[root@centos73 network-scripts]# cat ifcfg-br0 

#IP Config for eth0:
DEVICE=br0
TYPE=Bridge
BOOTPROTO=none
ONBOOT=yes
IPADDR='10.0.0.8'
NETMASK='255.255.248.0'
GATEWAY='10.0.0.1'


[root@centos73 network-scripts]# cat ifcfg-bond1
#IP Config for bond1:
DEVICE=bond1
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
BONDING_OPTS="mode=4 miimon=100 ad_select=1 updelay=200 xmit_hash_policy=2"
TYPE=bond

BRIDGE=br0


[root@centos73 network-scripts]# cat ifcfg-bond1.bak 
#IP Config for bond1:
DEVICE=bond1
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
BONDING_OPTS="mode=4 miimon=100 ad_select=1 updelay=200 xmit_hash_policy=2"
IPV6INIT=no
TYPE=Unknown
NM_CONTROLLED=no
IPADDR='10.0.0.8'

NETMASK='255.255.248.0'


[root@centos73 network-scripts]# cat ifcfg-eth0 
#IP Config for eth0:
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
HOTPLUG=no
MASTER=bond1
NM_CONTROLLED=no
USERCTL=no
SLAVE=yes


[root@centos73 network-scripts]# cat ifcfg-eth1
#IP Config for eth1:
DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
HOTPLUG=no
MASTER=bond1
NM_CONTROLLED=no
USERCTL=no
SLAVE=yes