ntpd fails on boot

Jonathan Chen jonc at chen.org.nz
Wed Dec 15 05:03:56 UTC 2010


On Tue, Dec 14, 2010 at 05:38:49PM -0700, Dan Allen wrote:
> Recently my network connection now is setup AFTER ntpd is launched rather than before.
> 
> So when ntpd starts there is no net connection and it gives up.

Let me guess: You're on a DHCP network and the network script are
running before the network address is assigned. The solution is to
wait for DHCP negotiation to complete before letting the rest of the
network scripts to complete. I added the following to /etc/rc.conf:

    ifconfig_re0="SYNCDHCP"

Change re0 to your network device.

Cheers.
-- 
Jonathan Chen <jonc at chen.org.nz>
----------------------------------------------------------------------
      "The things we know best are the things we haven't been taught."
                                             - Marquis de Vauvenargues


More information about the freebsd-stable mailing list