From nobody@FreeBSD.org  Tue Jun  7 14:25:58 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 195B016A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  7 Jun 2005 14:25:58 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id D253B43D55
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  7 Jun 2005 14:25:57 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j57EPvjH057930
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 7 Jun 2005 14:25:57 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j57EPvsB057911;
	Tue, 7 Jun 2005 14:25:57 GMT
	(envelope-from nobody)
Message-Id: <200506071425.j57EPvsB057911@www.freebsd.org>
Date: Tue, 7 Jun 2005 14:25:57 GMT
From: Konstantin <fk@ol.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ntpd fails to bind to IP-address
X-Send-Pr-Version: www-2.3

>Number:         81997
>Category:       bin
>Synopsis:       ntpd fails to bind to IP-address
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 07 14:30:35 GMT 2005
>Closed-Date:    Fri Jun 01 11:27:27 GMT 2007
>Last-Modified:  Fri Jun 01 11:27:27 GMT 2007
>Originator:     Konstantin
>Release:        5.4-RELEASE
>Organization:
>Environment:
FreeBSD 5.4-RELEASE-p1 #0: Thu Jun  2 21:31:34 MSD 2005 i386
>Description:
During startup ntpd fails to bind to IP-address. 

In /var/log/messages :

Jun  6 14:18:01 hq ntpd[52107]: ntpd 4.2.0-a Sun May  8 06:01:21 UTC 2005 (1)
Jun  6 14:18:01 hq ntpd[52107]: no IPv6 interfaces found
Jun  6 14:18:01 hq ntpd[52107]: bind() fd 10, family 2, port 123, addr 10.1.0.1, in_classd=0 flags=0 fails: Address already in use

### /etc/ntp.conf #####
server 194.149.67.130 burst prefer
server 195.2.64.5 burst prefer
server 131.107.1.10

driftfile /var/db/ntp.drift
restrict default ignore
restrict 127.0.0.1
restrict 194.149.67.130 noquery notrap
restrict 131.107.1.10 noquery notrap
restrict 195.2.64.5 noquery notrap
restrict 10.1.0.0 mask 255.255.0.0 notrust nomodify notrap

##### ifconfig #####
rl1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=8<VLAN_MTU>
        inet 10.1.0.1 netmask 0xffffff00 broadcast 10.1.0.255
        ether 00:0c:6e:a6:6e:19
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active

But, looks like ntpd opens socket:
hq# sockstat | grep ntpd
root     ntpd       88756 3  dgram  -> /var/run/logpriv
root     ntpd       88756 4  udp4   *:123                 *:*
root     ntpd       88756 5  udp4   xxx.xxx.xxx.xxx:123    *:*
root     ntpd       88756 6  udp4   10.1.0.1:123          *:*
root     ntpd       88756 7  udp4   127.0.0.1:123         *:*


So, ntpd doesn't serve time requests, but at FreeBSD box it works well:

hq# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
+alpha.prao.psn. 192.36.143.151   2 u   16  128    3   41.836   -8.932   4.413
*ntp0.zenon.net  .GPS.            1 u   12  128    3   13.133  -11.609   5.067
 time-nw.nist.go .ACTS.           1 u   28   64    3  209.835   21.628   2.180


I tried to vary startup parameters & /etc/ntp.conf, but this problem is not solved.
>How-To-Repeat:
just start ntpd
>Fix:
      
>Release-Note:
>Audit-Trail:

From: Gavin Atkinson <gavin.atkinson@ury.york.ac.uk>
To: bug-followup@FreeBSD.org, fk@ol.ru
Cc:  
Subject: Re: bin/81997: ntpd fails to bind to IP-address
Date: Fri, 13 Apr 2007 18:14:28 +0100

 Hi,
 
 Is this still a problem for you on a more recent version of FreeBSD?
 
 Gavin
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Sun Apr 15 20:13:31 UTC 2007 
State-Changed-Why:  
Note that submitter has been asked for feedback. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=81997 

From: Gavin Atkinson <gavin.atkinson@ury.york.ac.uk>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: bin/81997: ntpd fails to bind to IP-address
Date: Fri, 01 Jun 2007 11:13:49 +0100

 Submitter reports that this is no longer a problem.  This PR should be
 closed.
 
 -------- Forwarded Message --------
 From: F'K <fk@ol.ru>
 Date: Thu, 31 May 2007 23:04:33 +0400
 
 
 No, in FreeBSD-6.2 there's no this problem.
  
 Regards,
 Konstantin
 
         
State-Changed-From-To: feedback->closed 
State-Changed-By: remko 
State-Changed-When: Fri Jun 1 11:27:25 UTC 2007 
State-Changed-Why:  
Via gavin: This is no longer a problem, and the ticket can be closed. 
Making it happen. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=81997 
>Unformatted:
