Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: niels@wxn.nl
To: lartc@vger.kernel.org
Subject: RE: [LARTC] Multipath route problem
Date: Wed, 31 Jul 2002 15:07:55 +0000	[thread overview]
Message-ID: <marc-lartc-102812811419299@msgid-missing> (raw)
In-Reply-To: <marc-lartc-102812296912357@msgid-missing>

I'm almost sure I don't need more NIC's... (only if you want to separate the
nets physically you do neet more NIC's)

With simple policy routing I already have a succesfull masquerading network
with Source Subnet X going through gateway 1 and Source subnet Y going
through gateway 2  (balancing the load based on subnet)

It even works if those 2 gateways are on totally different subnets! 

just add an extra IP adress to your interface like this:
#Ip addr add 10.50.50.10/24 dev eth0 brd 10.50.50.255

then add a second default route (for example to gateway 10.50.50.254) in
table (for example testtable) like this:
#Ip route add default dev eth0 via 10.50.50.254 table test

Then add a rule to use the table from (for example) a specific subnet
#Ip rule add pref 1000 table test from 192.168.0.0/16

And it's up and running!

SO, I'm sure load balancing (multi path routes) must also be possible

from the local machine I have it already working... so why not via
masquerading?

PS.. I read something about the "src" option in the route add command .. But
it didn't seem to help me out.



-----Original Message-----
From: Greg Scott [mailto:GregScott@InfraSupportEtc.com] 
Sent: 31 July 2002 17:15
To: niels@wxn.nl; lartc@mailman.ds9a.nl
Subject: RE: [LARTC] Multipath route problem


> # 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 
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!
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

  parent reply	other threads:[~2002-07-31 15:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-31 13:42 [LARTC] Multipath route problem niels
2002-07-31 14:54 ` Greg Scott
2002-07-31 15:07 ` niels [this message]
2002-07-31 17:46 ` Martin A. Brown
2002-07-31 17:50 ` William L. Thomson Jr.
2002-07-31 19:55 ` Julian Anastasov
2002-08-01  8:14 ` niels
2002-08-01  9:13 ` William L. Thomson Jr.

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-lartc-102812811419299@msgid-missing \
    --to=niels@wxn.nl \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox