Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jun 2011 23:25:15 +0200
From:      "deeptech71@gmail.com" <deeptech71@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   what is the RIGHT(TM) way to configure background DHCP?
Message-ID:  <BANLkTikO7-7vKByU6RPADpV0KmGcR24mPg@mail.gmail.com>

Next in thread | Raw E-Mail | Index | Archive | Help
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_<if> 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_<if>="DHCP"



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?BANLkTikO7-7vKByU6RPADpV0KmGcR24mPg>