From owner-freebsd-questions Sat Dec 15 12:17:58 2001 Delivered-To: freebsd-questions@freebsd.org Received: from relay3-gui.server.ntli.net (relay3-gui.server.ntli.net [194.168.4.200]) by hub.freebsd.org (Postfix) with ESMTP id 2F8B137B405 for ; Sat, 15 Dec 2001 12:17:55 -0800 (PST) Received: from pc3-card4-0-cust122.cdf.cable.ntl.com ([62.254.251.122] helo=rhadamanth.private.submonkey.net ident=exim) by relay3-gui.server.ntli.net with esmtp (Exim 3.03 #2) id 16FLEV-0006sC-00; Sat, 15 Dec 2001 20:16:31 +0000 Received: from setantae by rhadamanth.private.submonkey.net with local (Exim 3.33 #1) id 16FLD4-0000dv-00; Sat, 15 Dec 2001 20:15:02 +0000 Date: Sat, 15 Dec 2001 20:15:02 +0000 From: Ceri To: Darren Pilgrim Cc: freebsd-questions@freebsd.org Subject: Re: Aliases don't get /32 netmask by default? Message-ID: <20011215201502.GA2292@rhadamanth> Mail-Followup-To: Ceri , Darren Pilgrim , freebsd-questions@freebsd.org References: <3C1B816C.74115797@pantherdragon.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3C1B816C.74115797@pantherdragon.org> User-Agent: Mutt/1.3.24i 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 On Sat, Dec 15, 2001 at 08:59:24AM -0800, Darren Pilgrim wrote: > I noticed that rc.network doesn't give alias addresses 32-bit netmasks > by default. This puzzles me, as alias addresses don't seem to work > completely unless the netmask is 32 bits. Is there a reason why a > 32-bit netmask isn't automatically/forcibly added to an alias when > being added? It's only aliases on the same subnet as an address already assigned to the interface that need the netmask set to /32. For instance, this is fine : setantae@shaft setantae$ grep ifconfig /etc/rc.conf ifconfig_ed0="inet 212.250.77.214 netmask 255.255.255.224" ifconfig_ed0_alias0="inet 172.17.77.214 netmask 255.255.255.0" Only if I wanted to add another address on the 212.250.77.192/27 or 172.17.77.0/24 networks would the netmask be set to /32. Ceri -- keep a mild groove on To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message