From owner-freebsd-net@FreeBSD.ORG Wed Feb 6 15:40:09 2008 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 2B53816A47A for ; Wed, 6 Feb 2008 15:40:09 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from 0.mx.codelabs.ru (0.mx.codelabs.ru [144.206.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id AE1E813C4D3 for ; Wed, 6 Feb 2008 15:40:08 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) DomainKey-Signature: a=rsa-sha1; q=dns; c=simple; s=one; d=codelabs.ru; h=Received:Date:From:To:Cc:Message-ID:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:Sender:X-Spam-Status:Subject; b=VgSv6NppsuIFP2I1sIdkzL++FFmw2ot9HI6xFAv/ecAmSftMIVqNSu4WZXEOAbyFQghtzZN1ClY4IVO99lU/DYvObte1FVfk8LOfxaG70LcdQLMtoarYsq9W9y2gbnqwhVsv8AymiyUEjrA82pjHry3pTjzWNmg6e7yOAId0O6o=; Received: from void.codelabs.ru (void.codelabs.ru [144.206.177.25]) by 0.mx.codelabs.ru with esmtpsa (TLSv1:AES256-SHA:256) id 1JMm5n-0001xP-9m; Wed, 06 Feb 2008 18:21:43 +0300 Date: Wed, 6 Feb 2008 18:21:42 +0300 From: Eygene Ryabinkin To: Josef Pojsl Message-ID: References: <20080206144104.GL1122@bonifac.tns.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <20080206144104.GL1122@bonifac.tns.cz> Sender: rea-fbsd@codelabs.ru X-Spam-Status: No, score=-1.8 required=4.0 tests=ALL_TRUSTED,AWL,BAYES_50 Cc: freebsd-net@freebsd.org Subject: Re: ospf cost and route selection (openospfd) 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: Wed, 06 Feb 2008 15:40:09 -0000 Josef, good day. Currently I can not answer your question, sorry. I just have the remark. Wed, Feb 06, 2008 at 03:41:04PM +0100, Josef Pojsl wrote: > ospfctl show rib: > Router 1: > Destination Nexthop Path Type Type Cost Uptime > 0.0.0.2 10.31.2.2 Intra-Area Router 20 00:03:51 > 10.30.1.2/32 10.31.2.2 Intra-Area Network 40 00:03:41 > 10.31.1.2/32 10.31.2.2 Intra-Area Network 70 00:03:51 'Cost' column looks perfectly correct: in order to reach the other router, the path with cost 20 is selected (presumably, WAN X); path to 10.30.1.2/32 costs 20+20: 20 from WAN X interface and 20 from the gre30 on the other end; and path to 10.31 costs 70=20+50, WAN X + gre31 on the other end. The only weird thing is the nexthop value. Your 'netstat -rn' shows routes via gre31 too? If yes, maybe the verbose mode of the openospfd (-v) will show something interesting? -- Eygene