In this tutorial we will configure network bonding on CentOS 6.X and RHEL 6.X , in my case i have two Lan Cards (eth0 & eth1) & will create bond interface (bond0).
Step:1 Create the bond file ( ifcfg-bond0 ) and specify the ip address,netmask & gateway
# vi /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0IPADDR=192.168.1.9NETMASK=255.255.255.0GATEWAY=192.168.1.1TYPE=BondONBOOT=yesNM_CONTROLLED=noBOOTPROTO=static
Step:2 Edit the files of eth0 & eth1 and make sure you enter the master and slave entry, as shown below
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0HWADDR=08:00:27:5C:A8:8FTYPE=EthernetONBOOT=yesNM_CONTROLLED=noMASTER=bond0SLAVE=yes
# vi /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1TYPE=EthernetONBOOT=yesNM_CONTROLLED=noMASTER=bond0SLAVE=yes
Step:3 Create the Bond file(bonding.conf)
# vi /etc/modprobe.d/bonding.conf
alias bond0 bondingoptions bond0 mode=1 miimon=100
Different Modes used in bonding.conf file .
Step:4 Now Restart the network Service
# service network restart
Using below command to Check the bond Interface
root@localhost ~]# ifconfig bond0bond0 Link encap:Ethernet HWaddr 08:00:27:5C:A8:8Finet addr:192.168.1.9 Bcast:192.168.1.255 Mask:255.255.255.0inet6 addr: fe80::a00:27ff:fe5c:a88f/64 Scope:LinkUP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1RX packets:6164 errors:0 dropped:0 overruns:0 frame:0TX packets:1455 errors:0 dropped:0 overruns:0 carrier:0collisions:0 txqueuelen:0RX bytes:482336 (471.0 KiB) TX bytes:271221 (264.8 KiB
Step:5 Verify the Status of bond interface.
[root@localhost ~]# cat /proc/net/bonding/bond0 Ethernet Channel Bonding Driver: v3.6.0 (September 26, 2009)
Bonding Mode: fault-tolerance (active-backup)Primary Slave: NoneCurrently Active Slave: eth0MII Status: upMII Polling Interval (ms): 100Up Delay (ms): 0Down Delay (ms): 0
Slave Interface: eth0MII Status: upSpeed: 1000 MbpsDuplex: fullLink Failure Count: 0Permanent HW addr: 08:00:27:5c:a8:8fSlave queue ID: 0
Slave Interface: eth1MII Status: upSpeed: 1000 MbpsDuplex: fullLink Failure Count: 0Permanent HW addr: 08:00:27:7f:04:49Slave queue ID: 0
Note: As per the output shown above , we are currently using active-backup bonding. To do the testing just disable one interface and check whether you are still accessing your machine using the bond ip.
1. Wait queue data structureThe wait queue is implemented by a doubly linked list whose elements inc
How to uninstall the built-in JDK under Linux, many of us can find java under the operating system
CentOS modify IP address First turn off the firewall: service iptables stop# ifconfig eth0 192.168.1
Data is the most important part of a Unix/Linux system, but backing up and synchro
Live555 can't get ip address solution under LINUX
Linux system file default permissions detailed
Set disk quotas for Linux MySQL databases
Linux full-screen text editor VI use instructions basic tutorial
Linux graphical interface and text interface switching operation method
The whole process of automatically generating Makefile is detailed.
11 Linux terminal commands let you use it even better
How to fix "fatal error: security/pam
Rh442-1 use snmp and mrtg to monitor the network traffic of the Linux server
How do I look at Windows7 is not good at all, a buddy said
Conditional Theory of WINDOWS Joining Domains
The WIN7 system desktop file will be deleted after it is deleted.
Windows0 system application store update program 0X80246007 error code how to do?
Windows 7 does not natively support a hybrid SLI/CrossFire system
Win10 system play limit racing 6 prompt error AP301 solution
What is the Win7 system computer card screen?
Win10 edge set home page method tutorial
Teach you to find out that your WeChat friends have been deleted