[dev] How to pass gateways ip dynamically in BGP connection with multihop

SANDEEP KUMAR sandeepkumar2016000 at gmail.com
Sat Feb 19 05:49:44 UTC 2022


With OSPF connection between Node1(FRR) and Node X route learn
automatically but we don't want to run OSPF between Node1 and NodeX and
here following is requirement


Node 1(FRR)ß---------à Node X ß-------------à Node 3(FRR)



Node X consists of Node X-master and Node X1-worker1, Node X-worker2, Node
X-worker3,...,Node X-workerN. Node X-master knows all details of the
workers. *Can we have BGP connection only between Node 1 and Node X-master
and feed next hop details about workers to Node 1 over this BGP connection
? *We want to avoid running OSPF/BGP between workers and Node1.





Node 1(FRR) ß---------à Node X-masterß-------------à Node 3(FRR)

         ß---------à Node X-worker1 ß-------------à Node 3(FRR)

         ß---------à Node X-worker2 ß-------------à Node 3(FRR)

         ß---------à Node X-worker3 ß-------------à Node 3(FRR)

                  .

                                 .

                                 .

        ß---------à Node X-workerN ß-------------à Node 3(FRR)



Thanks & Regards,
Sandeep Kumar

On Thu, Feb 17, 2022 at 11:23 PM Xiaodong Xu <stid.smth at gmail.com> wrote:

> Hi Sandeep,
>
> 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.
>
> 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.
>
> Regards,
> Xiaodong
>
> On Thu, Feb 17, 2022 at 5:50 AM SANDEEP KUMAR <
> sandeepkumar2016000 at gmail.com> wrote:
>
>> Hi All,
>>
>>
>>
>> We have a 3 node setup where
>>
>>
>>
>>    Node 1(FRR)ß---------à Node X ß-------------à Node 3(FRR)
>>
>>
>>
>> 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 –
>>
>>
>>
>> ip route 192.168.23.3 255.255.255.255 192.168.12.2
>> neighbor 192.168.23.3 ebgp-multihop 2
>>
>>
>>
>> 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 (*many gateways for load balancing*)
>>
>>
>> Thanks & Regards,
>>
>> Sandeep Kumar
>> _______________________________________________
>> dev mailing list
>> dev at lists.frrouting.org
>> https://lists.frrouting.org/listinfo/dev
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.frrouting.org/pipermail/dev/attachments/20220219/28d5a175/attachment-0001.htm>


More information about the dev mailing list