Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jul 2018 17:54:30 +0200
From:      Tobias Urdin <tobias.urdin@binero.se>
To:        "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>
Cc:        Eugene Grosbein <eugen@grosbein.net>
Subject:   Re: ospf redistribute into openbgpd overwrites directly connected routes
Message-ID:  <3682ba47-ac57-3333-1f6e-4638f00bb892@binero.se>
In-Reply-To: <5B5F2938.5090103@grosbein.net>
References:  <9507d752-6815-92fe-924b-55459710bb9d@binero.se> <5B5F2938.5090103@grosbein.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 07/30/2018 05:08 PM, Eugene Grosbein wrote:
> 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.
>
>
> _______________________________________________
> freebsd-net@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
>
Oh, that's great.

Thanks!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3682ba47-ac57-3333-1f6e-4638f00bb892>