Hi David,
I read up about multipath routing and ecmp. It seems to do what I am
looking for.
Thank you
Markus
-----Original Message-----
From: David Ahern
Sent: Sunday, July 7, 2019 2:24 PM
To: Markus Moeller ; netdev@vger.kernel.org
Subject: Re: More complex PBR rules
On 7/6/19 5:06 PM, Markus Moeller wrote:
Hi Network developers
I am new to this group and wonder if you can advise how I could
implement more complex PBR rules to achieve for example load balancing.
The requirement I have is to route based on e.g. a hash like:
hash(src-ip+dst-ip) mod N routes via gwX 0<X<=N ( load balance
over N gateways )
Have you tried multipath routing? Does that not work for you?
This would help in situations where I can not use a MAC for identifying
a gateway ( e.g. in cloud environments) .
Could someone point me to the kernel source code where PBR is performed
?
net/core/fib_rules.c