* 2 ethernet jacks -> single net connection?
@ 2004-01-07 18:09 James Miller
2004-01-08 4:58 ` Beolach
0 siblings, 1 reply; 6+ messages in thread
From: James Miller @ 2004-01-07 18:09 UTC (permalink / raw)
To: linux-newbie
I've got 2 physical ethernet jacks available to me here. I assume each
processes traffic independently: I've been online at both simultaneoulsy
with 2 different computers, anyway. Since I'll be setting up a
firewall/router here (LRP type thing, with an older computer), I was just
wondering about the possibilities of combining the two into a single
internet connection (should make the connection faster, according to my
understanding). The way I could see this happening physically is that
each jack has a cable going to a NIC in the router/firewall, which in turn
has a NIC that leads to a hub/switch (3 NIC's in the router/firewall).
The router/firewall NATs to/from the two jacks to/from the local network.
Somehow I recall the term "channel bonding" relative to this, though I
don't know if that's really what I'm trying to do. First, I'd just like
to ask if, in principle, what I'm thinking about doing is possible (for
me-bearing in mind that I can likely get the assistance of a certain 3rd
tier Linux-guru-in-training mentioned in an earlier post)? If so, my next
question is: in broad terms, how? It would be nice if one of the
router/firewall distros can more or less automate this setup for me/us.
Input appreciated.
Thanks, James
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: 2 ethernet jacks -> single net connection?
2004-01-07 18:09 2 ethernet jacks -> single net connection? James Miller
@ 2004-01-08 4:58 ` Beolach
2004-01-08 17:13 ` James Miller
0 siblings, 1 reply; 6+ messages in thread
From: Beolach @ 2004-01-08 4:58 UTC (permalink / raw)
To: James Miller; +Cc: linux-newbie
First off, I have no actual experience with this, and I am just going
off the kernel documentation. It is possible, and you even remembered
the term correctly - ethernet channel bonding. What will most likely be
the deciding factor on whether or not you can actually set this up is if
the other end of the two ethernet channels (probably your ISP) supports
bonding. Here's the a direct quote from the relevant kernel documentation.
<BLOCKQUOTE>
Bonding driver support BONDING
Say 'Y' or 'M' if you wish to be able to 'bond' multiple Ethernet
Channels together. This is called 'Etherchannel' by Cisco,
'Trunking' by Sun, and 'Bonding' in Linux.
If you have two Ethernet connections to some other computer, you can
make them behave like one double speed connection using this driver.
Naturally, this has to be supported at the other end as well, either
with a similar Bonding Linux driver, a Cisco 5500 switch or a
SunTrunking SunSoft driver.
This is similar to the EQL driver, but it merges Ethernet segments
instead of serial lines.
To compile this driver as a module, choose M here: the module
will be called bonding.
</BLOCKQUOTE>
Good luck & let us know if you get this working,
Conway S. Smith
James Miller wrote:
> I've got 2 physical ethernet jacks available to me here. I assume each
> processes traffic independently: I've been online at both simultaneoulsy
> with 2 different computers, anyway. Since I'll be setting up a
> firewall/router here (LRP type thing, with an older computer), I was just
> wondering about the possibilities of combining the two into a single
> internet connection (should make the connection faster, according to my
> understanding). The way I could see this happening physically is that
> each jack has a cable going to a NIC in the router/firewall, which in turn
> has a NIC that leads to a hub/switch (3 NIC's in the router/firewall).
> The router/firewall NATs to/from the two jacks to/from the local network.
> Somehow I recall the term "channel bonding" relative to this, though I
> don't know if that's really what I'm trying to do. First, I'd just like
> to ask if, in principle, what I'm thinking about doing is possible (for
> me-bearing in mind that I can likely get the assistance of a certain 3rd
> tier Linux-guru-in-training mentioned in an earlier post)? If so, my next
> question is: in broad terms, how? It would be nice if one of the
> router/firewall distros can more or less automate this setup for me/us.
> Input appreciated.
>
> Thanks, James
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: 2 ethernet jacks -> single net connection?
2004-01-08 4:58 ` Beolach
@ 2004-01-08 17:13 ` James Miller
0 siblings, 0 replies; 6+ messages in thread
From: James Miller @ 2004-01-08 17:13 UTC (permalink / raw)
To: linux-newbie
Thanks for that info, Conway. What's on the other end is actually a
university network, and beyond that their ISP. I have no idea how this
network is set up or the nature of their internet service, and cannot
really even conjecture whether the setup might support such bonding. I
would guess that, in principle, they would not want people doing this sort
of thing (doesn't fit the profile of the student PC user who casually
connects to and uses the network, but is closer to the profile of the
hacker/network abuser). I suppose whether it's supported depends on
whether any of the university's own systems ever need to do this sort of
thing. Anyway, my own motivations would be not so much to soak up as much
of the available bandwidth as possible (I use it most for web browsing and
email, occasional software downloads and system updates [no filesharing,
webserving or things like that]), but to learn something by
experimentation. So, I'll think this over some more and consider the
material you've pointed to and decide how to proceed from there.
Thanks, James
On Wed, 7 Jan 2004, Beolach wrote:
> First off, I have no actual experience with this, and I am just going
> off the kernel documentation. It is possible, and you even remembered
> the term correctly - ethernet channel bonding. What will most likely be
> the deciding factor on whether or not you can actually set this up is if
> the other end of the two ethernet channels (probably your ISP) supports
> bonding. Here's the a direct quote from the relevant kernel documentation.
>
> <BLOCKQUOTE>
> Bonding driver support BONDING
>
> Say 'Y' or 'M' if you wish to be able to 'bond' multiple Ethernet
> Channels together. This is called 'Etherchannel' by Cisco,
> 'Trunking' by Sun, and 'Bonding' in Linux.
>
> If you have two Ethernet connections to some other computer, you can
> make them behave like one double speed connection using this driver.
> Naturally, this has to be supported at the other end as well, either
> with a similar Bonding Linux driver, a Cisco 5500 switch or a
> SunTrunking SunSoft driver.
>
> This is similar to the EQL driver, but it merges Ethernet segments
> instead of serial lines.
>
> To compile this driver as a module, choose M here: the module
> will be called bonding.
> </BLOCKQUOTE>
>
> Good luck & let us know if you get this working,
> Conway S. Smith
>
>
> James Miller wrote:
> > I've got 2 physical ethernet jacks available to me here. I assume each
> > processes traffic independently: I've been online at both simultaneoulsy
> > with 2 different computers, anyway. Since I'll be setting up a
> > firewall/router here (LRP type thing, with an older computer), I was just
> > wondering about the possibilities of combining the two into a single
> > internet connection (should make the connection faster, according to my
> > understanding). The way I could see this happening physically is that
> > each jack has a cable going to a NIC in the router/firewall, which in turn
> > has a NIC that leads to a hub/switch (3 NIC's in the router/firewall).
> > The router/firewall NATs to/from the two jacks to/from the local network.
> > Somehow I recall the term "channel bonding" relative to this, though I
> > don't know if that's really what I'm trying to do. First, I'd just like
> > to ask if, in principle, what I'm thinking about doing is possible (for
> > me-bearing in mind that I can likely get the assistance of a certain 3rd
> > tier Linux-guru-in-training mentioned in an earlier post)? If so, my next
> > question is: in broad terms, how? It would be nice if one of the
> > router/firewall distros can more or less automate this setup for me/us.
> > Input appreciated.
> >
> > Thanks, James
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: 2 ethernet jacks -> single net connection?
@ 2004-01-09 0:15 Juan Facundo Suárez
2004-01-09 5:39 ` Beolach
0 siblings, 1 reply; 6+ messages in thread
From: Juan Facundo Suárez @ 2004-01-09 0:15 UTC (permalink / raw)
To: linux-newbie list
So.., once this modules is compiled, how do i set up two of many eth cards
in one machine to work like this?. May be it's automatically?.
If i have a machine acting as router, and it has 4 eth cards, and two of
these, are connected to another one machine. How can i tell my router, wich
of those are de two i want to use "bonded" ?
Thanks !
----- Original Message -----
From: "Beolach" <beolach@comcast.net>
To: "James Miller" <jamtat@mailsnare.net>
Cc: <linux-newbie@vger.kernel.org>
Sent: Thursday, January 08, 2004 1:58 AM
Subject: Re: 2 ethernet jacks -> single net connection?
| First off, I have no actual experience with this, and I am just going
| off the kernel documentation. It is possible, and you even remembered
| the term correctly - ethernet channel bonding. What will most likely be
| the deciding factor on whether or not you can actually set this up is if
| the other end of the two ethernet channels (probably your ISP) supports
| bonding. Here's the a direct quote from the relevant kernel
documentation.
|
| <BLOCKQUOTE>
| Bonding driver support BONDING
|
| Say 'Y' or 'M' if you wish to be able to 'bond' multiple Ethernet
| Channels together. This is called 'Etherchannel' by Cisco,
| 'Trunking' by Sun, and 'Bonding' in Linux.
|
| If you have two Ethernet connections to some other computer, you can
| make them behave like one double speed connection using this driver.
| Naturally, this has to be supported at the other end as well, either
| with a similar Bonding Linux driver, a Cisco 5500 switch or a
| SunTrunking SunSoft driver.
|
| This is similar to the EQL driver, but it merges Ethernet segments
| instead of serial lines.
|
| To compile this driver as a module, choose M here: the module
| will be called bonding.
| </BLOCKQUOTE>
|
| Good luck & let us know if you get this working,
| Conway S. Smith
--
Facundo Suárez
Neuquén - Argentina
FDSoft
mail y jabber: faco@fdsoft.com.ar
facundo.suarez@ensi.com.ar
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: 2 ethernet jacks -> single net connection?
2004-01-09 0:15 Juan Facundo Suárez
@ 2004-01-09 5:39 ` Beolach
2004-01-19 9:45 ` Juan Facundo Suárez
0 siblings, 1 reply; 6+ messages in thread
From: Beolach @ 2004-01-09 5:39 UTC (permalink / raw)
To: Juan Facundo Suárez; +Cc: linux-newbie list
See the file /usr/src/linux-2.6.0/Documentation/networking/bonding.txt
for more information on how to use ethernet bonding. Quick summary is:
1: Compile kernel with bonding, or compile & insert the module.
2: Compile and install the userspace tool ifenslave as follows:
# cd /usr/src/linux-2.6.0/Documentation/networking
# gcc -Wall -Wstrict-prototypes -O -I/usr/src/linux/include \
ifenslave.c -o ifenslave
# cp ifenslave /sbin/ifenslave
3: Setup bonded interface & enslave ethernet interfaces:
# ifconfig bond0 192.168.0.1
# ifenslave bond0 eth0
# ifenslave bond0 eth1
At this point the bonded interface should work.
Have fun,
Conway S. Smith
Juan Facundo Suárez wrote:
> So.., once this modules is compiled, how do i set up two of many eth cards
> in one machine to work like this?. May be it's automatically?.
> If i have a machine acting as router, and it has 4 eth cards, and two of
> these, are connected to another one machine. How can i tell my router, wich
> of those are de two i want to use "bonded" ?
>
> Thanks !
>
> ----- Original Message -----
> From: "Beolach" <beolach@comcast.net>
> To: "James Miller" <jamtat@mailsnare.net>
> Cc: <linux-newbie@vger.kernel.org>
> Sent: Thursday, January 08, 2004 1:58 AM
> Subject: Re: 2 ethernet jacks -> single net connection?
>
>
> | First off, I have no actual experience with this, and I am just going
> | off the kernel documentation. It is possible, and you even remembered
> | the term correctly - ethernet channel bonding. What will most likely be
> | the deciding factor on whether or not you can actually set this up is if
> | the other end of the two ethernet channels (probably your ISP) supports
> | bonding. Here's the a direct quote from the relevant kernel documentation.
> |
> | <BLOCKQUOTE>
> | Bonding driver support BONDING
> |
> | Say 'Y' or 'M' if you wish to be able to 'bond' multiple Ethernet
> | Channels together. This is called 'Etherchannel' by Cisco,
> | 'Trunking' by Sun, and 'Bonding' in Linux.
> |
> | If you have two Ethernet connections to some other computer, you can
> | make them behave like one double speed connection using this driver.
> | Naturally, this has to be supported at the other end as well, either
> | with a similar Bonding Linux driver, a Cisco 5500 switch or a
> | SunTrunking SunSoft driver.
> |
> | This is similar to the EQL driver, but it merges Ethernet segments
> | instead of serial lines.
> |
> | To compile this driver as a module, choose M here: the module
> | will be called bonding.
> | </BLOCKQUOTE>
> |
> | Good luck & let us know if you get this working,
> | Conway S. Smith
>
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: 2 ethernet jacks -> single net connection?
2004-01-09 5:39 ` Beolach
@ 2004-01-19 9:45 ` Juan Facundo Suárez
0 siblings, 0 replies; 6+ messages in thread
From: Juan Facundo Suárez @ 2004-01-19 9:45 UTC (permalink / raw)
To: linux-newbie list
Never said anything, but thanks a lot, shortly i will be trying to do it,
with two linux machines.
--
Facundo Suárez
Neuquén - Argentina
FDSoft
mail y jabber: faco@fdsoft.com.ar
facundo.suarez@ensi.com.ar
----- Original Message -----
From: "Beolach" <beolach@comcast.net>
To: "Juan Facundo Suárez" <facundo.suarez@ensi.com.ar>
Cc: "linux-newbie list" <linux-newbie@vger.kernel.org>
Sent: Friday, January 09, 2004 2:39 AM
Subject: Re: 2 ethernet jacks -> single net connection?
| See the file /usr/src/linux-2.6.0/Documentation/networking/bonding.txt
| for more information on how to use ethernet bonding. Quick summary is:
|
| 1: Compile kernel with bonding, or compile & insert the module.
|
| 2: Compile and install the userspace tool ifenslave as follows:
| # cd /usr/src/linux-2.6.0/Documentation/networking
| # gcc -Wall -Wstrict-prototypes -O -I/usr/src/linux/include \
| ifenslave.c -o ifenslave
| # cp ifenslave /sbin/ifenslave
|
| 3: Setup bonded interface & enslave ethernet interfaces:
| # ifconfig bond0 192.168.0.1
| # ifenslave bond0 eth0
| # ifenslave bond0 eth1
|
| At this point the bonded interface should work.
|
| Have fun,
| Conway S. Smith
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-01-19 9:45 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-07 18:09 2 ethernet jacks -> single net connection? James Miller
2004-01-08 4:58 ` Beolach
2004-01-08 17:13 ` James Miller
-- strict thread matches above, loose matches on Subject: below --
2004-01-09 0:15 Juan Facundo Suárez
2004-01-09 5:39 ` Beolach
2004-01-19 9:45 ` Juan Facundo Suárez
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox