Dynamic loading of network kernel modules?
Oliver Fromme
olli at lurza.secnetix.de
Wed Mar 18 02:38:25 PDT 2009
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
More information about the freebsd-net
mailing list