Sunday, July 24, 2016

Interface Bonding in Redhat Linux



Step 1: Creating Bonding Channel
# /etc/modprobe.d/
vi bonding.conf
alias bond0 bonding


Step 2: Creating Channek Bonding Interface
#/etc/sysconfig/network-scripts/
touch ifcfg-bond0
vi ifcfg-bond0
DEVICE=bond0
IPADDR=192.168.1.8
NETMASK=255.255.255.0
ONBOOT=yes
BOOTPROTO=none
USERCTL=no

Step 3: Configuring Channel Bonding Interface

After the channel bonding interface is created, the network interfaces to be bound together must be configured by adding the MASTER and SLAVE directives to their configuration files. The configuration files for each of the channel-bonded interfaces can be nearly identical. For example, if two Ethernet interfaces are being channel bonded,
both eth0 and eth1 may look like the following example. Edit physical interface card details as under.

For eth0

# vi /etc/sysconfig/network-scripts/ifcfg-eth0

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

For eth1

# vi /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
Type=Ethernet

?DEVICE: Indicates what is the device name
 ?USERCTL: Indicates that can user control this device(here its no)
 ?ONBOOT:  Indicates that at the boot time do this device should be up?
 ?MASTER: Is this device has master? Then what it is(here its bond0)
 ?SLAVE: Is this device acting as slave?
 ?BOOTPROTO: What about getting IP Address from DHCP? It’s set to none which indicate it’s a static IP)


 Step 4: Restarting Network Service

 # service network restart



1 comment: