From owner-freebsd-net@FreeBSD.ORG Thu Jul 3 07:48:28 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 0C7D61065684 for ; Thu, 3 Jul 2008 07:48:28 +0000 (UTC) (envelope-from stefan.lambrev@moneybookers.com) Received: from blah.sun-fish.com (blah.sun-fish.com [217.18.249.150]) by mx1.freebsd.org (Postfix) with ESMTP id B13938FC20 for ; Thu, 3 Jul 2008 07:48:27 +0000 (UTC) (envelope-from stefan.lambrev@moneybookers.com) Received: by blah.sun-fish.com (Postfix, from userid 1002) id 8A91B1B10E4E; Thu, 3 Jul 2008 09:48:25 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on malcho.cmotd.com X-Spam-Level: X-Spam-Status: No, score=-9.6 required=5.0 tests=ALL_TRUSTED,BAYES_00, GAPPY_SUBJECT autolearn=no version=3.2.4 Received: from hater.haters.org (hater.cmotd.com [192.168.3.125]) by blah.sun-fish.com (Postfix) with ESMTP id 34B0F1B10CAA; Thu, 3 Jul 2008 09:48:23 +0200 (CEST) Message-ID: <486C8446.9060302@moneybookers.com> Date: Thu, 03 Jul 2008 10:48:22 +0300 From: Stefan Lambrev User-Agent: Thunderbird 2.0.0.14 (X11/20080616) MIME-Version: 1.0 To: Peter Jeremy References: <20080703025822.GA24765@server.vk2pj.dyndns.org> In-Reply-To: <20080703025822.GA24765@server.vk2pj.dyndns.org> Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 0.93, clamav-milter version 0.93 on blah.cmotd.com X-Virus-Status: Clean Cc: freebsd-net@freebsd.org Subject: Re: arplookup x.x.x.x failed: host is not on local network 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, 03 Jul 2008 07:48:28 -0000 Hi, Peter Jeremy wrote: > I'm occasionally seeing pairs of messages like the following on > my NAT host: > arplookup 192.168.181.114 failed: host is not on local network > arpresolve: can't allocate route for 192.168.181.114 > Normally this happens in badly configured LAN. Lets say we have two hosts in the same physical network (same switch for example) Host1 is configured 192.168.1.33/24 and Hosts2 have 192.168.1.1/30 Now when a broadcast or other packet is sent from Host1 it can reach Host2 without a problem. But when Host2 try reach directly Host1 it doesn't know how and from here - can't allocate route ... I bet 192.168.181.114 have a wrong network mask ;) > In my particular configuration, there are dual subnets between the NAT > and target host. My initial assumption was that the request was > arriving on the other subnet and I added if_xname to the arplookup > printf() - but that shows that interface matches the IP address. > I've looked back through the mailing lists but the previous reports > of this problem don't match my scenario. > > I've seen this with FreeBSD 5.3, 6.2 and 7.0. > > The (in)frequency of the problem makes me wonder if it's actually a > resource exhaustion problem. > > Has anyone got any suggestions? > > -- Best Wishes, Stefan Lambrev ICQ# 24134177