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

Reply via email to