LinuxQuestions.org
Review your favorite Linux distribution.
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 05-27-2010, 02:48 AM   #1
netguy2000
Member
 
Registered: Oct 2003
Location: Karachi, PAKISTAN
Distribution: Redhat, Fedora, Open BSD, FreeBSD, SlackWare
Posts: 115

Rep: Reputation: 15
Question Bonding / Binding multiple interface into 1


I have 4 DSL modems connected with 4 different ISP's my scenario is
a) My FC-2 machine with LAN IP=192.168.10.1 and Bond0 IP=192.168.1.1
b) Modem-A LAN IP= 192.168.1.2 , ext IP=xxx.xxx.xxx.xxx
c) Modem-B LAN IP=192.168.1.3, ext IP=xxx.xxx.xxx.xxx
d) Modem-C LAN IP=192.168.1.4, ext IP=xxx.xxx.xxx.xxx
e) Modem-D LAN IP=192.168.1.5, ext IP=xxx.xxx.xxx.xxx

Modem-A, B, C, and D LAN connected with my FC-2 machine, and all 4 interfaces of my machine are in Bond0,
Now please help me what default Gateway I should set in my FC-2 machine?>??? or I have to set 4 gateways in my machine??
and will this configuration works??

(my scenario will also listed in my home page, please visit Linux section for better understanding)

Please help me in this problem.

Thanks in advance.
Rizwan.
homepage: http://freewaresolutions.150m.com
 
Old 05-27-2010, 11:15 AM   #2
CmdoColin
Member
 
Registered: Jul 2009
Posts: 31

Rep: Reputation: 17
The bond you appear to be talking about is an internal bonding of interfaces. Correct me if I'm wrong but I believe the Linux bonding driver can only be used on the physical interfaces on the device. ie bond interfaces eth0 and eth1.

From what you are saying, you want to bond 4 external routers/modems. From what I understand bonding 4 separate connections can't be done if your ISP isn't allowing it. The ISP if using cisco kit would need to config something like multilink. In this instance you would set your default route to the ISP's router that you connect to, not the individual address the ISP provide.

Even then, 4 external modems, if the ISP was accepting GRE tunnels, then you could tunnel from your Linux device. I honestly don't know how that'd work with broadband. Each line would have a slightly different speed going up and down; so packets would arrive out of order. With windowing and other layer 3 features would much of this traffic get dropped and slow you to single line speed?

The other approach is to do what router guys call load balancing (not be confused with server load balancing - similar concept, different execution/hardware), you don't have a default route, but route certain traffic to certain destinations. With statics this can be very simple, eg:

Code:
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     192.168.0.1     255.255.255.0   UG    0      0        0 eth0
192.168.1.0     192.168.1.1     255.255.255.0   UG    0      0        0 eth1
Although more frequently this would be done dynamically, usually round-robin sharing connectivity. Some more advanced devices will look at usage and load the lines on available bandwidth.

EDIT: For clarity - the bond won't work becuase it's going to be layer 3 routing that causes you problems when you try and route this across the internet. You'd be transmitting packets to the same destination from different source addresses. with TCP/IP it ain't gonna work.

Last edited by CmdoColin; 05-27-2010 at 11:40 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Bonding a virtual interface frd4460 Linux - Networking 3 11-01-2013 03:48 PM
bonding and vlans. Bonding a vlan interface vs applying vlans to a bond interface JasonCzerak Linux - Networking 0 09-11-2008 09:59 AM
Interface bonding question bajones Linux - Newbie 2 07-21-2008 11:40 AM
Bonding / Binding multiple interface into 1 netguy2000 Linux - Networking 15 09-03-2007 04:06 AM
Telnetd binding interface ultrix Linux - Security 2 02-11-2005 04:23 PM

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

All times are GMT -5. The time now is 09:31 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