From owner-freebsd-net@FreeBSD.ORG Thu Dec 17 11:32:19 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 746F910656A4 for ; Thu, 17 Dec 2009 11:32:19 +0000 (UTC) (envelope-from buchtajz@borsice.net) Received: from mx.sitkom.cz (mx.sitkom.cz [88.146.187.34]) by mx1.freebsd.org (Postfix) with ESMTP id 254F28FC0C for ; Thu, 17 Dec 2009 11:32:18 +0000 (UTC) Received: from spamd.mail.sitkom.cz (mail.mx.sitkom.cz [10.13.126.5]) by mx.mail.sitkom.cz (Postfix) with ESMTP id A9E961C6915; Thu, 17 Dec 2009 12:13:26 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail.mx.sitkom.cz X-Spam-Level: X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.5 Received: from avscan.mail.sitkom.cz (mail.mx.sitkom.cz [10.13.126.5]) by spamd.mail.sitkom.cz (Postfix) with ESMTP id 784151C68FC; Thu, 17 Dec 2009 12:13:26 +0100 (CET) Received: from [10.8.20.20] (buchtajz-notebook-lan.brestek.sfn [10.8.20.20]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx.sitkom.cz (Postfix) with ESMTPSA id 3C4EE1C67F1; Thu, 17 Dec 2009 12:13:26 +0100 (CET) From: Michal Buchtik To: "Li, Qing" In-Reply-To: References: <35F73C4F-3C77-4B40-9D7D-16BEB8FE6EAD@adam.gs> Content-Type: text/plain; charset="UTF-8" Date: Thu, 17 Dec 2009 12:13:11 +0100 Message-ID: <1261048391.1705.54.camel@manwe.buchtikov.borsice.sfn> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP Cc: freebsd-net@freebsd.org Subject: Re: issue with openbgpd + 8.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Dec 2009 11:32:19 -0000 Hi, thanks for help. Li, Qing píše v st 16. 12. 2009 v 15:39 -0800: > Hi, > > You have reported issues regarding openbgp/bgpd exiting > abnormally. Please apply patch: > > http://people.freebsd.org/~qingli/bgpd-patch-121615.diff > > and let me know if it fixes your issue. I performed limited > unit testing. > - bgpd don't terminate, it's OK but there appeared some new problems: TEST: bgpd is running, vlan3 not exists ---------------------------------------------------------------------- # netstat -rnf inet Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 10.8.20.1 UGS 5 135040 bge0 10.8.20.0/24 link#1 U 0 0 bge0 10.8.20.20 link#1 UHS 0 0 lo0 127.0.0.1 link#4 UH 0 35 lo0 $ bgpctl show fib flags: * = valid, B = BGP, C = Connected, S = Static N = BGP Nexthop reachable via this route r = reject route, b = blackhole route flags prio destination gateway *S 48 0.0.0.0/0 10.8.20.1 *C 48 10.8.20.0/24 link#1 *C 48 10.8.20.20/32 link#4 *C 0 127.0.0.1/8 link#0 *C 48 127.0.0.1/32 link#4 # ifconfig vlan3 create # ifconfig vlan3 172.16.1.1/24 # netstat -rnfinet Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 10.8.20.1 UGS 2 136107 bge0 10.8.20.0/24 link#1 U 0 0 bge0 10.8.20.20 link#1 UHS 0 0 lo0 127.0.0.1 link#4 UH 0 35 lo0 172.16.1.0/24 link#6 U 0 0 vlan3 172.16.1.1 link#6 UHS 0 0 lo0 $ bgpctl show fib *C 48 10.8.20.0/24 link#1 *C 48 10.8.20.20/32 link#4 *C 0 127.0.0.1/8 link#0 *C 48 127.0.0.1/32 link#4 C 48 172.16.1.0/24 link#6 /* there is 172.16.1.1/32 link#4 missing and 172.16.1.0/24 is not marked as valid */ # ifconfig vlan3 alias 172.16.1.2/32 $ bgpctl show fib *C 48 10.8.20.0/24 link#1 *C 48 10.8.20.20/32 link#4 *C 0 127.0.0.1/8 link#0 *C 48 127.0.0.1/32 link#4 C 48 172.16.1.0/24 link#6 C 48 172.16.1.2/32 link#6 new alias /32 is added correctly after restart bgpd, it prints this: # netstat -rnfinet Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 10.8.20.1 UGS 6 141282 bge0 10.8.20.0/24 link#1 U 0 0 bge0 10.8.20.20 link#1 UHS 0 0 lo0 127.0.0.1 link#4 UH 0 35 lo0 172.16.1.0/24 link#6 U 0 0 vlan3 172.16.1.1 link#6 UHS 0 0 lo0 172.16.1.2 link#6 UHS 0 0 lo0 => 172.16.1.2/32 link#6 U 0 0 vlan3 $ bgpctl show fib flags: * = valid, B = BGP, C = Connected, S = Static N = BGP Nexthop reachable via this route r = reject route, b = blackhole route flags prio destination gateway *S 48 0.0.0.0/0 10.8.20.1 *C 48 10.8.20.0/24 link#1 *C 48 10.8.20.20/32 link#4 *C 0 127.0.0.1/8 link#0 *C 48 127.0.0.1/32 link#4 *C 48 172.16.1.0/24 link#6 *C 48 172.16.1.1/32 link#4 *C 48 172.16.1.2/32 link#4 *C 48 172.16.1.2/32 link#6 /* So, after bgpd restart, it registered new interface and all routes correctly and routes are valid. When I start bgpd >after< creating vlan3 (without ip adresses), it's behavior is same, but routes in "bgpctl show fib" output are displayed as valid (with *) */