From owner-freebsd-net Tue Feb 27 22:43:58 2001 Delivered-To: freebsd-net@freebsd.org Received: from xena.gsicomp.on.ca (cr677933-a.ktchnr1.on.wave.home.com [24.43.230.149]) by hub.freebsd.org (Postfix) with ESMTP id 9AC8337B71C for ; Tue, 27 Feb 2001 22:43:52 -0800 (PST) (envelope-from matt@gsicomp.on.ca) Received: from hermes (hermes.gsicomp.on.ca [192.168.0.18]) by xena.gsicomp.on.ca (8.11.1/8.9.3) with SMTP id f1S6fdi17565; Wed, 28 Feb 2001 01:41:39 -0500 (EST) (envelope-from matt@gsicomp.on.ca) Message-ID: <010d01c0a151$ddfca980$1200a8c0@gsicomp.on.ca> From: "Matthew Emmerton" To: "Wes Peters" , "Josef Karthauser" Cc: "Rogier R. Mulhuijzen" , "Jonathan Graehl" , References: <001501c0a070$3a14d900$1200a8c0@gsicomp.on.ca> <4.3.2.7.0.20010227070424.00d25c10@mail.bsdchicks.com> <20010227194556.C737@tao.org.uk> <3A9C997F.51F81F8D@softweyr.com> Subject: Re: Quick question about IP aliasing Date: Wed, 28 Feb 2001 01:44:14 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Josef Karthauser wrote: > > > > On Tue, Feb 27, 2001 at 07:16:14AM +0100, Rogier R. Mulhuijzen wrote: > > > > > > >The point is that you need to use a netmask of 255.255.255.255 for aliased > > > >IPs on FreeBSD, regardless of the alias of the primary (non-alias) IP. > > > > > > Everybody is saying use 255.255.255.255 for an alias. Noone is giving > > > reasons why. > > > > I don't understand this either. To my mind it's a bug if it doesn't > > work with the full netmask for an IP alias address. > > Because if you don't, it won't work. ifconfig(8) may not be telling the > entire truth here: > > alias Establish an additional network address for this interface. This > is sometimes useful when changing network numbers, and one wishes > to accept packets addressed to the old interface. If the address > is on the same subnet as the first network address for this in- > terface, a netmask of 0xffffffff has to be specified. > > Somebody should look to see if the man page is true, or if you have to use > a netmask of 0xffffffff for all aliases. I just had a short off-line conversation with Luigi Rizzo about this, and the manpage is true. (You must use a netmask of 0xffffffff for aliases on the same subnet as the primary IP, otherwise you use the appropriate netmask for the alias IP.) Since the more intuitive method is to use the 'appropriate' netmask all the time (and is what AIX and SCO do), I'm looking into seeing what it would take to add this functionality to FreeBSD. -- Matt Emmerton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message