LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-31-2007, 04:42 AM   #1
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Rep: Reputation: 30
Bridging network ports for better connectivity.. possible?


Hi guys,

I was thinking, is it possible to bridge 2 NIC together (both each has their public IP) such that I can 'load-balance' connections going through on the 2 NICs, and I can have some form of failover should the NIC fail.

Sounds over-done abit I think, but just wondering.

thanks!
 
Old 01-31-2007, 12:27 PM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
That's not bridging, it's bonding. You can either have redundency (in case of failure) or capacity (aggregated throughput), but not both, SFAIK. Very, very, very few applications would need bonding for thoughput... Pretty much the only thing that could saturate your pipe would be streaming video of very high quality, probably multicast. Is your upstream connection faster than 100Mb? If not, you would never need to aggregate your bandwidth.
 
Old 02-01-2007, 03:49 AM   #3
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Original Poster
Rep: Reputation: 30
currently both up and down is 10Mb average

just exploring options... because we initially plan the setup as such. Is there a guide to setting it up?
 
Old 02-07-2007, 09:56 PM   #4
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Original Poster
Rep: Reputation: 30
are there tools to see if the bonding works fine.. and data is being transferred on both channel?

are there tools to monitor it too?

so basically.. if i am using RHEL4, i just add entry for alias to modprobe.conf, and create new ifcfg-bond# , point both my physical surface MASTER will be bond#, and thats that yah?

I base this on RHEL3 documents... can't seem to find rhel4 ones
 
Old 02-08-2007, 03:56 AM   #5
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Original Poster
Rep: Reputation: 30
Some updates.

My server has basically 2 source of traffic:

1 end is public ip; that's where the WWW is.
1 end is private ip; that's to my dB and file server.

This server has 4 ethernet ports, and I want to try to do bonding for each pair. I have successfully created bond0 for the private end,
but I can't get bond1 (for public) to work. I keep getting the following errors:

Code:
Bringing up interface bond1:  bonding device bond1 does not seem to be present, delaying initialization.
There seems to be many ways of configuring, among the already very limited data i can find online, as I am using RHEL4.

You guys got any similiar situation and managed to solve it? I've read about people having problems with multiple bond interfaces. Some couldn't solve it, some did - but their solutions can't work for me.
 
Old 02-08-2007, 08:01 PM   #6
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Original Poster
Rep: Reputation: 30
anyone with similiar problems?

As of now, I have 4 ethernet interfaces:

eth0, eth1, eth2, eth3

eth2 and eth3 are bonded to bond0 (private ip) and it works fine
eth0 and eth1 is supposed to be bonded to bond1 (public) but it can't work.

eth0
Code:
DEVICE=eth0
BOOTPROTO=none
HWADDR=00:15:C5:60:70:4E
ONBOOT=yes
TYPE=Ethernet
MASTER=bond1
SLAVE=yes
USERCTL=no


eth1
Code:
DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
TYPE=Ethernet
MASTER=bond1
SLAVE=yes
USERCTL=no


bond1
Code:
DEVICE=bond1
BOOTPROTO=none
ONBOOT=yes
USERCTL=no
NETWORK=<network address>
NETMASK=<subnet>
IPADDR=<IP ADDR>
modprobe
Code:
install bon0 /sbin/modprobe -a eth2 eth3 && /sbin/modprobe bonding
alias bond0 bonding
options bond0 -0 bond0 mode=balance-rr miimon=100
alias bond1 bonding
install bond1 /sbin/modprobe --ignore-install bonding -o bond1 mode=balance-alb miimon=50
For modprobe I have tried many other combination but to no avail

Last edited by Swakoo; 02-08-2007 at 08:26 PM.
 
Old 02-08-2007, 08:42 PM   #7
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Original Poster
Rep: Reputation: 30
furthur updates:

I tried using max_bonds, and although restarting the service did not spew out errors, it doesn't work too. Still can't ping.
 
Old 02-12-2007, 12:16 AM   #8
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Original Poster
Rep: Reputation: 30
anyone....?
 
Old 02-19-2007, 04:32 AM   #9
shinobi59
Member
 
Registered: Oct 2004
Location: Dimension X
Distribution: All
Posts: 60

Rep: Reputation: 15
try using bond0

I was curious why you're using bond1 instead of bond0. Multiple bond interfaces are only supported in RHEL4 Update 2 and later. What update of RHEL4 are you using?
 
Old 02-20-2007, 09:16 PM   #10
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Original Poster
Rep: Reputation: 30
ah that is interesting, i didn't know about that.

I used a mix of redhat update installation (as they were installed at different times)

is there anyway i can find out if the one i am doing bonding on is update2 and beyond?

reason why i am using bond1 is because i have 4 NIC, need to bond into 2 pairs each: bond0 and bond1
 
Old 02-21-2007, 03:29 PM   #11
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Sorry for the lack of responses to your thread, only just seen it now myself. are you still after advice here?

if you're still having the issues as above, do you actually get eth0 and eth1 visible at all in an ifconfig output? in my experience (which i admit isn't huge) you'll get both those interfaces up before the bond itself comes up. is the MAC correct for eth0? do you *need* that mac in there? could be throwing a spanner in the works, but culd be needed to force a certain device to a certain interface number. if so though, i'd be looking to enforce that on all eth interfaces, not just that one.

also you've not made any mention of /proc/net/bonding/bond1, does that exist, and tell you anythign about what's there?

i'd not heard anything about the limitations on the number of bonds on rhel 4, but then have little reason to really, sounds pretty unlikely to me though, and certainly a nasty bug if so.
 
Old 02-22-2007, 09:30 PM   #12
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by acid_kewpie
Sorry for the lack of responses to your thread, only just seen it now myself. are you still after advice here?

if you're still having the issues as above, do you actually get eth0 and eth1 visible at all in an ifconfig output? in my experience (which i admit isn't huge) you'll get both those interfaces up before the bond itself comes up. is the MAC correct for eth0? do you *need* that mac in there? could be throwing a spanner in the works, but culd be needed to force a certain device to a certain interface number. if so though, i'd be looking to enforce that on all eth interfaces, not just that one.

also you've not made any mention of /proc/net/bonding/bond1, does that exist, and tell you anythign about what's there?

i'd not heard anything about the limitations on the number of bonds on rhel 4, but then have little reason to really, sounds pretty unlikely to me though, and certainly a nasty bug if so.
yeah man, dying for some info from you experts here I scour the net but not much info that is relevant. A lot of people having multiple bond interface problem, but none of the solution work.

/proc/net/bonding/bond1 doesn't exist, thus my problem. It doesn't generate it . I wonder why.

All my interfaces are working fine alone/
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bridging a wired network to a wifi network bobmcobob Linux - Wireless Networking 2 07-18-2008 06:36 PM
OpenVPN Bridging Connectivity Issue (possible TAP problem?) SquishyMarbles Linux - Networking 2 09-28-2006 10:28 PM
Bridging Network depam Linux - Software 5 02-22-2006 08:42 AM
network bridging iNET_boss Linux - Wireless Networking 6 11-07-2005 07:11 AM
I need to lock some ports between 2 workgroups but retain LAN connectivity... jamal555 Linux - Networking 2 04-22-2005 05:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration