Date: Mon, 8 Apr 2002 16:38:56 -0400 (EDT) From: Jeff Shevlen <jeff@passedpawn.com> To: John Kozubik <john@kozubik.com> Cc: <freebsd-questions@FreeBSD.ORG> Subject: Re: IP aliasing Message-ID: <20020408163704.U1282-100000@www.pho88.net> In-Reply-To: <Pine.BSF.4.21.0204081209550.3366-100000@www>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020408163704.U1282-100000>