网卡配置 bond+桥 ,开箱即用。centos7中适用。

[root@localhost network-scripts]# cat ifcfg-vmbr0 
DEVICE="vmbr0"
BOOTPROTO="static"
ONBOOT="yes"
IPADDR="192.168.1.99"
NETMASK="255.255.255.0"
TYPE="Bridge"
GATEWAY="192.168.1.1"
INTERFACE="bond0"

[root@localhost network-scripts]# cat ifcfg-bond0 ifcfg-eth*
DEVICE="bond0"
BONDING_OPTS="mode=1 miimon=100"
BOOTPROTO="none"
NM_CONTROLLED="no"
ONBOOT="yes"
#TYPE="Ethernet"
BRIDGE="vmbr0"


DEVICE="eth0"
#BOOTPROTO="static"
NM_CONTROLLED="no"
ONBOOT="yes"
TYPE="Ethernet"
SLAVE="yes"
MASTER="bond0"

DEVICE
="eth1" #BOOTPROTO="static" NM_CONTROLLED="no" ONBOOT="yes" TYPE="Ethernet" SLAVE="yes" MASTER="bond0"

 

posted @ 2020-03-26 09:31  Chris_huang  阅读(106)  评论(0)    收藏  举报
返回项部