<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 27 February 2018 at 03:13, Anil Venkata <span dir="ltr"><<a href="mailto:anilvenkata@redhat.com" target="_blank">anilvenkata@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>For example, I have a <a href="http://10.1.0.0/24" target="_blank">10.1.0.0/24</a> network and a load balancer is added to it with 10.1.0.10 as VIP and 10.1.0.2(MAC 50:54:00:00:00:01), 10.1.0.3(MAC 50:54:00:00:00:02) as members.</div><div>ovn-nbctl create load_balancer vips:10.1.0.10="10.1.0.2,10.1.<wbr>0.3"</div></div></blockquote><div><br></div><div>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.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div> When I try to send a request from client within the subnet(i.e 10.1.0.33) its not reaching any load balancer members.</div><div>I noticed ARP not resolved for VIP 10.1.0.10.</div><div><br></div><div>I tried to resolve this in two ways</div><div>1) Adding a new ARP reply ovs flow for VIP 10.1.0.10 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.</div><div><br></div><div>2) Second approach,</div><div> a) Using a new MAC(example, 50:54:00:00:00:ab) for VIP 10.1.0.10, and adding a new ARP reply flow with this MAC.</div><div> 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</div><div> sudo ovs-ofctl add-flow br-int "table=24,ip,priority=150,dl_<wbr>dst=50:54:00:00:00:ab,nw_dst=<wbr>10.1.0.2,action=mod_dl_dst:50:<wbr>54:00:00:00:01,load:0x1->NXM_<wbr>NX_REG15[],resubmit(,32)"</div><div>sudo ovs-ofctl add-flow br-int "table=24,ip,priority=150,dl_<wbr>dst=50:54:00:00:00:ab,nw_dst=<wbr>10.1.0.3,action=mod_dl_dst:50:<wbr>54:00:00:00:02,load:0x2->NXM_<wbr>NX_REG15[],resubmit(,32)"</div><div><br></div><div>Which approach will be better or is there any alternate solution?</div><div><br></div><div>Thanks</div><span class="HOEnZb"><font color="#888888"><div>Anil</div><div><br></div></font></span></div>
<br>______________________________<wbr>_________________<br>
discuss mailing list<br>
<a href="mailto:discuss@openvswitch.org">discuss@openvswitch.org</a><br>
<a href="https://mail.openvswitch.org/mailman/listinfo/ovs-discuss" rel="noreferrer" target="_blank">https://mail.openvswitch.org/<wbr>mailman/listinfo/ovs-discuss</a><br>
<br></blockquote></div><br></div></div>