From owner-freebsd-stable Wed Apr 18 18:51:33 2001 Delivered-To: freebsd-stable@freebsd.org Received: from xena.gsicomp.on.ca (cr677933-a.ktchnr1.on.wave.home.com [24.43.230.149]) by hub.freebsd.org (Postfix) with ESMTP id E411F37B42C for ; Wed, 18 Apr 2001 18:51:29 -0700 (PDT) (envelope-from matt@gsicomp.on.ca) Received: from hermes (hermes.gsicomp.on.ca [192.168.0.18]) by xena.gsicomp.on.ca (8.11.1/8.11.3) with SMTP id f3J1mkp19673; Wed, 18 Apr 2001 21:48:47 -0400 (EDT) (envelope-from matt@gsicomp.on.ca) Message-ID: <001901c0c872$a86bfc10$1200a8c0@gsicomp.on.ca> From: "Matthew Emmerton" To: , "Bob Bishop" Cc: , References: <200104190133.SAA05138@freeway.dcfinc.com> Subject: Re: arplookup xxx.xxx.xxx.xxx failed: host is not on local network Date: Wed, 18 Apr 2001 21:47:06 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > As I recall, Bob Bishop wrote: > > At 16:25 +0200 18/4/01, Webmaster wrote: > >> Since I built world with -stable (RC) sources of april 9, and still > >> after remaking world with sources of april 17, one of my servers > >> (call it host "A") is producing these logs: > >> ... > >> Apr 18 13:18:26 A /kernel: arplookup failed: host is > >> not on local network > >> Any suggestion? > > > > This kind of thing used to happen if you define an alias with a netmask > > other than 255.255.255.255. > > I fear to re-open a frequently hashed discussion, but I still don't > completely understand the use of the netmask on an alias. Basically > the advice here has been "use 0xffffffff". > > But what, exactly, is the reason? How is the netmask employed in > conjunction with an alias? > > For example, the following is what I set up on my first machine that > used aliases. It was a FreeBSD 2.1 web server that served two domains. > > Excerpt from /etc/sysconfig > +--------------- > | network_interfaces="lo0 ix0" > | ifconfig_lo0="inet localhost" > | ifconfig_ix0="inet freebie.dcfinc.com netmask 255.255.255.0" > | ifconfig_ix0_alias0="inet www.larsons.org netmask 255.255.255.0" > +--------------- > > That's what seemed intuitive at the time, and it seem{ed,s} to work. > > So, what's wrong with this picture, or did life change sometime > after 2.1.7 came out? I'm not sure when things changed, but the current state of netmasks and aliases is this: If the aliased IP is on the same subnet, use the all-one's netmask. If the aliased IP is not on the same subnet, use the appropriate netmask for the IP. I've been toying around with the idea of "correcting" this do use the "proper" netmask based on the IP and the subnet, since this is what most other UNIX-like OSes do. Someone else may beat me to it though. -- Matt Emmerton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message