bond + bridge配置方案
物理接口配置
### ifcfg-p3p1
TYPE=Ethernet
BOOTPROTO=none
NAME=p3p1
DEVICE=p3p1
ONBOOT=yes
MASTER=bond0
SLAVE=yes
MTU=9000
### ifcfg-p3p2
TYPE=Ethernet
BOOTPROTO=static
NAME=p3p2
DEVICE=p3p2
ONBOOT=yes
MASTER=bond0
SLAVE=yes
MTU=9000
bond接口配置
### ifcfg-bond0
TYPE=Ethernet
BOOTPROTO=none
PEEDNS=yes
BONDING_MASTER=yes
NAME=bond0
DEVICE=bond0
ONBOOT=yes
BRIDGE=br_nfs
MTU=9000
bridge配置
### ifcfg-br_nfs
TYPE=Bridge
BOOTPROTO=static
NAME=br_nfs
DEVICE=br_nfs
ONBOOT=yes
IPADDR=172.16.130.24
NETMASK=255.255.255.0
MTU=9000
bond模块配置
#cat /etc/modprobe.d/bonding.conf
alias bond0 bonding
options bonding miimon=100 mode=1
重启模块
modprobe -r bonding
名称可以修改,查看目前的bond模式
#cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: eth4
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: eth4
MII Status: up
Speed: 10000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 00:16:31:f1:9e:0f
Slave queue ID: 0
Slave Inte
rface: eth_sto
MII Status: up
Speed: 10000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 00:16:31:f1:9e:0e
Slave queue ID: 0