From owner-freebsd-stable Wed Feb 27 12:51:18 2002 Delivered-To: freebsd-stable@freebsd.org Received: from gromit.solo.net (gromit.solo.net [64.23.55.189]) by hub.freebsd.org (Postfix) with ESMTP id ECC9737B41A for ; Wed, 27 Feb 2002 12:51:10 -0800 (PST) Received: (from root@localhost) by gromit.solo.net (8.11.6/8.11.6) id g1RKu2O00572 for freebsd-stable@freebsd.org; Wed, 27 Feb 2002 15:56:02 -0500 (EST) (envelope-from dak@solo.net) Received: from [192.168.200.104] (localhost [127.0.0.1]) (authenticated) by gromit.solo.net (8.11.6/8.11.6av) with ESMTP id g1RKu1200564 for ; Wed, 27 Feb 2002 15:56:01 -0500 (EST) (envelope-from dak@solo.net) Mime-Version: 1.0 X-Sender: dak@mail.solo.net (Unverified) Message-Id: Date: Wed, 27 Feb 2002 15:51:04 -0500 To: freebsd-stable@freebsd.org From: "David A. Koran" Subject: ifconfig aliases Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Virus-Scanned: by AMaViS perl-11 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Did somebody make a change to the syntax of how the ifconfig aliases (eg. "ifconfig_fxp0_alias1="inet some.ip.addr.ess netmask some.net.mask.num") work? According to the old listings (and many FreeBSD docs of the past) the netmask of the aliases in the past used to be whatever your base netmask was. For example, this used to be legal: ifconfig_fxp0="inet AAA.BBB.CCC.190 netmask 255.255.255.128" ifconfig_fxp0_alias0="inet AAA. BBB.DDD.209 netmask 255.255.255.248" ifconfig_fxp0_alias1="inet AAA. BBB.DDD.210 netmask 255.255.255.248" ifconfig_fxp0_alias2="inet AAA. BBB.DDD.211 netmask 255.255.255.248" ifconfig_fxp0_alias3="inet AAA. BBB.DDD.212 netmask 255.255.255.248" ifconfig_fxp0_alias4="inet AAA. BBB.DDD.213 netmask 255.255.255.248" ifconfig_fxp0_alias5="inet AAA. BBB.DDD.214 netmask 255.255.255.248" now it's enforced in this way ifconfig_fxp0="inet AAA.BBB.CCC.190 netmask 255.255.255.128" ifconfig_fxp0_alias0="inet AAA. BBB.DDD.209 netmask 255.255.255.248" ifconfig_fxp0_alias1="inet AAA. BBB.DDD.210 netmask 255.255.255.255" ifconfig_fxp0_alias2="inet AAA. BBB.DDD.211 netmask 255.255.255.255" ifconfig_fxp0_alias3="inet AAA. BBB.DDD.212 netmask 255.255.255.255" ifconfig_fxp0_alias4="inet AAA. BBB.DDD.213 netmask 255.255.255.255" ifconfig_fxp0_alias5="inet AAA. BBB.DDD.214 netmask 255.255.255.255" I know in the docs, it states that if an alias is on the same subnet of the first non-aliased 'base' address, it's required to have the 0xffffffff subnet . However, for at least the past two to three years, I've been able to aliases like the above (and the aliased addresses were NOT on the same subnet as the non-aliased address) without a problem, I recently VSup'ed today, built and installed world (same kernel config for quite a while, just updated for different designations from GENERIC), and I had to hack the rc.conf to what is reflected in the second example. I apologize if this seems confusing, but I'm trying to track down what exactly made the syntax change for aliases in this fashion. Thanks in advance. -- David A. Koran (dak@solo.net) - http://www.solo.net/~dak/ PGP Key ID: 0x8AC39F65 -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GIT/CS/SS d- s+: a- C+++$ UBLHSX++++$ P+++$ L- E--- W+++ N- o-- K-? w--- O- M+++$ V-- PS++ PE- Y+>++ PGP t--@ 5 X+ R- tv b+ DI++++ D G e*>+++ h++ r y+ ------END GEEK CODE BLOCK------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message