Centos 6 bonding + bridge

How to install and configure bridge on Centos 6

yum install bridge-utils
cd /etc/sysconfig/network-scripts/
vi ifcfg-bond0


DEVICE=bond0
BOOTPROTO=none
ONBOOT=yes
USERCTL=no
BONDING_OPTS="miimon=100 mode=active-backup primary=eth0"
TYPE=Unknown
NM_CONTROLLED=yes
BRIDGE="bridge0"
IPV6INIT=no

vi ifcfg-eth0

DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
USERCTL=no

vi ifcfg-eth1

DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
USERCTL=no

vi ifcfg-bridge0

DEVICE="bridge0"
TYPE="Bridge"
USERCTL=no
BOOTPROTO=static
ONBOOT=yes
IPADDR=10.200.243.150
NETMASK=255.255.0.0
NETWORK=10.200.0.0
GATEWAY=10.200.240.10
DELAY=0

vi /etc/modprobe.d/bonding.conf

alias bond0 bonding

service network restart

Comments are closed.