From owner-freebsd-questions@FreeBSD.ORG Wed Mar 2 14:30:27 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 72BEE16A4CF for ; Wed, 2 Mar 2005 14:30:27 +0000 (GMT) Received: from mail24.sea5.speakeasy.net (mail24.sea5.speakeasy.net [69.17.117.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C04B43D53 for ; Wed, 2 Mar 2005 14:30:27 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 5921 invoked from network); 2 Mar 2005 14:30:27 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail24.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 2 Mar 2005 14:30:26 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 623794C; Wed, 2 Mar 2005 09:30:26 -0500 (EST) Sender: lowell@be-well.ilk.org To: Mark Edwards References: <44vf8b41fq.fsf@be-well.ilk.org> <81c57d2fd8cc8ed9cf5059593bf3da4a@antsclimbtree.com> <441xazulyr.fsf@be-well.ilk.org> From: Lowell Gilbert Date: 02 Mar 2005 09:30:26 -0500 In-Reply-To: Message-ID: <44y8d6jf25.fsf@be-well.ilk.org> Lines: 32 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: "'questions@freebsd.org'" Subject: Re: arplookup 192.168.1.254 failed: host is not on local network X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Mar 2005 14:30:27 -0000 Mark Edwards writes: > On Mar 1, 2005, at 12:53 PM, Lowell Gilbert wrote: > > >>>> Looking on the net, I found the following suggestion, which does > >>>> cure > >>>> the errors: > >>>> > >>>> /sbin/route add -net 192.168.1.254 -netmask 255.255.255.0 > >>>> -interface 1 > >>>> > >>>> My question is, is that the proper way to deal with this? > >>> > >>> It's not bad. I would use -host instead of -net and -netmask, and it > >>> will fail if the DHCP server ever changes its address, but what you > >>> are doing is is working and fairly likely to stay that way. > >> > >> How would you phrase the command? I just tried -host and couldn't get > >> it to work. > > > > e.g., > > route add -host 172.10.212.2 -interface bge0 > > I tried that syntax and I get errors like this: > > Mar 1 13:12:37 lilbuddy /kernel: arp: 00:0d:72:d7:d9:a1 attempts to > modify permanent entry for 192.168.1.254 on ep1 > > If I use the -net -netmask syntax I don't get the errors. "permanent entry"? Did you put in a static ARP? At any rate, I'd try a /32 mask instead of /24.