From owner-freebsd-net@freebsd.org Mon Jul 30 15:54:34 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EBB23105A435 for ; Mon, 30 Jul 2018 15:54:33 +0000 (UTC) (envelope-from tobias.urdin@binero.se) Received: from smtp-01.ognet.se (smtp-01.ognet.se [83.168.200.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6362577B2C for ; Mon, 30 Jul 2018 15:54:33 +0000 (UTC) (envelope-from tobias.urdin@binero.se) Received: from [172.16.80.35] (unknown [172.16.80.35]) by smtp-01.ognet.se (Halon) with ESMTPSA id d831c0af-9410-11e8-9374-0050568164d6; Mon, 30 Jul 2018 17:54:30 +0200 (CEST) Subject: Re: ospf redistribute into openbgpd overwrites directly connected routes To: "freebsd-net@freebsd.org" References: <9507d752-6815-92fe-924b-55459710bb9d@binero.se> <5B5F2938.5090103@grosbein.net> Cc: Eugene Grosbein From: Tobias Urdin Message-ID: <3682ba47-ac57-3333-1f6e-4638f00bb892@binero.se> Date: Mon, 30 Jul 2018 17:54:30 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <5B5F2938.5090103@grosbein.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jul 2018 15:54:34 -0000 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!