Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Mar 2007 11:47:32 +0100
From:      Willy Offermans <Willy@Offermans.Rompen.nl>
To:        freebsd-stable@FreeBSD.ORG, freebsd-current@FreeBSD.ORG
Subject:   tap device at boot time
Message-ID:  <20070314104732.GA5794@wiz>

next in thread | raw e-mail | index | archive | help
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>

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.

-- 
Met vriendelijke groeten,
With kind regards,
Mit freundlichen Gruessen,
De jrus wah,

Willy

*************************************
W.K. Offermans
Home:   +31 45 544 49 44
Mobile: +31 653 27 16 23
e-mail: Willy@Offermans.Rompen.nl

                                       Powered by ....

                                            (__)
                                         \\\'',)
                                           \/  \ ^
                                           .\._/_)

                                       www.FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070314104732.GA5794>