■ Purpose: create bridge on top of bonding
■ OS Environment: Linux [RHEL, Centose]
■ Application: bonding
■ Practical Usage : Used in KVM environment
■ Implementation Steps :
1. Create network script :
vi /etc/sysconfig/network-scripts/ifcfg-eth0 & put following entries :
DEVICE=eth0
NM_CONTROLLED=no
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
TYPE=Ethernet
IPV6INIT=no
USERCTL=no
2. Create another network script :
vi /etc/sysconfig/network-scripts/ifcfg-eth1 & put following entries :
DEVICE=eth1
NM_CONTROLLED=no
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
TYPE=Ethernet
IPV6INIT=no
USERCTL=no
3. Create a network bonding script :
vi /etc/sysconfig/network-scripts/ifcfg-bond0 & put following lines :
DEVICE=bond0
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
IPV6INIT=no
BONDING_OPTS="mode=1 miimon=100 updelay=200 downdelay=200 primary=eth0"
BRIDGE=br0
4. Create network bridge script :
vi /etc/sysconfig/network-scripts/ifcfg-br0 & put below entries with valid value
DEVICE=br0
TYPE=Bridge
BOOTPROTO=none
IPADDR=10.XXX.XXX.X7
NETMASK=255.255.255.XXX
GATEWAY=10.XXX.XXX.XXX
ONBOOT=yes
DELAY=0
IPV6INIT=no
5. Add alias of bonding in modprobe.conf like :
# vi /etc/modprobe.conf
alias bond0 bonding
6. Restart network service :
# service network restart
■ OS Environment: Linux [RHEL, Centose]
■ Application: bonding
■ Practical Usage : Used in KVM environment
■ Implementation Steps :
1. Create network script :
vi /etc/sysconfig/network-scripts/ifcfg-eth0 & put following entries :
DEVICE=eth0
NM_CONTROLLED=no
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
TYPE=Ethernet
IPV6INIT=no
USERCTL=no
2. Create another network script :
vi /etc/sysconfig/network-scripts/ifcfg-eth1 & put following entries :
DEVICE=eth1
NM_CONTROLLED=no
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
TYPE=Ethernet
IPV6INIT=no
USERCTL=no
3. Create a network bonding script :
vi /etc/sysconfig/network-scripts/ifcfg-bond0 & put following lines :
DEVICE=bond0
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
IPV6INIT=no
BONDING_OPTS="mode=1 miimon=100 updelay=200 downdelay=200 primary=eth0"
BRIDGE=br0
4. Create network bridge script :
vi /etc/sysconfig/network-scripts/ifcfg-br0 & put below entries with valid value
DEVICE=br0
TYPE=Bridge
BOOTPROTO=none
IPADDR=10.XXX.XXX.X7
NETMASK=255.255.255.XXX
GATEWAY=10.XXX.XXX.XXX
ONBOOT=yes
DELAY=0
IPV6INIT=no
5. Add alias of bonding in modprobe.conf like :
# vi /etc/modprobe.conf
alias bond0 bonding
6. Restart network service :
# service network restart
I see a typo:
ReplyDeleteOne of the /etc/sysconfig/network-scripts/ifcfg-eth0 should be ifcfg-eth1