Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Dec 2010 18:03:48 +1300
From:      Jonathan Chen <jonc@chen.org.nz>
To:        Dan Allen <danallen46@airwired.net>
Cc:        FreeBSD-STABLE Mailing List <freebsd-stable@freebsd.org>
Subject:   Re: ntpd fails on boot
Message-ID:  <20101215050348.GA2197@osiris.chen.org.nz>
In-Reply-To: <F211F762-1572-4509-9A3D-807E0595C1CD@airwired.net>
References:  <F211F762-1572-4509-9A3D-807E0595C1CD@airwired.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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@chen.org.nz>
----------------------------------------------------------------------
      "The things we know best are the things we haven't been taught."
                                             - Marquis de Vauvenargues



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101215050348.GA2197>