Date: Wed, 14 Mar 2007 11:06:15 +0000 From: Vince <jhary@unsane.co.uk> To: Willy@Offermans.Rompen.nl Cc: freebsd-current@freebsd.org, freebsd-stable@freebsd.org Subject: Re: tap device at boot time Message-ID: <45F7D727.2080301@unsane.co.uk> In-Reply-To: <20070314104732.GA5794@wiz> References: <20070314104732.GA5794@wiz>
next in thread | previous in thread | raw e-mail | index | archive | help
Willy Offermans wrote: > Dear FreeBSD friends, > > Is it possible to add and configure a tap device at boot time of > FreeBSD? I mean the same as a normal NIC. In my rc.conf: > > <snip> > ... > ifconfig_xl0="inet 192.168.0.2 promisc netmask 255.255.255.0" > ifconfig_rl0="inet 192.168.4.2 netmask 255.255.255.0" > ifconfig_tap0="inet 10.8.0.1 netmask 255.255.255.0" > ... > </snip> > try adding cloned_interfaces="tap0" to your rc.conf Vince > and in my /boot/loader.conf: > <snip> > ... > if_tap_load="YES" > ... > </snip> > > if_xl0 and if_rl0 are compiled into the kernel. > > Maybe it is even possible to set the MAC address of the tap device!? > > The tap device should be available before named and dhcpd have been > started. In that way I can provide IP addresses over the tap device > and add appropriate DNS entries. > > I like to run openvpn with tap devices and want to use the dhcpd server > to provide IP addresses and update the named. This works quite well. > However after reboot I always have to restart named and dhcpd again > since the tap device becomes available after these services have started > during boot. I guess this problem will be solved if the tap device is > already available and configured before named and dhcpd have started. >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45F7D727.2080301>