Networking Forums

Networking Forums > Computer Networking > Linux Networking > adsl + cable multiple connection problem

Reply
Thread Tools Display Modes

adsl + cable multiple connection problem

 
 
alexp
Guest
Posts: n/a

 
      04-15-2004, 11:10 PM
I have a multiple connection (ADSL + Cable) running for almost a year.
I followed the instructions of Christoph Simon
(http://www.ssi.bg/~ja/nano.txt) and Julian Anastasov
(http://www.ssi.bg/~ja/dgd-usage.txt):
- patched a brand new kernel (2.4.25) with Anastasov's scripts
(http://www.ssi.bg/~ja/routes-2.4.24-9.diff which works with 2.4.25
kernel);
- configured the kernel to have "equal cost multi path" enabled;
- compiled the kernel and modules and installed them;
- installed iproute2 and builded a script like Simon's to manage
multiple connections and Dead gateway detection;
- wrote a iptables based firewall.

My Linux box have two public static IP adresses (ADSL + Cable) and one
private IP for the LAN and DMZ networks.

The Cable modem is connected to eth1 and the ADSL modem is set up as
RFC1483 Bridging so I have to run adsl-start (pppoe + pppd) to start
the ppp0 interface which is connected to the eth0 interface.

I expected that, when one of the connections got down, the other one
would carry all the load. It happens this way when the Cable
connection fails.
But when the ADSL connection fails, ppp0 interface disappears and the
supposedly static routes go away too. Specially the ip rule that
manages the load balancing:

ip route add default table 222 proto static equalize \
nexthop via $GWE1 dev $IFE1 weight 1 \
nexthop via $GWE2 dev $IFE2 weight 1

On the one hand, Anastasov gives an example like this one and says
that this rule (with "proto static") should survive even if ppp0 is
down.
On the other hand, Simon says that there is no support for PPP, PPPoE,
etc.(section 1.2. Bad news).

Can anyone give me a clue?

Thanks
Alex
 
Reply With Quote
 
 
 
 
alexp
Guest
Posts: n/a

 
      04-17-2004, 01:55 PM
Here is the answer that Julian Anastasov send me!!!


Hello Alexandre,

On Fri, 16 Apr 2004, Alexandre Pereira wrote:


>> I don't know if you have enough time to read my message and answer me,
>> but I can't solve this problem by myself so I'm sending this to you.
>>
>> I have a multiple connection (ADSL + Cable) running for almost a year.
>> I followed the instructions of Christoph Simon
>> (http://www.ssi.bg/~ja/nano.txt) and yours
>> (http://www.ssi.bg/~ja/dgd-usage.txt):
>> - patched a brand new kernel (2.4.25) with your scripts
>> (http://www.ssi.bg/~ja/routes-2.4.24-9.diff which works with 2.4.25
>> kernel) [I've tried with other kernels before but always the same problem];
>> - configured the kernel to have "equal cost multi path" enabled;
>> - compiled the kernel and modules and installed them;
>> - installed iproute2 and builded a script like yours to manage multiple
>> connections and Dead gateway detection;
>> - wrote a iptables based firewall.
>>
>> My Linux box have two public static IP adresses (ADSL + Cable) and one
>> private IP for the LAN and DMZ networks.
>>
>> The Cable modem is connected to eth1 and the ADSL modem is set up as
>> RFC1483 Bridging so I have to run adsl-start (pppoe + pppd) to start the
>> ppp0 interface which is connected to the eth0 interface.
>>
>> I expected that, when one of the connections got down, the other one
>> would carry all the load. It happens this way when the Cable connection
>> fails.
>> But when the ADSL connection fails, ppp0 interface disappears and the
>> supposedly static routes go away too. Specially the ip route that
>> manages the load balancing:
>>
>> ip route add default table 222 proto static equalize \
>> nexthop via $GWE1 dev $IFE1 weight 1 \
>> nexthop via $GWE2 dev $IFE2 weight 1
>>
>> On the one hand, you give an example like this one and say that this
>> rule (with "proto static") should survive even if ppp0 is down.



proto static can survive device state change but not
device unregistration. It is a common case the ppp devices to
disappear. This is why recent 2.4 kernels automatically delete
the whole multipath route. The main problem is that the kernel
has such organization of the network devices that does not allow
device that is unregistered and registered again to get its place back
in the nexthop. The reason for this is that each time device is
registered a new unqiue interface index is allocated, it is not
registered by name because this can lead to security risks (another
device replaces the unregistered in routes).


>> On the other hand, Simon says that there is no support for PPP, PPPoE,
>> etc.(section 1.2. Bad news).



Yes, nobody can survive unregistered devices Only
iptables works with device names.


>> I would like to know if my configuration is possible or not. And if it
>> is, how can I maintain the routes when the interface ppp0 dies (and
>> disapears from the 'ip addr' list). Can you give me some clues?



The result is that you need a script that is called on
ppp device event (ip-up and ip-down) to replace the multipath
route with new version containing only registered devices (and
probably alive gateways). So, the "routes" patch does not give you
some failover capabilities, may be only for the ADSL gateway.
The benefit is only the proper routing for NAT connections over
multipath route (when it has two or more nexthops via different
ISPs). But also make sure the gateway for the ADSL line will
not be reachable in the ARP table when the line fails. May be
your scripts will need to health check other indirect gateways,
eg. the ISP state.


>> Regards
>> Alexandre Pereira



Regards

--
Julian Anastasov
 
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
Multiple PC's on a single ADSL connection PL Broadband 23 09-04-2006 01:08 PM
use a Linksys BEFSR41 cable modem router to make LAN from ADSL Gateway connection? dave @ stejonda Broadband 0 04-20-2005 12:29 PM
Cable/DSL Router and ADSL Connection Ram Broadband 3 09-23-2004 11:03 AM
Samba problem: WinXP <-> ADSL <-> Internet <-> Cable <-> Linux Just Me Linux Networking 14 04-12-2004 02:07 PM
ADSL cable connection Bob Byrne Windows Networking 3 09-13-2003 05:13 AM



1 2 3 4 5 6 7 8 9 10 11