[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: configuring two outgoing gateways



Erik Reuter wrote:
> 
> I have two DSL lines which each have a different gateway and use a
> different static IP address. I have both lines multiplexed onto the same
> wire using a switch and cross-over cables, but I only connect to one DSL
> line at a time on the ethernet card in my Debian box. Sometimes one of
> the DSL lines will go down and I want to switch to the other one, so I
> just swap in a different /etc/network/interfaces file:
> 
> cp /etc/network/interfaces.dsl2 /etc/network/interfaces
> ifdown eth0
> ifup eth0
> 
> It seems to me there must be a better way to utilize the two DSL
> lines. But I'm not sure where to start looking.
> 
> The ultimate would be to utilize the bandwidth of both lines
> simultaneously to simulate one bigger bandwidth line, but I imagine this
> will be difficult to set up.

that won't work the way some might expect. what you can probably do, is
install a 2nd ethernet card in your system, plug it into the switch
if both dsl providers are on seperate networks id reccomend
using seperate switches for each(or if you have a good swithc
seperate VLANs for each). plug it in, setup eth1, and another
route with a lower metric. see the man page for route, while
i haven't done something like this myself, it should work
something along the lines of

route add -net 0.0.0.0 netmask 255.255.255.255 gw YOUR_OTHER_DSL_GATEWAY
metric 1

so if the main route fails the second one will be tried.

nate

-- 
:::
ICQ: 75132336
http://www.aphroland.org/
http://www.linuxpowered.net/
aphro@aphroland.org



Reply to: