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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 22nd August 2007, 17:42
BlahBlah BlahBlah is offline
Junior Member
 
Join Date: Jun 2007
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Network Card Bonding On CentOS - Setup Question

I have been trying to setup network card bonding on my CentOS server, and I must be missing something, because I cannot get it to work... At all.

My server has two onboard 10/100/1000bT NICs, but I'd like to take advantage of some fault tolerance and redundancy because this server will eventually be colocated a few hundred miles away from me.

The machine is freshly installed and my NIC configurations look like this:

/etc/modprobe.conf
Quote:
alias eth0 e1000
alias eth1 e1000
alias scsi_hostadapter mptbase
alias scsi_hostadapter1 mptsas
alias scsi_hostadapter2 usb-storage
/etc/sysconfig/network-scripts/ifcfg-eth0
Quote:
# Intel Corporation 82573E Gigabit Ethernet Controller (Copper)
DEVICE=eth0
BOOTPROTO=static
BROADCAST=24.123.xxx.xx7
HWADDR=00:30:48:8C:2A:1E
IPADDR=24.123.xxx.xx5
IPV6ADDR=
IPV6PREFIX=
NETMASK=255.255.255.248
NETWORK=24.123.xxx.xx0
ONBOOT=yes
/etc/sysconfig/network-scripts/ifcfg-eth1
Quote:
# Intel Corporation 82573L Gigabit Ethernet Controller
DEVICE=eth1
BOOTPROTO=dhcp
HWADDR=00:30:48:8C:2A:1F
ONBOOT=no
DHCP_HOSTNAME=host.mydomainname.com
So what files do I need to create and edit to get my network bonding going (I'd like to run in mode 5 or 6)? How should the files look when I'm done?

Last edited by BlahBlah; 22nd August 2007 at 18:03.
Reply With Quote
Sponsored Links
  #2  
Old 22nd August 2007, 18:03
BlahBlah BlahBlah is offline
Junior Member
 
Join Date: Jun 2007
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Here is what I've got so far:

/etc/modprobe.conf
Quote:
alias eth0 e1000
alias eth1 e1000
alias scsi_hostadapter mptbase
alias scsi_hostadapter1 mptsas
alias scsi_hostadapter2 usb-storage
alias bond0 bonding
options bond0 miimon=80 mode=6
/etc/sysconfig/network-scripts/ifcfg-bond0
Quote:
CE=bond0
IPADDR=24.123.xxx.xx5
NETMASK=
NETWORK=
BROADCAST=
GATEWAY=
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
/etc/sysconfig/network-scripts/ifcfg-eth0
Quote:
# Intel Corporation 82573E Gigabit Ethernet Controller (Copper)
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
USERCTL=no
MASTER=bond0
SLAVE=yes
/etc/sysconfig/network-scripts/ifcfg-eth1
Quote:
# Intel Corporation 82573L Gigabit Ethernet Controller
DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
USERCTL=no
MASTER=bond0
SLAVE=yes
But... The machine is inaccessible. What am I doing wrong?
Reply With Quote
  #3  
Old 22nd August 2007, 18:28
BlahBlah BlahBlah is offline
Junior Member
 
Join Date: Jun 2007
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I just tried this as well, also to no avail:

/etc/sysconfig/network-scripts/ifcfg-bond0
Quote:
CE=bond0
IPADDR=24.123.xxx.xx5
NETMASK=255.255.255.248
NETWORK=24.123.xxx.xx0
BROADCAST=24.123.xxx.xx7
GATEWAY=24.123.xxx.xx1
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
I used the values originally present on eth0 from the fresh install with working networking.

I did notice an issue with an IP conflict during a reboot. During startup, the machine was trying to bind the IP to (I assume) bond0, but it failed saying the "Another host is using that IP."

For a simple how-to, this is starting to wear on my nerves.
Reply With Quote
  #4  
Old 23rd August 2007, 19:24
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Any errors in your logs? Are you sure that no other system is using that IP?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 23rd August 2007, 21:17
BlahBlah BlahBlah is offline
Junior Member
 
Join Date: Jun 2007
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The only machine using this IP was this same machine, before I started messing with the bonding settings. Everything worked fine when I just had the IP set static on eth0.
Reply With Quote
  #6  
Old 4th September 2007, 16:22
BlahBlah BlahBlah is offline
Junior Member
 
Join Date: Jun 2007
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Anyone have any suggestions? I still am not able to get bonding to work.
Reply With Quote
  #7  
Old 5th September 2007, 20:19
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

I don't know what's wrong..
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 6th February 2008, 23:59
adaughterson adaughterson is offline
Junior Member
 
Join Date: Feb 2008
Location: Denver, Colorado, USA
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

BlahBlah;

Try this:

Code:
cat /proc/net/bonding/bond0
What does that output?

AD
Reply With Quote
Reply

Bookmarks

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
New ISPconfig setup domain question wildgoosed Installation/Configuration 1 1st August 2007 20:30
Question about Centos installation linuxnewbie Installation/Configuration 3 13th April 2007 22:20
Perfect Xen 3.0 setup for Debian gurneyzap HOWTO-Related Questions 4 26th March 2006 11:30
Network interfaces question sulfuric Installation/Configuration 1 31st January 2006 01:27
Debian perfect setup network problem reddogg Installation/Configuration 2 18th January 2006 22:04


All times are GMT +2. The time now is 17:44.


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