Edit Eth0
Device=eth0
Type=ethernet
Onboot=yes
Master=bond0
Slave=yes
Bottproto=none
Edit Eth1
Device=eth1
Onboot=yes
Master=bond0
Slave=yes
Bottproto=none
Edit Bond0
Device=bond0
Bootproto=static
ipaddr=10.10.128.13
netmask=255.255.192.0
gateway=10.10.128.254
Onboot=yes
Userctl=no
To add a module:
[Email protected] network-scripts]# cat/etc/modprobe.d/bonding.conf
Alias Bond0 Bonding
Options Bonding miimon=100 mode=1
Load module:
[Email protected] network-scripts]# modprobe bonding
To view the network card mode:
[Email protected] proc]# cat/proc/net/bonding/bond0
Ethernet Channel Bonding driver:v3.7.1 (April 27, 2011)
Bonding mode:fault-tolerance (Active-backup)
Primary Slave:none
Currently Active Slave:eth1
MII Status:up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface:eth0
MII Status:up
speed:1000 Mbps
Duplex:full
Link Failure count:1
Permanent HW addr:40:f2:e9:b9:ab:68
Slave Queue id:0
Slave interface:eth1
MII Status:up
speed:1000 Mbps
Duplex:full
Link Failure count:0
Permanent HW addr:40:f2:e9:b9:ab:69
Slave Queue id:0
Linux dual NIC binding brief steps