From owner-freebsd-current@FreeBSD.ORG Mon Jun 29 15:17:35 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 32A8F1065675 for ; Mon, 29 Jun 2009 15:17:35 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (lor.one-eyed-alien.net [69.66.77.232]) by mx1.freebsd.org (Postfix) with ESMTP id D6C598FC19 for ; Mon, 29 Jun 2009 15:17:34 +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.14.3/8.14.3) with ESMTP id n5TEg6kG092853; Mon, 29 Jun 2009 09:42:06 -0500 (CDT) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.14.3/8.14.3/Submit) id n5TEg65G092852; Mon, 29 Jun 2009 09:42:06 -0500 (CDT) (envelope-from brooks) Date: Mon, 29 Jun 2009 09:42:06 -0500 From: Brooks Davis To: Mel Flynn Message-ID: <20090629144205.GA83592@lor.one-eyed-alien.net> References: <200906271948.54745.mel.flynn+fbsd.current@mailing.thruhere.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qDbXVdCdHGoSgWSk" Content-Disposition: inline In-Reply-To: <200906271948.54745.mel.flynn+fbsd.current@mailing.thruhere.net> User-Agent: Mutt/1.5.17 (2007-11-01) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (lor.one-eyed-alien.net [127.0.0.1]); Mon, 29 Jun 2009 09:42:06 -0500 (CDT) Cc: freebsd-current@freebsd.org Subject: Re: Interface dependencies X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jun 2009 15:17:35 -0000 --qDbXVdCdHGoSgWSk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jun 27, 2009 at 07:48:54PM -0800, Mel Flynn wrote: > Hi, >=20 > maybe I'm overlooking something, so I thought I'd ask. > As far as I can tell, there is no way to specify interface dependencies, = so I=20 > have an issue I cannot seem to solve: > - Create a lagg0 that has em and wlan0 at boot time, because wlan0 takes = too=20 > long to be configured - and the default network_interfaces=3DAUTO sorts= =20 > alphabetically which is not making matters easier. The interfaces should be in the order they are probed/created. No sorting should be performed beyond moving lo0 to the front in the default case. > I've been trying to use hacks, but I think interfaces really need=20 > dependencies. Like ifconfig_lagg0_require=3D"wlan0 em0", which would firs= t=20 > configure wlan0, wait for it to be availabe, then em0 and finally lagg0. >=20 > Is there something available, is it a known issue and ENOTIME to fix or a= m I=20 > missing something else? There isn't a feature to add dependencies, but there probably should be. I'm not sure that's really what the problem is there though. > At present, my rc.conf entries are: > # Need to do this manually to prevent alphabetical sorting. > network_interfaces=3D"wpi0 lo0 em0" > cloned_interfaces=3D"lagg0" > wlans_wpi0=3D"wlan0" > ifconfig_wpi0=3D"ether 00:16:36:f2:3b:84" > ifconfig_wlan0=3D"WPA" > ifconfig_em0=3D"up" > ifconfig_lagg0=3D"laggproto failover laggport em0" > ifconfig_lagg0_alias0=3D"laggport wlan0" > ifconfig_lagg0_alias1=3D"inet 192.168.2.50 netmask 255.255.255.0" >=20 > And this gives me a lagg0 at boottime without wlan0, since the interface = don't=20 > exist. I also cannot add inet commands to laggport commands, thus the ali= as=20 > trick is already needed, yet the delay caused by running separate command= s=20 > does not seem to be enough to have wlan0 available. wlan0 should exist by the time lagg0 is created because it's created and configured synchronously when wpi0 is configured. I know other people are using lagg this way so I'm a bit confused as to what's wrong. Enabling verbose start up and examining the output might be telling. -- Brooks > --=20 > Mel > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >=20 --qDbXVdCdHGoSgWSk Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iD8DBQFKSNK8XY6L6fI4GtQRAmLcAJ0QTa0uli7dmGqQsrnflpB/HlrezgCeMpz4 smSks3Ht3g8L+Rz8K8lOxF4= =f9tQ -----END PGP SIGNATURE----- --qDbXVdCdHGoSgWSk--