From owner-freebsd-stable@FreeBSD.ORG Wed Mar 14 11:06:20 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9188816A401 for ; Wed, 14 Mar 2007 11:06:20 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from unsane.co.uk (www.unsane.co.uk [85.233.185.162]) by mx1.freebsd.org (Postfix) with ESMTP id 280FB13C448 for ; Wed, 14 Mar 2007 11:06:19 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from [192.168.10.217] (150.117-84-212.staticip.namesco.net [212.84.117.150]) (authenticated bits=0) by unsane.co.uk (8.14.0/8.14.0) with ESMTP id l2EB5uRN054110 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 14 Mar 2007 11:05:56 GMT (envelope-from jhary@unsane.co.uk) Message-ID: <45F7D727.2080301@unsane.co.uk> Date: Wed, 14 Mar 2007 11:06:15 +0000 From: Vince User-Agent: Thunderbird 1.5.0.9 (X11/20070129) MIME-Version: 1.0 To: Willy@Offermans.Rompen.nl References: <20070314104732.GA5794@wiz> In-Reply-To: <20070314104732.GA5794@wiz> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, freebsd-stable@freebsd.org Subject: Re: tap device at boot time X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Mar 2007 11:06:20 -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: > > > ... > 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" > ... > > try adding cloned_interfaces="tap0" to your rc.conf Vince > and in my /boot/loader.conf: > > ... > if_tap_load="YES" > ... > > > 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. >