From owner-freebsd-net@FreeBSD.ORG Wed Mar 18 09:38:24 2009 Return-Path: Delivered-To: freebsd-net@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F0A34106566C for ; Wed, 18 Mar 2009 09:38:24 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id 7011C8FC1B for ; Wed, 18 Mar 2009 09:38:24 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id n2I9bte4036564; Wed, 18 Mar 2009 10:38:23 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id n2I9btPQ036563; Wed, 18 Mar 2009 10:37:55 +0100 (CET) (envelope-from olli) Date: Wed, 18 Mar 2009 10:37:55 +0100 (CET) Message-Id: <200903180937.n2I9btPQ036563@lurza.secnetix.de> From: Oliver Fromme To: freebsd-net@FreeBSD.ORG, dhorn2000@gmail.com In-Reply-To: <25ff90d60903171427y4032d11es516d7b757fc3b8e0@mail.gmail.com> X-Newsgroups: list.freebsd-net User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Wed, 18 Mar 2009 10:38:23 +0100 (CET) Cc: Subject: Re: Dynamic loading of network kernel modules? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-net@FreeBSD.ORG, dhorn2000@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Mar 2009 09:38:25 -0000 David Horn wrote: > I made a minor change to ifconfig to try kldloading the interface name > specified on the create wlandev XXXX (ifconfig already tries for > normal invocations, just needed to try with the wlandev interface) > [...] > This works nicely, however at startup, I still do not get the > interface up, or the kernel module loaded, so a second patch is > needed. I don't understand why you have to patch anything. It seems to work for me out of the box. For example, with the following entries in /etc/rc.conf, all required KLD modules are loaded automatically, and the interfaces are up: ifconfig_bge0="up" cloned_interfaces="vlan103 vlan105" ifconfig_vlan103="inet 10.103.0.20/16 vlan 103 vlandev bge0" ifconfig_vlan105="inet 10.105.0.20/16 vlan 105 vlandev bge0" Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "Unix gives you just enough rope to hang yourself -- and then a couple of more feet, just to be sure." -- Eric Allman