ospf redistribute into openbgpd overwrites directly connected routes

Eugene Grosbein eugen at grosbein.net
Mon Jul 30 15:05:46 UTC 2018


30.07.2018 21:06, Tobias Urdin wrote:

> I have a setup where we connect a OSPF area with a edge router, this edge router then has a BGP peer to my router
> where it redistributes all OSPF routes into the BGP feed to my router.
> 
> My router is running FreeBSD 11.1 with openbgpd
> 
> root at myrouter:~ # uname -a
> FreeBSD dr20-1-sto1 11.1-RELEASE FreeBSD 11.1-RELEASE #0 r321309: Fri Jul 21 02:08:28 UTC 2017 root at releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
> 
> root at myrouter:~ # pkg info openbgpd
> openbgpd-5.2.20121209_2
> Name           : openbgpd
> Version        : 5.2.20121209_2
> 
> The thing here is that my router has layer 2 access directly to one of the networks that the edge router BGP announces to my router (172.20.104.0/22).
> When my FreeBSD machine boots it will install a directly connected route for 172.20.104.0/22 in my routing table but as soon as openbgpd starts it will
> install a 172.20.104.0/22 route with the nexthop of the edge router instead.
> 
> How can I prevent openbgpd from overwriting the directly connected route?
> Directly connected networks should never be overwritten by a routing protocol but I suspect this is because of the redistribute.
> 
> I've tried messing with metrics, but maybe I to create a rtable and mess around with that?

This problem was fixed in 11.2-RELEASE, just upgrade and you will be fine.




More information about the freebsd-net mailing list