From owner-freebsd-questions Mon Apr 8 12:20:24 2002 Delivered-To: freebsd-questions@freebsd.org Received: from www.kozubik.com (www.kozubik.com [198.78.70.162]) by hub.freebsd.org (Postfix) with ESMTP id C5F2037B404 for ; Mon, 8 Apr 2002 12:19:52 -0700 (PDT) Received: from localhost (john@localhost) by www.kozubik.com (8.11.0/8.11.0) with ESMTP id g38JIJh37511; Mon, 8 Apr 2002 12:18:20 -0700 (PDT) (envelope-from john@kozubik.com) Date: Mon, 8 Apr 2002 12:18:19 -0700 (PDT) From: John Kozubik X-Sender: john@www To: Jeff Shevlen Cc: Nick Rogness , freebsd-questions@FreeBSD.ORG Subject: Re: IP aliasing In-Reply-To: <022701c1df16$dc530f30$b300a8c0@wenk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 > > Please note that if the first IP garnered from DHCP is also in the > > 192.168.0.1/24 subnet, and already has a netmask of 255.255.255.0 > > assigned, the second IP should have a netmask of 255.255.255.255 > > > > > Thanks, for the tip. What is the reason for this? Any time you have multiple IP addresses in the same subnet configured on a single machine all subsequent addresses you assign need to have a subnet mask of 255.255.255.255. If you give each IP the "real" subnet mask, it will still function on the network more or less, but you will not be able to reach that IP from the machine itself. That is, if you configure 192.168.0.2 / 255.255.255.0 and 192.168.0.3 / 255.255.255.0, you will not (on that machine) be able to ping or ssh to the second address. If the alias is in a different subnet, such as 192.168.23.5, and you have not yet assigned any other IPs in that subnet, you should use the appropriate subnet mask, such as 255.255.255.192 or whatever. ----- John Kozubik - john@kozubik.com - http://www.kozubik.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message