* More complex PBR rules
@ 2019-07-06 23:06 Markus Moeller
2019-07-07 13:24 ` David Ahern
0 siblings, 1 reply; 3+ messages in thread
From: Markus Moeller @ 2019-07-06 23:06 UTC (permalink / raw)
To: netdev
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 )
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 ?
Thank you
Markus
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: More complex PBR rules
2019-07-06 23:06 More complex PBR rules Markus Moeller
@ 2019-07-07 13:24 ` David Ahern
2019-07-07 23:20 ` Markus Moeller
0 siblings, 1 reply; 3+ messages in thread
From: David Ahern @ 2019-07-07 13:24 UTC (permalink / raw)
To: Markus Moeller, netdev
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: More complex PBR rules
2019-07-07 13:24 ` David Ahern
@ 2019-07-07 23:20 ` Markus Moeller
0 siblings, 0 replies; 3+ messages in thread
From: Markus Moeller @ 2019-07-07 23:20 UTC (permalink / raw)
To: netdev, David Ahern
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-07-07 23:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-06 23:06 More complex PBR rules Markus Moeller
2019-07-07 13:24 ` David Ahern
2019-07-07 23:20 ` Markus Moeller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).