> # ip route add default nexthop via 10.10.10.2 dev eth0 nexthop via > 10.10.10.1 dev eth0 I wonder if this is a problem going out over the same NIC to the two=20 providers? All the docs I can find show each provider on its own NIC. =20 I am setting up something similar and was just about to ask if I can=20 do it with one NIC connecting all the providers. That would save me=20 a bunch of precious PCI slots! In my case there are 4 - count 'em - 4 external routers to the=20 Internet! 3 of them are supposed to load-balance for user traffic=20 and the fourth is for a bunch of internal servers with known IP=20 Addresses. So there will be a fwmark policy that puts the routes=20 for those servers into its own table. =20 Life would be great if I could do all this on a single NIC connecting=20 all of those routers. Or do Neils and I both need a separate NIC for=20 each router? thanks - Greg -----Original Message----- From: niels@wxn.nl [mailto:niels@wxn.nl] Sent: Wednesday, July 31, 2002 8:42 AM To: lartc@mailman.ds9a.nl Subject: [LARTC] Multipath route problem Hi ... I have 2 DSL lines all up and running on one RedHat box...=20 I want to balance traffic going out over the two providers The 2 DSL routers Have IP's 10.10.10.1 / 10.10.10.2 ... my linux box = (eth0) has IP 10.10.10.10 connected on a separate ethernet=20 SO I read the http://lartc.org/howto/lartc.rpdb.multiple-links.html = guide (chapter 4.2.2) In my case I have to make these routes # ip route add default nexthop via 10.10.10.1 dev eth0 nexthop via 10.10.10.2 dev eth0 Works Fine!! every connection request going is perfectly balanced sent = out via both gateways But works only on the linux box itself! from the (masqueraded) clients = it doesn't: Every first request which is masqueraded -> gateway 10.10.10.1 (works = fine) Every second request which is masqueraded -> gateway 10.10.10.2 (don't = get reply back) When I change the multipath route so that 10.10.10.2 is the first hop # ip route add default nexthop via 10.10.10.2 dev eth0 nexthop via 10.10.10.1 dev eth0 Gw 10.10.10.2 (fine)=20 Gw 10.10.10.1 (doesn't work ... Only from the linux box itself) So it every time seems to be the second "hop" in the multipath route = which isn't beeing masqueraded properly! Can anyone help? Thanks in advance!=20 Niels! _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Greg, : I wonder if this is a problem going out over the same NIC to the two : providers? All the docs I can find show each provider on its own NIC. : : I am setting up something similar and was just about to ask if I can : do it with one NIC connecting all the providers. That would save me : a bunch of precious PCI slots! You could always try the multi-port ethernet cards. They are usually a bit more expensive, but they give you up to four ports on a single PCI card. Occasionally, you may run into IRQ problems, depending on the card and your motherboard, but this solves your PCI slot availablity problem. The DLink DFE 570TX is the one I use (with the tulip driver), and it works well and reliably. http://www.dlink.com/products/adapters/dfe570tx/ There are, I'm sure many others which people on this list can recommend. : Life would be great if I could do all this on a single NIC connecting : all of those routers. Or do Neils and I both need a separate NIC for : each router? I don't think you *need* to have a separate NIC for each router, but if I were doing it, I'd want each router on a separate network. Good luck, -Martin -- Martin A. Brown --- SecurePipe, Inc. --- mabrown@securepipe.com