Date: Wed, 27 Feb 2002 15:51:04 -0500 From: "David A. Koran" <dak@solo.net> To: freebsd-stable@freebsd.org Subject: ifconfig aliases Message-ID: <p05100300b8a2f3ad4026@[192.168.200.104]>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p05100300b8a2f3ad4026>