From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 6 21:20:35 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 838BB106564A; Wed, 6 Jul 2011 21:20:35 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 2CCC78FC12; Wed, 6 Jul 2011 21:20:34 +0000 (UTC) Received: by ywf7 with SMTP id 7so178391ywf.13 for ; Wed, 06 Jul 2011 14:20:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=81mb205TKuKWWVyA4HcldagJU8bhlumU0TQ+0I5foxU=; b=m2OX1XBouw1Uy/TJ9MLR8v+N5GqvFcdDh2zaaIYVdZ047J4L+cC9g1fxvVPdp6VoFn VzYoJahkWg8sYMtUplF2Q43D8fK8XfTxZZ62eWBOZqtRs8E0OXhlu7JIqMkXMEoMr6cT p74NvFRuvHsgwCicn2CChCE3mMvJwRIgiNdSo= MIME-Version: 1.0 Received: by 10.91.201.26 with SMTP id d26mr284873agq.97.1309985887388; Wed, 06 Jul 2011 13:58:07 -0700 (PDT) Received: by 10.90.15.24 with HTTP; Wed, 6 Jul 2011 13:58:07 -0700 (PDT) In-Reply-To: References: <44k4byunz2.fsf@lowell-desk.lan> Date: Wed, 6 Jul 2011 13:58:07 -0700 Message-ID: From: Freddie Cash To: "deeptech71@gmail.com" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org, freebsd-current@freebsd.org Subject: Re: what is the RIGHT(TM) way to configure background DHCP? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jul 2011 21:20:35 -0000 On Wed, Jul 6, 2011 at 12:47 PM, deeptech71@gmail.com wrote: > the boot process of my FreeBSD machines takes a relatively long time. > it spends 30 seconds idling at some point, because my network > interface (sk0) is supposed to have an IP address assigned via DHCP, > and the DHCP server on my LAN takes an extremely long time (~40 > seconds) to reply to IP address requests. this is unacceptable for me; > i want the FreeBSD boot process to finish 30 seconds earlier, even if > i won't get the chance to use the network for ~40 seconds after the > booting has finished. > The simplest method would be to put into /etc/rc.conf: ifconfig_sk0="up" Then into /etc/rc.local: dhclient sk0 & That would bring your interface "up" during the boot process, then manually fire off dhclient once the normal boot process has ended (right before the login prompt appears) as a background process. By the time you login, the IP should be assigned. As for what's "the correct way" to do this via just rc.conf, I'll leave that up to others more "in the know" about how RC works. -- Freddie Cash fjwcash@gmail.com