Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jul 2018 22:05:28 +0700
From:      Eugene Grosbein <eugen@grosbein.net>
To:        Tobias Urdin <tobias.urdin@binero.se>, freebsd-net@freebsd.org
Subject:   Re: ospf redistribute into openbgpd overwrites directly connected routes
Message-ID:  <5B5F2938.5090103@grosbein.net>
In-Reply-To: <9507d752-6815-92fe-924b-55459710bb9d@binero.se>
References:  <9507d752-6815-92fe-924b-55459710bb9d@binero.se>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
> 
> root@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.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5B5F2938.5090103>