Set src address of the route
Max Tulyev
maxtul at netassist.ua
Thu Jun 19 17:11:04 CEST 2025
Hello,
is it possible for bird (v 2.x) to manually set in the routing table in Linux the source address of the route came via BGP?
i.e. I got the route 192.168.0.0/16 with nexthop 10.1.1.1, and need to export to the kernel something like this:
"ip ro add 192.168.0.0/16 via 10.1.1.1 dev eth0.5 proto bird SRC 172.16.0.1"
The real life example: the bird router connected to Internet Exchange point, learned the route from the peer or the route server. When something from this router wants to connect to something within this route, the source address of this connection will be the address of the Internet Exchange interface, which is not globally routed, and connection will fail.
Any ideas?
Thank you!
--
WBR,
Max Tulyev
MT6561-RIPE - Jabber maxtul at netassi.st - Phone +447441953543 - Telegram @mt6561
More information about the Bird-users
mailing list