From owner-freebsd-net@FreeBSD.ORG Fri Dec 2 10:09:41 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 31F5816A440 for ; Fri, 2 Dec 2005 10:09:41 +0000 (GMT) (envelope-from jay2xra@yahoo.com) Received: from web51608.mail.yahoo.com (web51608.mail.yahoo.com [206.190.38.213]) by mx1.FreeBSD.org (Postfix) with SMTP id E62C443DDC for ; Fri, 2 Dec 2005 10:09:21 +0000 (GMT) (envelope-from jay2xra@yahoo.com) Received: (qmail 65996 invoked by uid 60001); 2 Dec 2005 10:09:14 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=QyBJiwguc8cuX//l/QWPYcyrcrjItSLyutD8pxxuC+xEkeDu21urFRmmuIvIDO/PDPvkZdjJvrFG2jcm72AXtYhEd1ekGhPZ4KBErz7o2tEGrmyt0g9Gkxz0XC7dha7yd2GDA5s6gbqB7dgQhZValXgwOCaK0O9hdmPo75b+gOA= ; Message-ID: <20051202100914.65994.qmail@web51608.mail.yahoo.com> Received: from [202.90.128.21] by web51608.mail.yahoo.com via HTTP; Fri, 02 Dec 2005 02:09:14 PST Date: Fri, 2 Dec 2005 02:09:14 -0800 (PST) From: Mark Jayson Alvarez To: Ruslan Ermilov In-Reply-To: <20051202081605.GR20961@ip.net.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Atanas Yankov , freebsd-net@freebsd.org Subject: Re: how to set a route to an AF_LINK type 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: Fri, 02 Dec 2005 10:09:41 -0000 Hi, Ruslan Ermilov wrote: On Thu, Dec 01, 2005 at 11:27:19PM -0800, Mark Jayson Alvarez wrote: > > Hi, > > I'm not sure what I did wrong. My carp setup with 2 machines sharing 1 > virtual ip is working perfect for 3 days now, until today, I got these > messages in /var/log/messages > > kernel: carp: incorrect hash > arp_rtrequest:bad gateway 10.10.8.146 (!AF_LINK) > > googling brought me to this link: > > http://lists.freebsd.org/pipermail/freebsd-net/2004-January/002608.html > > However, It doesn't show how to resolve the problem. After rebooting > the machine, it still doesn't work (when it is supposed to) > Netstat -rn gives me: > > default 10.10.8.254 UGS 0 1074 xl0 > 10.10.8/24 link#1 UC 0 0 xl0 > 10.10.8.112 00:0e:a6:c9:ac:19 UHLW 1 46 xl0 > 1186 > 10.10.8.254 00:01:02:9a:7f:c3 UHLW 2 1 xl0 > 827 > 127.0.0.1 127.0.0.1 UH 0 0 lo0 > > > Is the route type (AF_LINK) configurable? where? How will I know if it is an AF_LINK type? > Rebooting doesn't fix the corrupted routing table either. > Any idea how to eliminate the problem? > >It's the gateway's address family that is AF_LINK, not a "route >type". >For example, routes for 10.10.8.112 and 10.10.8.254 have >gateways of >type AF_LINK (Ethenet addresses). I don't know about this specific >problem, but adding a route with AF_LINK gateway can be done >using a >route(8) command, for example: ># route add -host 1.2.3.4 -link :0.1.2.3.4.5 -ifp lo0 >Which doesn't make any sense, and is presented only to >demonstrate >the ability to add AF_LINK gateway. The following command adds >an >"ARP route" through em0 which doesn't have a corresponding >network, >and is otherwise not possible to do with the arp(8) command: ># route add -host 1.2.3.4 -link :0.1.2.3.4.5 -ifp em0 -iface >add host 1.2.3.4: gateway :0.1.2.3.4.5 ># arp -n 1.2.3.4 >? (1.2.3.4) at 00:01:02:03:04:05 on em0 permanent [ethernet] Ok, so how will I go about my problem? I tried reinstalling FreeBSD from scratch yet it still doesn't work. Any more idea? Thanks. --------------------------------- Yahoo! DSL Something to write home about. Just $16.99/mo. or less