From owner-freebsd-stable@FreeBSD.ORG Mon Feb 12 19:32:16 2007 Return-Path: X-Original-To: freebsd-stable@FreeBSD.ORG Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8B47716A407; Mon, 12 Feb 2007 19:32:16 +0000 (UTC) (envelope-from jhay@meraka.csir.co.za) Received: from zibbi.meraka.csir.co.za (zibbi.meraka.csir.co.za [146.64.24.58]) by mx1.freebsd.org (Postfix) with ESMTP id 2B01713C4A3; Mon, 12 Feb 2007 19:32:14 +0000 (UTC) (envelope-from jhay@meraka.csir.co.za) Received: by zibbi.meraka.csir.co.za (Postfix, from userid 3973) id B371D33CA7; Mon, 12 Feb 2007 21:06:59 +0200 (SAST) Date: Mon, 12 Feb 2007 21:06:59 +0200 From: John Hay To: Brooks Davis Message-ID: <20070212190659.GA26527@zibbi.meraka.csir.co.za> References: <20070212163652.GA51709@lor.one-eyed-alien.net> <200702121739.l1CHdZPO062101@lurza.secnetix.de> <20070212175940.GA52751@lor.one-eyed-alien.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070212175940.GA52751@lor.one-eyed-alien.net> User-Agent: Mutt/1.4.2.1i Cc: freebsd-stable@FreeBSD.ORG Subject: Re: Desired behaviour of "ifconfig -alias" X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Feb 2007 19:32:16 -0000 On Mon, Feb 12, 2007 at 11:59:40AM -0600, Brooks Davis wrote: > On Mon, Feb 12, 2007 at 06:39:35PM +0100, Oliver Fromme wrote: > > Brooks Davis wrote: > > > Oliver Fromme wrote: > > > > Jeremy Chadwick wrote: > > > > > Oliver Fromme wrote: > > > > > FWIW, I still use alias/-alias. Mainly because that's what has > > > > > existed historically, and the term "alias" is what is used in > > > > > reference to rc.conf ifconfig_iface_aliasX entries. > > > > > > > > Maybe it would make sense to remove "alias" from the rc.conf > > > > entries and simply number them. > > > > > > ipv4_addrs_ is a much better replacement IMO. It's easy to > > > use and doesn't required the hackish pseudo array traversal used by > > > ifconfig_iface_aliasX. > > > > That might work for simple cases, but how do you specify > > other parameters beside the IPs if you need to? > > What do you need to set? It's sets IP and netmask. It doesn't handle > broadcast, but I'd be pretty suprised if that's needed often. What else > is needed? Axing ifconfig_iface_aliasX is not needed, but reducing the > visiability of the interface in the documentation is probably in order > particularly since it's quite fragile since you have to renumber whenever > you remove an entry. Some stuff cannot be done on a single line, so I have abused the _aliasX mechanism for that. With the bridge interface: ifconfig_bridge0="ether 00:00:24:c0:0e:40 addm sis0 stp sis0 addm sis1 stp sis1 up" ifconfig_bridge0_alias0="inet 146.64.84.1/24" Also with the atheros driver I had problems in the past with some parameters that did not like to be on a single commandline. FWIW I do not find the "ifconfig iface -alias" to be a problem... probably because I'm used to it. :-) What I do find silly is that you cannot do "ifconfig iface tunnel inet6 " anymore. It used to work and is still documented in ifconfig(8) to work. You have to swap inet6 and tunnel for it to work. John -- John Hay -- John.Hay@meraka.csir.co.za / jhay@FreeBSD.org