From owner-freebsd-questions@FreeBSD.ORG Mon Nov 7 00:26:01 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 449BD106564A for ; Mon, 7 Nov 2011 00:26:01 +0000 (UTC) (envelope-from coco@executive-computing.de) Received: from mail.moehre.org (mail.moehre.org [195.96.35.7]) by mx1.freebsd.org (Postfix) with ESMTP id F1DE28FC12 for ; Mon, 7 Nov 2011 00:26:00 +0000 (UTC) Received: from mail.moehre.org (unknown [195.96.35.7]) by mail.moehre.org (Postfix) with ESMTP id DEE348B143D; Mon, 7 Nov 2011 01:09:54 +0100 (CET) X-Spam-Flag: NO X-Spam-Score: -100.963 X-Spam-Level: X-Spam-Status: No, score=-100.963 tagged_above=-999 required=5 tests=[ALL_TRUSTED=-1, AWL=0.037, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mail.moehre.org ([195.96.35.7]) by mail.moehre.org (mail.moehre.org [195.96.35.7]) (amavisd-new, port 10024) with ESMTP id CIocQpafHRHy; Mon, 7 Nov 2011 01:09:53 +0100 (CET) Received: from s560x.c0c0.intra (p54B0A4E0.dip.t-dialin.net [84.176.164.224]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: coco@executive-computing.de) by mail.moehre.org (Postfix) with ESMTPSA id 9FCE98B143B; Mon, 7 Nov 2011 01:09:51 +0100 (CET) Date: Mon, 7 Nov 2011 01:09:51 +0100 (CET) From: Marco Steinbach X-X-Sender: coco@s560x.c0c0.intra To: Moritz Wilhelmy In-Reply-To: <20111106214624.GT16096@barfooze.de> Message-ID: References: <20111106214624.GT16096@barfooze.de> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org Subject: Re: "Deprecated" ifconfig__alias X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Nov 2011 00:26:01 -0000 On Sun, 6 Nov 2011, Moritz Wilhelmy wrote: > Hello, > > according to the rc.conf(5) manual page, the > ifconfig__alias_ mechanism has been deprecated: > > > And so on. For each ifconfig__alias entry that > is found, its contents are passed to ifconfig(8). > Execution stops at the first unsuccessful access, so if > something like this is present: > > ifconfig_ed0_alias0="inet 127.0.0.251 netmask 0xffffffff" > ifconfig_ed0_alias1="inet 127.0.0.252 netmask 0xffffffff" > ifconfig_ed0_alias2="inet 127.0.0.253 netmask 0xffffffff" > ifconfig_ed0_alias4="inet 127.0.0.254 netmask 0xffffffff" > > Then note that alias4 would not be added since the search > would stop with the missing `alias3'' entry. Due to this > difficult to manage behavior, the > ifconfig__alias form is deprecated. > > > I can't see any further hints by what it has been deprecated, and the > net is full of examples using this mechanism. Can someone point me to > whereever some equivalent functionality has been implemented? Should I > file a PR, or am I just being blind? (Machine is running 9.1-RC1, maybe > it has been deprecated after 8) I'd say there isn't one. You're expected to use /etc/start_if., accordingly. The next paragraph in the rc.conf(5) man page states: If the /etc/start_if. file is present, it is read and executed by the sh(1) interpreter before configuring the interface as specified in the ifconfig_ and ifconfig__alias variables. The wording might be a bit misleading here. Actually, there's no need to have any ifconfig_* statements in rc.conf, unless you need or want to make use of the facilties provided by network startup scripts. Just drop any ifconfig and possibly other shell commands to configure the interface in question into /etc/start_if.. Maybe opening a PR, asking for different wording or an additional paragraph is a good idea, nonetheless. MfG CoCo