Problem with multiple ADSL lines

Linux Advanced Routing and Traffic Control

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

 



Hi all,
I have managed to setup a Fedora 7 box with 3 ethernet cards and two ADSL modem/routers from different suppliers as LARTC recommends. I am able to direct traffic for specific internal IPs either to one or the other ADSL line. However, I am faced with two problems I am struggling for the solution:
 
1. I have opened a few ports on the ADSL router/firewalls to talk to internal hosts; say when someone hits http://myADSL1_IP I would redirect him to 192.168.0.10 ; while if someone hits http://myADSL2_IP I would redirect him to 192.168.0.20. If I have rules such as the following all works well:
   ip rule add from 192.168.0.10 table ADSL1_rules
   ip rule add from 192.168.0.20 table ADSL2_rules
Unfortunately, if I want to do the reverse it does not work. I can't have a host prefer one ADSL line, but still receive traffic from the other ADSL line. It may sound weird, but I only want to have one host reply to any of the two IPs, either from ISP1 or ISP2. With the current configuration I can't. It works ok the default ISP of the host, but can't make it to work for the other.
 
2. I tried using
ip route add equalize default scope global nexthop via myADSL1_IP dev eth2 weight 1 nexthop via myADSL2_IP dev eth1 weight 1
It doesn't seem to perform round robin for every request, more like it caches the route to use per host. Is it possible to force a real round robin or (better) weighted routing without resorting to a new kernel - as suggested in the article? I think I've seen recent threads saying that it is no longer necessary to create a new kernel.
 
Thank you in advance for your help
 
Kostas
--
 
_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux