Networking Forums

Networking Forums > Computer Networking > Linux Networking > Help : howto use properly 2 gw under linux ....

Reply
Thread Tools Display Modes

Help : howto use properly 2 gw under linux ....

 
 
Judicator
Guest
Posts: n/a

 
      12-16-2004, 05:02 PM
Hi,

here is my problem :

1 - I have 2 internet connection on the same ISP. One interface is eth0
and the other is eth1. each interface has his Ip.
2 - The ISP will not do a thing to help me about that .... so I cannot
modify any parameters in their side.
3 - Everything is under debian sarge 2.6.9.

- So how can I share internet using both interfaces with load balancing ?
- Is it possible to avoid the use of proxy that must be set on the
client side ?

in google I've found :
- dns trick (does not work here)
- another trick with "ip route add" lines but cannot find the nexthop
program under debian 2.6 kernel ....

thx in advance
 
Reply With Quote
 
 
 
 
ana
Guest
Posts: n/a

 
      12-16-2004, 11:19 PM
"Judicator" <(E-Mail Removed)> wrote in message
news:41c1cd8d$0$25280$(E-Mail Removed)...
> Hi,
>
> here is my problem :
>
> 1 - I have 2 internet connection on the same ISP. One interface is eth0
> and the other is eth1. each interface has his Ip.
> 2 - The ISP will not do a thing to help me about that .... so I cannot
> modify any parameters in their side.
> 3 - Everything is under debian sarge 2.6.9.
>
> - So how can I share internet using both interfaces with load balancing ?


It depends.

Describe in as much detail as possible the other parts of the network
including
EXACTLY what is between eth0 & eth1 and your ISP and
what other local computers (other than the 1 with two NICs) exist.

What load are you trying to balance?


 
Reply With Quote
 
Judicator
Guest
Posts: n/a

 
      12-17-2004, 06:58 AM
ana a écrit :
> "Judicator" <(E-Mail Removed)> wrote in message
> news:41c1cd8d$0$25280$(E-Mail Removed)...
>
>>Hi,
>>
>>here is my problem :
>>
>>1 - I have 2 internet connection on the same ISP. One interface is eth0
>>and the other is eth1. each interface has his Ip.
>>2 - The ISP will not do a thing to help me about that .... so I cannot
>>modify any parameters in their side.
>>3 - Everything is under debian sarge 2.6.9.
>>
>>- So how can I share internet using both interfaces with load balancing ?

>
>
> It depends.
>
> Describe in as much detail as possible the other parts of the network
> including
> EXACTLY what is between eth0 & eth1 and your ISP and
> what other local computers (other than the 1 with two NICs) exist.
>
> What load are you trying to balance?
>
>

Well eth0 and eth1 are each connected to a DSL modem witch acts like a
Level 2 bridge, it's like they doesn't exist for me ...... Exactly like
a lan, no pppoe thing or other dialing process (the modem handles
everything, it's an homemade from my ISP, it's a little risc arch ...)

- There is only 1 computer for that task for the moment ...

- eth0 and eth1 have each an internet IP

the topology of my network looks like that :

INTERNET
_______|________
| |
| |
dsl modem 1 dsl modem 2
| |
| |
eth0 eth1
| |
| |
------| |------
| |
Linux Gateway/router/...
eth2
|
|
|------|------|
| | |
comp1 comp2 compx


All I want to do is to share internet as if there were only one Internet
connection (having eth0 and eth1 bandwith available for each computer).
I know that I cannot have the bandwith with one connection ..... but I
want the gateway to provide eth1 bandwith when eth0's is already in use
..... that why I tought that load balancing may be an answer to that ...


thanks
 
Reply With Quote
 
prg
Guest
Posts: n/a

 
      12-17-2004, 10:50 PM

Judicator wrote:
> ana a écrit :
> > "Judicator" <(E-Mail Removed)> wrote in message
> > news:41c1cd8d$0$25280$(E-Mail Removed)...
> >
> >>Hi,
> >>
> >>here is my problem :
> >>
> >>1 - I have 2 internet connection on the same ISP. One interface is

eth0
> >>and the other is eth1. each interface has his Ip.
> >>2 - The ISP will not do a thing to help me about that .... so I

cannot
> >>modify any parameters in their side.
> >>3 - Everything is under debian sarge 2.6.9.
> >>
> >>- So how can I share internet using both interfaces with load

balancing ?
> >
> >
> > It depends.

[snip]
> >

> Well eth0 and eth1 are each connected to a DSL modem witch acts like

a
> Level 2 bridge, it's like they doesn't exist for me ...... Exactly

like
> a lan, no pppoe thing or other dialing process (the modem handles
> everything, it's an homemade from my ISP, it's a little risc arch

....)
>
> - There is only 1 computer for that task for the moment ...
>
> - eth0 and eth1 have each an internet IP
>
> the topology of my network looks like that :
>
> INTERNET
> _______|________
> | |
> | |
> dsl modem 1 dsl modem 2
> | |
> | |
> eth0 eth1
> | |
> | |
> ------| |------
> | |
> Linux Gateway/router/...
> eth2
> |
> |
> |------|------|
> | | |
> comp1 comp2 compx
>
>
> All I want to do is to share internet as if there were only one

Internet
> connection (having eth0 and eth1 bandwith available for each

computer).
> I know that I cannot have the bandwith with one connection ..... but

I
> want the gateway to provide eth1 bandwith when eth0's is already in

use
> .... that why I tought that load balancing may be an answer to that

....
>
>
> thanks


Here are two places to check for clues that may get you started:
http://lartc.org/howto/lartc.rpdb.mu...ks.html#AEN298
http://linux-ip.net/html/adv-multi-internet.html

These have many entries of interest so check the TOC.

Chances are that both CMs are on the same subnet -- greatly complicates
things. Your ISP may be able/willing to put them on different subnets
but I doubt it.

You could break up your lan into two subnets -- one for each CM.

That would require another nic in your GW and won't gain much over
simply NATing/forwarding some hosts through one CM, others through
the other CM.

This is not automagic load balancing but at least will divide the load.

Still, look through the links above and decide if you think it's worth
the effort to try to get it going. It _will_not_ be easy as you will
face a number of gotchas.

hth,
prg
email above disabled

 
Reply With Quote
 
Judicator
Guest
Posts: n/a

 
      12-19-2004, 07:05 PM
I'm going to try those methods right now :-)

Thanks :-)
 
Reply With Quote
 
Jose Maria Lopez Hernandez
Guest
Posts: n/a

 
      12-21-2004, 05:36 PM
Judicator wrote:
> - another trick with "ip route add" lines but cannot find the nexthop
> program under debian 2.6 kernel ....
>
> thx in advance


This is the "trick" you need. Nexthop it's not a program, it's an "ip"
option. "ip" it's the program that controls the iproute2 routing system
of modern Linuxes. Go to http://lartc.org and download the LARTC doc.
It's all explained there.

--

Jose Maria Lopez Hernandez
Director Tecnico de bgSEC
(E-Mail Removed)
bgSEC Seguridad y Consultoria de Sistemas Informaticos
http://www.bgsec.com
ESPAÑA

The only people for me are the mad ones -- the ones who are mad to live,
mad to talk, mad to be saved, desirous of everything at the same time,
the ones who never yawn or say a commonplace thing, but burn, burn, burn
like fabulous yellow Roman candles.
-- Jack Kerouac, "On the Road"
 
Reply With Quote
 
Antoine EMERIT
Guest
Posts: n/a

 
      12-21-2004, 11:20 PM
Judicator <(E-Mail Removed)> wrote news:41c1cd8d$0$25280
$(E-Mail Removed):
> 1 - I have 2 internet connection on the same ISP. One interface is eth0
> and the other is eth1. each interface has his Ip.
> 2 - The ISP will not do a thing to help me about that .... so I cannot
> modify any parameters in their side.
> 3 - Everything is under debian sarge 2.6.9.
>
> - So how can I share internet using both interfaces with load balancing ?
> - Is it possible to avoid the use of proxy that must be set on the
> client side ?


If you can put another linux box on Internet (i.e. in a data center), you
may create a trunk with the two links. Search for linux EQL or bandwidth
agregation.

Regards

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem accessing Linux Server using Telnet from Windows 2000, though PING is working properly from both sides Sameer Linux Networking 2 04-17-2006 03:08 PM
linux hdcp client howto pu Linux Networking 2 01-24-2005 06:14 PM
* New HOWTO Article - Making a simple Linux Firewall NoNameHere Linux Networking 2 09-15-2004 09:25 PM
Re: Howto enable multicast forwarding on Linux Warren Linux Networking 0 04-01-2004 07:34 PM
Linux router howto - not just NAT Terence Parker Linux Networking 6 12-24-2003 03:07 AM



1 2 3 4 5 6 7 8 9 10 11