From owner-freebsd-questions@FreeBSD.ORG Sun Jun 26 21:54:37 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ED2D8106566B for ; Sun, 26 Jun 2011 21:54:37 +0000 (UTC) (envelope-from deeptech71@gmail.com) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id AD2C78FC0A for ; Sun, 26 Jun 2011 21:54:37 +0000 (UTC) Received: by gwb15 with SMTP id 15so2225061gwb.13 for ; Sun, 26 Jun 2011 14:54:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=exG9E354wbuAw8/+sTsNAQphUfSSJ0AAav3EYS13gfE=; b=tlBcdqll2KRlcRqsIxamJ0xK9q3sxmFzNOrm045jntuy2/W7qShyCvWpwKa+Q7+OBd XFu0oHbvhWpdfEnlvSM2Nf51mgVF+lMJzx5+IqyWEaKw9w0TFx/NNzoh4H+edy0lrTcI P8SYefGEA6cWEbN3axDw0OMcR4L/US3tQeLEs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=sNB7t4kSDWIQoXP5arVcc2kKyIK+FGSmBVnK7KkDxvb95kMW6vbf+tDVm20IDqa3PU Q4op93NpXASSs5OHDTlNUEVQhGHWYdvPNzbujUm3Xo/kdHHnx3oInfKC60FpX8J799aA sa/yBnS1XzhTYMy8bKEAiJOvwPalXyfQE96dU= MIME-Version: 1.0 Received: by 10.236.175.131 with SMTP id z3mr8246802yhl.499.1309123515778; Sun, 26 Jun 2011 14:25:15 -0700 (PDT) Received: by 10.236.202.135 with HTTP; Sun, 26 Jun 2011 14:25:15 -0700 (PDT) Date: Sun, 26 Jun 2011 23:25:15 +0200 Message-ID: From: "deeptech71@gmail.com" To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: what is the RIGHT(TM) way to configure background DHCP? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Jun 2011 21:54:38 -0000 as of recent times, on my network, the DHCP server takes a very long time (>30s) to reply, slowing down the boot process. so i've decided to put the DHCP client in the background (via rc.conf) during the boot process. attempt 1: #background_dhclient="YES" #background_dhclient_sk0="YES" with this, the DHCP client isn't even started. attempt 2: #ifconfig_sk0="DHCP" #background_dhclient="YES" #background_dhclient_sk0="YES" with this, the DHCP client is started, but there is a 30s waiting time. (as if the background_dhclient and background_dhclient_ variables had no effect.) attempt 3: #ifconfig_sk0="DHCP" #defaultroute_delay="0" this works, but looks hacky. so what is the RIGHT(TM) way to configure a background DHCP client, and why? are any of the DHCP-client-related rc.conf options redundant/useless? btw, there is no example in /etc/defaults/rc.conf for ifconfig_="DHCP"