From owner-freebsd-net@FreeBSD.ORG Tue Aug 24 00:33:06 2010 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AEA8E10656A8 for ; Tue, 24 Aug 2010 00:33:06 +0000 (UTC) (envelope-from if@xip.at) Received: from chile.gbit.at (ns1.xip.at [193.239.188.99]) by mx1.freebsd.org (Postfix) with ESMTP id 1BD808FC21 for ; Tue, 24 Aug 2010 00:33:05 +0000 (UTC) Received: (qmail 30031 invoked from network); 24 Aug 2010 02:33:04 +0200 Received: from unknown (HELO filebunker.xip.at) (86.59.10.180) by chile.gbit.at with (DHE-RSA-AES256-SHA encrypted) SMTP; 24 Aug 2010 02:33:04 +0200 Date: Tue, 24 Aug 2010 02:33:03 +0200 (CEST) From: Ingo Flaschberger To: "Li, Qing" In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Cc: net@freebsd.org Subject: RE: funny ECMP 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: Tue, 24 Aug 2010 00:33:06 -0000 Dear Li, nice to hear from you. 1st: i have send in a bugfix: http://www.freebsd.org/cgi/query-pr.cgi?pr=149917 >> >> I have changed the route selection code of ecmp to >> balance only between routes of the same weight. >> (see attached file) > >> As Qing Li mentioned months ago, there are problems with static routes >> and interfaces. >> > > Do you have the exact link to the email thread? > There were no pending ECMP related issues since my last round of > commits > as far as I can remember. http://lists.freebsd.org/pipermail/freebsd-net/2010-January/024420.html http://lists.freebsd.org/pipermail/freebsd-net/2010-February/024539.html >> Example 1: >> ifconfig em1 alias 10.13.13.90/24 >> ping 10.13.13.95 ok >> route add 10.13.13.0/24 10.11.11.1 -weight 2 >> ping 10.13.13.95 broken (arpresolve: can't allocate llinfo for >> 10.13.13.95) >> > > Could you please explain a bit on exactly what you try to > accomplish here with this configuration? rebuilding my core-routers. it's a very special setup: 2 redundat core routers, connected via ospf (quagga), vrrp to server-side. currently I use a very modfied ucarp version because freebsd 6 only allows on route. problem is with standard freebsd and carp, that there is at the failover router a via ospf received route to the server-side interface. when now carp tries to add the route during failover, it fails. and seconds later the ospf route times out. so, i hoped to use carp, quagga and freebsd ecmp to be able to avoid this problems now. so I need route-merics (weights?) to prefer direct interface routes (connected) before static ones. perhaps I also need to change quagga to send also the merics to the kernel, as in differnce to, for example, cisco router, connected and static routes have the same weight. >> deleting the last static multipath routes seems to affect?, destroy? >> the interface route. >> system crashes in: >> /usr/src/sys/net/route.c:370 >> rn = rnh->rnh_matchaddr(dst, rnh); >> if (rn && ((rn->rn_flags & RNF_ROOT) == 0)) { >> newrt = rt = RNTORT(rn); >> here -> RT_LOCK(newrt); >> RT_ADDREF(newrt); >> if (needlock) >> > > I will take a look. thanks. Kind regards, Ingo Flaschberger