[ovs-discuss] OVN load balancing on same subnet failing

Guru Shetty guru at ovn.org
Fri Mar 2 01:53:00 UTC 2018

On 27 February 2018 at 03:13, Anil Venkata <anilvenkata at redhat.com> wrote:

> For example, I have a network and a load balancer is added to
> it with as VIP and 50:54:00:00:00:01),
> 50:54:00:00:00:02) as members.
> ovn-nbctl  create load_balancer vips:","

We currently need the VIP to be in a different subnet. You should connect
switch it to a dummy logical router (or connect it to a external router).
Since a VIP is in a different subnet, it sends an ARP for logical router IP
and then things will work.

>  When I try to send a request from client within the subnet(i.e
> its not reaching any load balancer members.
> I noticed ARP not resolved for VIP
> I tried to resolve this in two ways
> 1) Adding a new ARP reply ovs flow for VIP with router port's
> MAC. When client tries to connect VIP, it will use router's MAC. Now router
> gets the packet after load balancing, and will forward the packet to
> appropriate member.
> 2) Second approach,
>    a) Using a new MAC(example, 50:54:00:00:00:ab) for VIP, and
> adding a new ARP reply flow with this MAC.
>    b) As we are not using router, when load balancing changes destination
> ip, VIP MAC has to be replaced with corresponding member's MAC i.e
>       sudo ovs-ofctl add-flow br-int "table=24,ip,priority=150,dl_
> dst=50:54:00:00:00:ab,nw_dst=,action=mod_dl_dst:50:
> 54:00:00:00:01,load:0x1->NXM_NX_REG15[],resubmit(,32)"
> sudo ovs-ofctl add-flow br-int "table=24,ip,priority=150,dl_
> dst=50:54:00:00:00:ab,nw_dst=,action=mod_dl_dst:50:
> 54:00:00:00:02,load:0x2->NXM_NX_REG15[],resubmit(,32)"
> Which approach will be better or is there any alternate solution?
> Thanks
> Anil
> _______________________________________________
> discuss mailing list
> discuss at openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20180301/8caa910f/attachment.html>

More information about the discuss mailing list