Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Jun 2005 14:25:57 GMT
From:      Konstantin <fk@ol.ru>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/81997: ntpd fails to bind to IP-address
Message-ID:  <200506071425.j57EPvsB057911@www.freebsd.org>
Resent-Message-ID: <200506071430.j57EUZfb009539@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         81997
>Category:       bin
>Synopsis:       ntpd fails to bind to IP-address
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 07 14:30:35 GMT 2005
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



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