From owner-freebsd-questions Fri Nov 29 15:16: 7 2002 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 5381C37B401 for ; Fri, 29 Nov 2002 15:16:06 -0800 (PST) Received: from mail.k12us.com (mail.k12us.com [65.112.222.15]) by mx1.FreeBSD.org (Postfix) with SMTP id 9651C43EC5 for ; Fri, 29 Nov 2002 15:16:05 -0800 (PST) (envelope-from cweimann@k12hq.com) Received: (qmail 44361 invoked by uid 1001); 29 Nov 2002 23:15:54 -0000 Date: Fri, 29 Nov 2002 18:15:54 -0500 From: Christopher Weimann To: freebsd-questions@FreeBSD.ORG Subject: Aliasing lo0 Message-ID: <20021129181554.B88969@mail.k12us.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-AntiVirus: scanned for viruses by AMaViS 0.2.1 (http://amavis.org/) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I needed to put an alias on lo0 for 127.0.0.2 and I made the mistake of assuming this would work like any other interface but that isn't the case. ifconfig inet lo0 127.0.0.2 netmask 255.255.255.255 alias results in an ip that I can ping but when I startup dnscache and ask it to listen on that ip it won't respond to queries. ( Yes queries from the same host ) If I switch the netmask to 255.0.0.0 ( which goes completely against the man page for ifconfig ) and everything works great. Also /etc/defaults/rc.conf shows... #ifconfig_lo0_alias0="inet 127.0.0.254 netmask 0xffffffff" # Sample alias entry. If I follow that sample ( note the netmask ) things won't work right. Am I missing something or is lo0 treated differently for some reason? FreeBSD 4.5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message