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

Xiaodong Xu stid.smth at gmail.com
Thu Feb 17 17:53:01 UTC 2022


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/20220217/67f819c3/attachment.htm>


More information about the dev mailing list