bond-br0

xiaoxiao2021-02-28  9

该网卡名在、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

转载请注明原文地址: https://www.6miu.com/read-1900131.html

最新回复(0)