Date: Wed, 28 Nov 2001 22:24:28 -0800 From: justin@mac.com To: freebsd-net@FreeBSD.ORG Subject: Re: netmask for aliased ip Message-ID: <BDF9EC80-E491-11D5-A7BB-0003934474AC@mac.com> In-Reply-To: <20011128170815.G3985@blossom.cjclark.org>
next in thread | previous in thread | raw e-mail | index | archive | help
FWIW, the FreeBSD FAQ (10.9) sez this (it's a one-liner that shows the=20= netmask 0xffffffff). Regards, Justin On Wednesday, November 28, 2001, at 05:08 , Crist J. Clark wrote: > On Wed, Nov 28, 2001 at 08:37:42AM -0800, irado@nettaxi.com wrote: >> >> somebody told me that, when aliasing, the 2nd to =B4n=B4 ipaddress = netmask=20 >> must not be the regular one, but 0xffffffff instead. Example: >> >> rl0 =3D 200.200.200.200 netmask 255.255.0.0 >> rl0:0 (the aliased) 200.200.220.200 netmask 0xffffffff >> [lots more] >> rl0:3000 200.200.255.200 netmask 0xffffffff >> >> is it for real?? what is the reason for this? > > Somebody told you wrong. When adding an alias _which is on the same > logical network_ as other addresses, it should have an 0xffffffff > mask. That is, only one address on an interface should have the "real" > netmask for any one network. > > The simple explanation for this is that if you have, > > a.b.c.d/24 > a.b.c.e/24 > > On an interface and you try to initiate a connection to another > machine through this interface, should your connection use a.b.c.d or > a.b.c.e as the source address? It is ambiguous and can make problems. > > In your case, the addresses lie on different networks. Each address > should have the netmask of the network it is on. Note that you do not > have the above problem in this case. > -- > Crist J. Clark | cjclark@alum.mit.edu > | cjclark@jhu.edu > http://people.freebsd.org/~cjc/ | cjc@freebsd.org > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message > > -- /~\ The ASCII Justin C. Walker, Curmudgeon-at-large \ / Ribbon Campaign X Against HTML / \ Email! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BDF9EC80-E491-11D5-A7BB-0003934474AC>