I'm bonding interfaces in CentOS... What IP address do I assign to ifcfg-bond0??

Hi everyone and thank you so much for your time. So I'm using a CentOS box as a router. I'm attempting to use it as a Link-balancer/aggregator. I have 4 internet lines. Two T-1's and two DSL lines.

So anyways I'm changing the IP addresses but lets say I have the following. w/ Gateway w/Gateway w/Gateway w/Gateway

So I've assigned the IP addresses to all the interfaces... Here's an example of 1



So I have such configuration on 4 ethernet ports that I want to bond.

I want to use mode 5 so I have the /etc/modprobe.conf configured as such

alias bond0 bonding
options bond0 miimon=80 mode=5

So my question is... for /etc/sysconfig/network-scripts/ifcfg-bond0 configured as such...

IPADDR=<ip address>

I'm not sure what to configure the IP address as... Do I give it an external from one of the links? Do I give it multiple IP addresses? Do I give it an internal address??

THanks a ton!!
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

So you ethX files are slaves with no IP addresses.

And your bond file gets at least one IP Address.  Are you making one bond or two?

If you make two, you can combine two of them, which two, you should know as per your network design.

Here is an example for you.  I hope we are talking about the same kind of bonding.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
it_opswatAuthor Commented:
Ok... I've been reading around a bit and I think I have the wrong idea. Can this type of bonding be used to Load Balance WAN links? Or can it only be used to load balance LAN's??

I'm just curious because I 'm trying to do this to create an auto-failover for my office internet. Like I said I have 4 connections to the internet. Two T-1's... and two DSL's... I'm trying to create one bond that with mode5 which will aggregate the bandwidth but also provide failover.

If I can't provide redundant access to the internet with this sort of bonding do you have any idea how I can do this?
it_opswatAuthor Commented:
Ok, so I'm gonna give you all the points cause your answer is correct... I realize that after looking around some more. however, what I do realize is that I had the wrong idea for what this was used for.

I am looking for a way using CentOS to use my 4 different internet connections and have it auto-failover or even aggregate the bandwidth if possible.

If you have any idea on that please let me know. Thanks
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.