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.

10.0.0.3 w/ Gateway 10.0.0.1

172.16.0.3 w/Gateway 172.16.0.1

192.168.0.3 w/Gateway 192.16.0.1



10.100.0.3 w/Gateway 10.100.0.1

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

/etc/sysconfig/network-scripts/ifcfg-eth0

bootproto=none
onboot=yes
HWADDR=macaddress
IPADDR=192.168.0.3
NETMASK=255.255.255.248
GATEWAY=192.168.0.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...

DEVICE=bond0
IPADDR=<ip address>
NETMASK=
NETWORK=
BROADCAST=
GATEWAY=
ONBOOT=yes
BOOTPROTO=none
USERCTL=no

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!!
LVL 1
it_opswatAsked:
Who is Participating?
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.

farzanjCommented:
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.

http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Deployment_Guide/s2-networkscripts-interfaces-chan.html
0

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?
0
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
0
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.