bond0: eth0, eth1 ( active eth0, standby eth1 )
create a file uder /etc/modprobe.d directory.
# cat /etc/modprobe.d/bonding.conf
alias bond0 bonding
options bond0 mode=1 primary=eth0 miimon=500
|
mode 1 is active – standby.
# grep -v ^# /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
BOOTPROTO="none"
NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="Ethernet"
MASTER=bond0
SLAVE=yes
|
# grep -v ^# /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE="eth1"
BOOTPROTO="none"
NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="Ethernet"
MASTER=bond0
SLAVE=yes
|
create a bond0 file.
# grep -v ^# /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE="bond0"
BOOTPROTO="static"
NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="Ethernet"
IPADDR=10.0.0.10
NETMASK=255.255.255.0
|
reboot the OS.
# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.6.0 (September 26, 2009)
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: eth0
MII Status: up
MII Polling Interval (ms): 500
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: eth0
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr:
Slave queue ID: 0
Slave Interface: eth1
MII Status: down
Speed: Unknown
Duplex: Unknown
Link Failure Count: 0
Permanent HW addr:
Slave queue ID: 0
|
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.