Pages

Showing posts with label Nic Bonding. Show all posts
Showing posts with label Nic Bonding. Show all posts

Tuesday, November 25, 2014

NIC Bonding in the Centos7

Most of the setting are same as in the Older Version as in the Following URL .

http://www.adminz.in/2014/07/nic-bonding-in-linux.html

We just need to add following entries in the Master Bond0 config file to make the network system understand that bond0 is the master.

In bond0's config file.

TYPE=Bond
BONDING_MASTER=yes

Sample Master File


DEVICE=bond0
NAME=bond0
TYPE=Bond
BONDING_MASTER=yes
IPADDR=192.168.1.1
NETMASK=255.255.255.0
ONBOOT=yes
BOOTPROTO=none
BONDING_OPTS="bonding parameters separated by spaces"

Sample Slave File

DEVICE=ethN
NAME=bond0-slave
TYPE=Ethernet
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes

Friday, July 25, 2014

NIC Bonding in linux

#Creating Bonding Channel
echo "alias bond0 bonding" >> /etc/modprobe.d/bonding.conf
options bond0 miimon=80 mode=5
Be sure to add this before any of the network aliases

modes:
mode=0 (Balance Round Robin)
mode=1 (Active backup)
mode=2 (Balance XOR)
mode=3 (Broadcast)
mode=4 (802.3ad)
mode=5 (Balance TLB)
mode=6 (Balance ALB)
#Creating Channle Bonding Interface
echo "
DEVICE=bond0
IPADDR=192.168.1.41
NETMASK=255.255.255.0
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
" >> /etc/sysconfig/network-scripts/ifcfg-bond0

echo "
DEVICE=eth1
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
" /etc/sysconfig/network-scripts/ifcfg-eth1

echo "
DEVICE=eth2
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
" /etc/sysconfig/network-scripts/ifcfg-eth2