From owner-freebsd-net Tue Dec 22 15:05:44 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA00708 for freebsd-net-outgoing; Tue, 22 Dec 1998 15:05:44 -0800 (PST) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from mail-out2.apple.com (mail-out2.apple.com [17.254.0.51]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA00648 for ; Tue, 22 Dec 1998 15:05:40 -0800 (PST) (envelope-from justin@scv2.apple.com) Received: from mailgate.apple.com (A17-128-100-225.apple.com [17.128.100.225]) by mail-out2.apple.com (8.8.5/8.8.5) with ESMTP id OAA39168 for ; Tue, 22 Dec 1998 14:54:43 -0800 Received: from scv2.apple.com (scv2.apple.com) by mailgate.apple.com (mailgate.apple.com - SMTPRS 2.0.15) with ESMTP id ; Tue, 22 Dec 1998 14:54:35 -0800 Received: from localhost (grinch.apple.com [17.202.43.163]) by scv2.apple.com (8.8.5/8.8.5) with ESMTP id OAA07406; Tue, 22 Dec 1998 14:54:33 -0800 Received: (from justin@localhost) by localhost (8.8.5/8.8.5) id OAA06077; Tue, 22 Dec 1998 14:46:15 -0800 Message-Id: <19981222144615.I5684@apple.com> Date: Tue, 22 Dec 1998 14:46:15 -0800 From: "Justin C. Walker" To: Kurt Keller , net@FreeBSD.ORG Cc: wes@softweyr.com, shigetoh@zip.com.au Subject: Re: IP aliases Reply-To: justin@apple.com References: <3.0.5.16.19981221225911.439f4d8a@pop.pbdhome.pinboard.com> <367F469C.E57CD5C2@softweyr.com> <3.0.5.16.19981222225958.44879f9a@pop.pbdhome.pinboard.com> MIME-Version: 1.0 X-Mailer: Mutt 0.93.2i In-Reply-To: <3.0.5.16.19981222225958.44879f9a@pop.pbdhome.pinboard.com>; from Kurt Keller on Tue, Dec 22, 1998 at 10:59:58PM +0000 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tue, Dec 22, 1998 at 10:59:58PM +0000, Kurt Keller wrote: > Thanks for your help. > > I actually had a look in rc.conf as well, but was sure the netmask of > 255.255.255.255 was wrong. Actually it does work fine that way. Still, > I can't imagine why the netmask on this virtual interface should have > all bits set. See http://www.cypher.net/~black/ipalias.html (linked from the tutorial page on the FreeBSD site). This doesn't really explain at a deep level why this netmask makes things work, but will give you a warm fuzzy feeling :-} > This would mean, that FreeBSD won't let me simulate subnets on one > adapter card. Even though physically such networks would not be > separated, the pure logical separation can be handy for testing routing > stuff. > For example something like > > 192.168.1.0/255.255.255.192 > 192.168.1.64/255.255.255.240 > 192.168.1.96/255.255.255.248 > 172.17.32.0/255.255.0.0 > > on one single adapter card can be very handy for simulations. Which > makes me wonder whether FreeBSD supports variable length subnet masks. If I understand what you're getting at, the funky netmask is only needed if you are adding an alias that is on the same subnet as an existing address assigned to the interface. This basically avoids the EEXISTS response, and adds a route for you. If you want to use the "real netmask", the 'ifconfig' actually succeeds, but you have to add the route by hand. For "new" subnets, use the correct netmask. At least, that's the way things work for our (Rhapsody) systems. Regards, Justin -- Justin C. Walker, Curmudgeon-At-Large * Institute for General Semantics | Manager, CoreOS Networking | Men are from Earth. Apple Computer, Inc. | Women are from Earth. 2 Infinite Loop | Deal with it. Cupertino, CA 95014 | *---------------------------------------*------------------------------------* To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message