<div dir="ltr">Hi Sandeep,<div><br></div><div>I assume you are talking about the gateway IP like 192.168.12.2 which is configured on Node X. If you don't want to add these routes manually you may run OSPF between Node 1 and each Node X, so that Node 1 may learn from Node X automatically.</div><div><br></div><div>Please be aware that each Node X will need to know how to route to Node 3 as well. The case could be similar, but since Node X is connected to Node 3 directly, you don't have to do anything, unless bgp on Node 3 is running on the loopback interface.</div><div><br></div><div>Regards,</div><div>Xiaodong</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 17, 2022 at 5:50 AM SANDEEP KUMAR <<a href="mailto:sandeepkumar2016000@gmail.com">sandeepkumar2016000@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:large;color:rgb(153,0,0)"><p style="margin:0in;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(32,31,30)">Hi All,</p><p aria-hidden="true" style="margin:0in;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(32,31,30)"> </p><p style="margin:0in;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(32,31,30)">We have a 3 node setup where</p><p aria-hidden="true" style="margin:0in;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(32,31,30)"> </p><p style="margin:0in;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(32,31,30)"> Node 1(FRR)<span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:Wingdings;vertical-align:baseline;color:inherit">ß</span>---------<span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:Wingdings;vertical-align:baseline;color:inherit">à</span> Node X <span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:Wingdings;vertical-align:baseline;color:inherit">ß</span>-------------<span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:Wingdings;vertical-align:baseline;color:inherit">à</span> Node 3(FRR)</p><p aria-hidden="true" style="margin:0in;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(32,31,30)"> </p><p style="margin:0in;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(32,31,30)">So as per the setup FRR is running on Node 1 and Node 3 , and there is an intermediated node NodeX (say Node 2) between them, If we want to establish a BGP connection between Node 1 and Node 3 , we have to add a static route in FRR config like below –</p><p aria-hidden="true" style="margin:0in;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(32,31,30)"> </p><p style="margin:0in;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(32,31,30)">ip route 192.168.23.3 255.255.255.255 192.168.12.2<br>neighbor 192.168.23.3 ebgp-multihop 2<br></p><p aria-hidden="true" style="margin:0in;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(32,31,30)"> </p><p style="margin:0in;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(32,31,30)">Is there a way we could pass the gateway ip dynamically to Node 1 , instead of hard-coding it in config , because for our use case this ip could be 1 or many (<b>many gateways for load balancing</b>)</p><p style="margin:0in;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(32,31,30)"><br></p><p style="margin:0in;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(32,31,30)">Thanks & Regards,</p><p style="margin:0in;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(32,31,30)">Sandeep Kumar</p></div></div>
_______________________________________________<br>
dev mailing list<br>
<a href="mailto:dev@lists.frrouting.org" target="_blank">dev@lists.frrouting.org</a><br>
<a href="https://lists.frrouting.org/listinfo/dev" rel="noreferrer" target="_blank">https://lists.frrouting.org/listinfo/dev</a><br>
</blockquote></div>