Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Kernel Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 23rd November 2010, 08:03
shangsuo shangsuo is offline
Junior Member
 
Join Date: Nov 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default NIC bonding doesnt work

try to bond two NIC but cant seem to work. Any experts can offer any advice?
Suspect vmware simply doesnt support virtual machine running NIC bonding but I cant be sure

switch: vmware workstation virtual network
os:Oracle Enterprise Linux r5u5 x64

*note /etc/modprobe.conf is deprecated. Now uses /etc/modprobe.d/abc.conf
http://docs.redhat.com/docs/en-US/Re...aces-chan.html

#configuration:
vi /etc/modprobe.d/bonding.conf
:<<:
alias bond0 bonding
alias bond1 bonding
:

vi /etc/sysconfig/network-scripts/ifcfg-bond0
:<<:
#bond eth0 and eth1
DEVICE=bond0
IPADDR=192.168.70.51
NETMASK=255.255.255.0
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
#mii monitoring interval 100ms. Mode=1 active/backup
BONDING_OPTS="miimon=100 mode=1"
:
vi /etc/sysconfig/network-scripts/ifcfg-eth0
:<<:
#slave of bond0
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
USERCTL=no
:
vi /etc/sysconfig/network-scripts/ifcfg-eth1
:<<:
#slave of bond0
DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
USERCTL=no
:

#check
route -n
:<<:
Destination Gateway Genmask Flags Metric Ref Use Iface
10.10.10.48 0.0.0.0 255.255.255.248 U 0 0 0 eth2
192.168.70.0 0.0.0.0 255.255.255.0 U 0 0 0 bond0
192.168.132.0 0.0.0.0 255.255.255.0 U 0 0 0 bond1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 bond1
0.0.0.0 192.168.70.2 0.0.0.0 UG 0 0 0 bond0
:

cat /proc/net/bonding/bond0
:<<:
Ethernet Channel Bonding Driver: v3.4.0 (October 7, 2008)

Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: eth0
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0

Slave Interface: eth0
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:0c:29:00:98:40

Slave Interface: eth1
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:0c:29:00:98:4a
:

ifconfig
:<<:
bond0 Link encap:Ethernet HWaddr 00:0C:29:00:98:40
inet addr:192.168.70.51 Bcast:192.168.70.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe00:9840/64 Scope:Link
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:6180 errors:0 dropped:0 overruns:0 frame:0
TX packets:4681 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:509171 (497.2 KiB) TX bytes:763684 (745.7 KiB)

eth0 Link encap:Ethernet HWaddr 00:0C:29:00:98:40
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:5720 errors:0 dropped:0 overruns:0 frame:0
TX packets:4462 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:476087 (464.9 KiB) TX bytes:755170 (737.4 KiB)

eth1 Link encap:Ethernet HWaddr 00:0C:29:00:98:40
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:477 errors:0 dropped:0 overruns:0 frame:0
TX packets:237 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:34206 (33.4 KiB) TX bytes:11478 (11.2 KiB)
:

#testing. Incoming:use another box to ping to bond0 192.168.70.51. Outgoinging to gateway 192.168.70.2
ifdown eth0
cat /proc/net/bonding/bond0
:<<:
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: eth1
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:0c:29:00:98:4a
:

###result:failed. Ping no reply


ifup eth0
ifdown eth1
cat /proc/net/bonding/bond0
:<<:
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: eth0
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0

Slave Interface: eth0
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:0c:29:00:98:40
:

###resultass. Ping have reply

It seems only eth0 is functioning. I have another bond1 with mode=1(round robin) which show exact behaviour.
Anyone to shed a light on these?
Reply With Quote
Sponsored Links
 

Bookmarks

Tags
bonding, modprobe.d, redhat, vmware

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail server using Postfix, Dovecot, Mysql... Postfix virtual maps doesn't work?? tarasbuljba HOWTO-Related Questions 33 28th May 2010 14:33
Remoting frame work work with version 2.32 ??? afandino Developers' Forum 7 8th June 2009 16:23
install ispconfig2 ok site dos not work ferasfm Installation/Configuration 5 7th May 2009 20:16
nic bonding debian 4 (or 5) gjcomputer HOWTO-Related Questions 1 24th January 2009 12:28
watchdog_task: NIC Link is Up 10 Mbps Full Duplex Chad Server Operation 0 8th October 2008 03:04


All times are GMT +2. The time now is 11:53.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.