Date: Mon, 2 Oct 2000 04:30:03 -0700 (PDT) From: Pekka Savola <pekkas@netcore.fi> To: freebsd-bugs@FreeBSD.org Subject: Re: conf/21695: ifconfig_XXX_aliasY in rc.conf; Y must be in sequential order Message-ID: <200010021130.EAA38228@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR conf/21695; it has been noted by GNATS. From: Pekka Savola <pekkas@netcore.fi> To: Ruslan Ermilov <ru@sunbay.com> Cc: bug-followup@FreeBSD.org Subject: Re: conf/21695: ifconfig_XXX_aliasY in rc.conf; Y must be in sequential order Date: Mon, 2 Oct 2000 14:23:09 +0300 (EEST) On Mon, 2 Oct 2000, Ruslan Ermilov wrote: > On Mon, Oct 02, 2000 at 03:20:05AM -0700, Pekka Savola wrote: > > The following reply was made to PR conf/21695; it has been noted by GNATS. > > > > From: Pekka Savola <pekkas@netcore.fi> > > To: "Chris D. Faulhaber" <jedgar@fxp.org> > > Cc: freebsd-gnats-submit@FreeBSD.org > > Subject: Re: conf/21695: ifconfig_XXX_aliasY in rc.conf; Y must be in sequential > > order > > Date: Mon, 2 Oct 2000 13:18:29 +0300 (EEST) > > > > On Mon, 2 Oct 2000, Chris D. Faulhaber wrote: > > > > > On Mon, 2 Oct 2000 pekkas@netcore.fi wrote: > > > > > > > >Synopsis: ifconfig_XXX_aliasY in rc.conf; Y must be in sequential order > > > > > > > > >How-To-Repeat: > > > > Put the following in rc.conf: > > > > > > > > ifconfig_fxp0="inet x.y.129.194 netmask 255.255.255.240" > > > > ifconfig_fxp0_alias0="inet x.y.129.195 netmask 255.255.255.255" > > > > #ifconfig_fxp0_alias1="inet x.y.129.196 netmask 255.255.255.255" > > > > ifconfig_fxp0_alias2="inet x.y.129.198 netmask 255.255.255.255" > > > > > > > > alias2 will not be configured. > > > > > > > > > > Is this a problem or just something you noticed? This behaviour is > > > documented in rc.conf(5). > > > > Well, both. :-) > > > > Actually I hadn't noticed there was a man page about rc.conf earlier, so I > > just noticed it now. > > > > Nevertheless, even though it's documented, this would seem to be like a > > thing that should just plain work :-) > > > Hmm, how would you expect it to work? rc.network scanning all possible > ifconfig_<iface>_alias<n>, where n is from 0 to infinity? I doubt this > would be practical. Well, this is a bit hackish approach, but an equivalent of: grep ^ifconfig_.*_alias /etc/rc.conf would probably be good. -- Pekka Savola "Tell me of difficulties surmounted, Pekka.Savola@netcore.fi not those you stumble over and fall" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200010021130.EAA38228>