From owner-freebsd-questions Mon Apr 8 13:38:49 2002 Delivered-To: freebsd-questions@freebsd.org Received: from spitfire.velocet.net (spitfire.velocet.net [216.138.223.227]) by hub.freebsd.org (Postfix) with ESMTP id 3D3ED37B41C for ; Mon, 8 Apr 2002 13:38:39 -0700 (PDT) Received: from [192.168.0.192] (H204.C233.tor.velocet.net [216.138.233.204]) by spitfire.velocet.net (Postfix) with ESMTP id 8A9EEFB45B0; Mon, 8 Apr 2002 16:38:33 -0400 (EDT) Date: Mon, 8 Apr 2002 16:38:56 -0400 (EDT) From: Jeff Shevlen X-X-Sender: To: John Kozubik Cc: Subject: Re: IP aliasing In-Reply-To: Message-ID: <20020408163704.U1282-100000@www.pho88.net> 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 On Mon, 8 Apr 2002, John Kozubik wrote: > > > > 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 > > > Thanks John. Good to know. Loopback. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message