From owner-freebsd-hackers Mon Dec 4 04:15:05 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id EAA27278 for hackers-outgoing; Mon, 4 Dec 1995 04:15:05 -0800 Received: from dreamlabs.dreaming.org (dreamlabs.dreaming.org [198.96.119.129]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id EAA27244 for ; Mon, 4 Dec 1995 04:14:57 -0800 Received: (from mitayai@localhost) by dreamlabs.dreaming.org (8.6.12/8.6.12) id HAA18104; Mon, 4 Dec 1995 07:14:40 -0500 Date: Mon, 4 Dec 1995 07:14:39 -0500 (EST) From: Will Mitayai Keeso Rowe To: Greg Lehey cc: joerg_wunsch@uriah.heep.sax.de, FreeBSD Hackers Subject: Re: *** HELP! ifconfig aliases!? *** In-Reply-To: <199512040721.IAA09236@allegro.lemis.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@FreeBSD.ORG Precedence: bulk On Mon, 4 Dec 1995, Greg Lehey wrote: > Date: Mon, 4 Dec 1995 08:21:52 +0100 (MET) > From: Greg Lehey > To: joerg_wunsch@uriah.heep.sax.de > Cc: FreeBSD Hackers > Subject: Re: *** HELP! ifconfig aliases!? *** > > J Wunsch writes: > > > > As Ollivier Robert wrote: > > > > > > It seems that Robert Shady said: > > > > sites on it. Doing the standard "ifconfig ed0 alias a.b.c.d" didn't > > > > work, and neither did "ifconfig ed0 alias a.b.c.d netmask 255.255.255.0" > > > > > > Use netmask 0xffffffff for aliases. > > > > ...but only if they are in the same (sub)net as the primary address. > > OK, I'll bite: why? I thought aliases were just an alternative > address, and that they were subject to the same constraints as the > primary address. > > Greg > Hmm... i tried this myself in order to play with the multi-domain aspect of apache as: ifconfig tun0 alias 198.96.119.1 netmask 0xffffffff and got: ifconfig: ioctl (SIOCAIFADDR): Destination address required so, after checking out the man page, i determined that it should be: ifconfig tun0 198.96.119.1 198.96.119.129 netmask 0xffffffff alias but that still gave me the error: ifconfig: ioctl (SIOCAIFADDR): File exists any ideas? -Mit ------------------------------------------------------------------------ Will Mitayai Keeso Rowe, mitayai@dreaming.org http://www.dreaming.org/~mitayai Toronto, Ontario, Canada