Re: tap device at boot time

From: Vince <jhary_at_unsane.co.uk>
Date: Wed, 14 Mar 2007 11:06:15 +0000
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.
> 
Received on Wed Mar 14 2007 - 10:30:21 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:06 UTC