From owner-freebsd-current@FreeBSD.ORG Sun Jun 28 03:48:56 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 D29D1106564A for ; Sun, 28 Jun 2009 03:48:56 +0000 (UTC) (envelope-from mel.flynn+fbsd.current@mailing.thruhere.net) Received: from mailhub.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id A2DA98FC12 for ; Sun, 28 Jun 2009 03:48:56 +0000 (UTC) (envelope-from mel.flynn+fbsd.current@mailing.thruhere.net) Received: from smoochies.rachie.is-a-geek.net (mailhub.lan.rachie.is-a-geek.net [192.168.2.11]) by mailhub.rachie.is-a-geek.net (Postfix) with ESMTP id 8C5F37E837 for ; Sat, 27 Jun 2009 19:48:55 -0800 (AKDT) From: Mel Flynn To: freebsd-current@freebsd.org Date: Sat, 27 Jun 2009 19:48:54 -0800 User-Agent: KMail/1.11.4 (FreeBSD/8.0-CURRENT; KDE/4.2.4; i386; ; ) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200906271948.54745.mel.flynn+fbsd.current@mailing.thruhere.net> Subject: 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: Sun, 28 Jun 2009 03:48:57 -0000 Hi, 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 have an issue I cannot seem to solve: - Create a lagg0 that has em and wlan0 at boot time, because wlan0 takes too long to be configured - and the default network_interfaces=AUTO sorts alphabetically which is not making matters easier. I've been trying to use hacks, but I think interfaces really need dependencies. Like ifconfig_lagg0_require="wlan0 em0", which would first configure wlan0, wait for it to be availabe, then em0 and finally lagg0. Is there something available, is it a known issue and ENOTIME to fix or am I missing something else? At present, my rc.conf entries are: # Need to do this manually to prevent alphabetical sorting. network_interfaces="wpi0 lo0 em0" cloned_interfaces="lagg0" wlans_wpi0="wlan0" ifconfig_wpi0="ether 00:16:36:f2:3b:84" ifconfig_wlan0="WPA" ifconfig_em0="up" ifconfig_lagg0="laggproto failover laggport em0" ifconfig_lagg0_alias0="laggport wlan0" ifconfig_lagg0_alias1="inet 192.168.2.50 netmask 255.255.255.0" And this gives me a lagg0 at boottime without wlan0, since the interface don't exist. I also cannot add inet commands to laggport commands, thus the alias trick is already needed, yet the delay caused by running separate commands does not seem to be enough to have wlan0 available. -- Mel