From owner-freebsd-bugs@FreeBSD.ORG Tue Jun 7 14:30:36 2005 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4471116A424 for ; Tue, 7 Jun 2005 14:30:36 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 603F143D49 for ; Tue, 7 Jun 2005 14:30:35 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j57EUZcg009541 for ; Tue, 7 Jun 2005 14:30:35 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j57EUZfb009539; Tue, 7 Jun 2005 14:30:35 GMT (envelope-from gnats) Resent-Date: Tue, 7 Jun 2005 14:30:35 GMT Resent-Message-Id: <200506071430.j57EUZfb009539@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Konstantin Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 195B016A41F for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: bin/81997: ntpd fails to bind to IP-address X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Jun 2005 14:30:36 -0000 >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 mtu 1500 options=8 inet 10.1.0.1 netmask 0xffffff00 broadcast 10.1.0.255 ether 00:0c:6e:a6:6e:19 media: Ethernet autoselect (100baseTX ) 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: