From owner-freebsd-questions@FreeBSD.ORG Mon Nov 7 18:32:44 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 6528F1065672 for ; Mon, 7 Nov 2011 18:32:44 +0000 (UTC) (envelope-from Dave.Robison@fisglobal.com) Received: from mx1.fisglobal.com (mx1.fisglobal.com [199.200.24.190]) by mx1.freebsd.org (Postfix) with ESMTP id 2DCF88FC15 for ; Mon, 7 Nov 2011 18:32:43 +0000 (UTC) Received: from pps.filterd (ltcfislmsgpa03 [127.0.0.1]) by ltcfislmsgpa03.fnfis.com (8.14.4/8.14.4) with SMTP id pA7IJfsL010511 for ; Mon, 7 Nov 2011 12:32:43 -0600 Received: from smtp.fisglobal.com ([10.132.206.15]) by ltcfislmsgpa03.fnfis.com with ESMTP id 10xm0y8bfv-15 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Mon, 07 Nov 2011 12:32:43 -0600 Received: from lefty.vicor.com (10.14.152.59) by smtp.fisglobal.com (10.132.206.15) with Microsoft SMTP Server (TLS) id 14.1.323.3; Mon, 7 Nov 2011 12:32:17 -0600 Message-ID: <4EB8242F.4030405@fisglobal.com> Date: Mon, 7 Nov 2011 10:32:15 -0800 From: "Robison, Dave" User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.13) Gecko/20110120 Lightning/1.0b2 Thunderbird/3.1.7 MIME-Version: 1.0 To: References: In-Reply-To: X-Originating-IP: [10.14.152.59] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.4.6813, 1.0.211, 0.0.0000 definitions=2011-11-07_05:2011-11-07, 2011-11-07, 1970-01-01 signatures=0 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: ntpdate on boot problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: david.robison@fisglobal.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Nov 2011 18:32:44 -0000 On 11/05/2011 14:52, Robert Simmons wrote: > Is there a way to make sure that the interface is UP and working > before running ntpdate at boot on a box with a static IP address? > > After setting ntpdate_enable="YES" in rc.conf, I get the following > error on boot: > > Setting date via ntp. > Error : hostname nor servname provided, or not known > 5 Nov 17:11:05 > ntpdate[786]: can't find host 0.freebsd.pool.ntp.org > > Error : hostname nor servname provided, or not known > 5 Nov 17:11:05 > ntpdate[786]: can't find host 1.freebsd.pool.ntp.org > > Error : hostname nor servname provided, or not known > 5 Nov 17:11:05 > ntpdate[786]: can't find host 2.freebsd.pool.ntp.org > > 5 Nov 17:11:05 > ntpdate[786]: no servers can be used, exiting > > I've had this problem with machines using DHCP and the solution was to > use SYNCDHCP rather than DHCP in rc.conf. However, this box is using > a static IP address. But the problem seems to be similar. > > Rob > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > I believe the easiest answer to your question is to do the following in /etc/rc.conf: netwait_enable="YES" netwait_ip="$defaultrouter" This will cause your interface to wait until it can ping the default router. http://lists.freebsd.org/pipermail/freebsd-rc/2010-June/001987.html Enjoy, Dave -- Dave Robison Sales Solution Architect II FIS Banking Solutions 510/621-2089 (w) 530/518-5194 (c) 510/621-2020 (f) daver@vicor.com david.robison@fisglobal.com _____________ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.