From owner-freebsd-stable@FreeBSD.ORG Mon Feb 12 19:43:57 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 BFD0116A400; Mon, 12 Feb 2007 19:43:57 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (grnl-static-02-0046.dsl.iowatelecom.net [69.66.56.110]) by mx1.freebsd.org (Postfix) with ESMTP id 63DA013C494; Mon, 12 Feb 2007 19:43:57 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.13.8/8.13.8) with ESMTP id l1CJhuxQ054141; Mon, 12 Feb 2007 13:43:56 -0600 (CST) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.13.8/8.13.8/Submit) id l1CJhuOk054140; Mon, 12 Feb 2007 13:43:56 -0600 (CST) (envelope-from brooks) Date: Mon, 12 Feb 2007 13:43:56 -0600 From: Brooks Davis To: John Hay Message-ID: <20070212194356.GA54076@lor.one-eyed-alien.net> References: <20070212163652.GA51709@lor.one-eyed-alien.net> <200702121739.l1CHdZPO062101@lurza.secnetix.de> <20070212175940.GA52751@lor.one-eyed-alien.net> <20070212190659.GA26527@zibbi.meraka.csir.co.za> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jI8keyz6grp/JLjh" Content-Disposition: inline In-Reply-To: <20070212190659.GA26527@zibbi.meraka.csir.co.za> User-Agent: Mutt/1.5.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (lor.one-eyed-alien.net [127.0.0.1]); Mon, 12 Feb 2007 13:43:56 -0600 (CST) Cc: Brooks Davis , 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:43:57 -0000 --jI8keyz6grp/JLjh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 12, 2007 at 09:06:59PM +0200, John Hay wrote: > 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. > > > > >=20 > > > > > Maybe it would make sense to remove "alias" from the rc.conf > > > > > entries and simply number them. > > > >=20 > > > > ipv4_addrs_ is a much better replacement IMO. It's eas= y to > > > > use and doesn't required the hackish pseudo array traversal used by > > > > ifconfig_iface_aliasX. > > >=20 > > > That might work for simple cases, but how do you specify > > > other parameters beside the IPs if you need to? > >=20 > > 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 whenev= er > > you remove an entry. >=20 > Some stuff cannot be done on a single line, so I have abused the _aliasX > mechanism for that. With the bridge interface: >=20 > ifconfig_bridge0=3D"ether 00:00:24:c0:0e:40 addm sis0 stp sis0 addm sis1 = stp sis1 up" > ifconfig_bridge0_alias0=3D"inet 146.64.84.1/24" ipv4_addrs_bridge0=3D"146.64.84.1/24" :) > Also with the atheros driver I had problems in the past with some paramet= ers > that did not like to be on a single commandline. I do agree there's some need for a way to pass multiple sets of parameters to ifconfig since this has commonly been a problem. Something actually designed for that might be nice. :) -- Brooks --jI8keyz6grp/JLjh Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFF0MN8XY6L6fI4GtQRArfBAJ9sESvAsHXSzvSM1Ao72PBN1VRpZgCfcBpw feXf3tGtrD/jJtZKCjiPpPM= =vaEQ -----END PGP SIGNATURE----- --jI8keyz6grp/JLjh--