From cab902@yahoo.com  Sun Feb 24 20:33:29 2008
Return-Path: <cab902@yahoo.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 6EB0B16A401
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 24 Feb 2008 20:33:29 +0000 (UTC)
	(envelope-from cab902@yahoo.com)
Received: from jimbo.globalnet.hr (jimbo.globalnet.hr [213.149.32.23])
	by mx1.freebsd.org (Postfix) with ESMTP id 69F4E13C4D1
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 24 Feb 2008 20:33:28 +0000 (UTC)
	(envelope-from cab902@yahoo.com)
Received: from mail.globalnet.hr (cartman.globalnet.hr [213.149.32.10])
	by jimbo.globalnet.hr (Postfix) with ESMTP id A52912D79EF
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 24 Feb 2008 21:32:30 +0100 (CET)
Received: (qmail 2172 invoked from network); 24 Feb 2008 20:32:28 -0000
Received: from dh207-9-152.xnet.hr (HELO spitfire.dionet.hr) ([88.207.9.152])
          (envelope-sender <cab902@yahoo.com>)
          by 0 (qmail-ldap-1.03) with SMTP
          for <FreeBSD-gnats-submit@freebsd.org>; 24 Feb 2008 20:32:28 -0000
Received: from spitfire.dionet.hr (localhost [127.0.0.1])
	by spitfire.dionet.hr (8.14.2/8.14.2) with ESMTP id m1OKWA3U012894
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 24 Feb 2008 21:32:11 +0100 (CET)
	(envelope-from hark@spitfire.dionet.hr)
Received: (from hark@localhost)
	by spitfire.dionet.hr (8.14.2/8.14.2/Submit) id m1OKWAEM012893;
	Sun, 24 Feb 2008 21:32:10 +0100 (CET)
	(envelope-from hark)
Message-Id: <200802242032.m1OKWAEM012893@spitfire.dionet.hr>
Date: Sun, 24 Feb 2008 21:32:10 +0100 (CET)
From: Hark <cab902@yahoo.com>
Reply-To: Hark <cab902@yahoo.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [ntp] ntpd doesn't sync with servers after dhclient changes IP
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         121059
>Category:       bin
>Synopsis:       ntpd(8) doesn't sync with servers after dhclient changes IP
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 24 20:40:01 UTC 2008
>Closed-Date:    
>Last-Modified:  Wed Aug  6 13:20:02 UTC 2008
>Originator:     Domagoj Hranjec
>Release:        FreeBSD 6.3-RELEASE-p1 i386
>Organization:
>Environment:
System: FreeBSD spitfire.dionet.hr 6.3-RELEASE-p1 FreeBSD 6.3-RELEASE-p1 #0: Wed Feb 13 02:40:56 UTC 2008 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:
	After my IP address expires, ntpd doesn't sync with external NTP servers anymore.

Feb 22 18:03:49 spitfire ntpd[697]: ntpd 4.2.0-a Tue Jan 15 23:29:41 UTC 2008 (1)
Feb 22 18:15:37 spitfire ntpd[697]: time reset -0.853664 s
Feb 22 18:15:37 spitfire ntpd[697]: kernel time sync disabled 2041
Feb 22 18:38:05 spitfire ntpd[697]: kernel time sync enabled 2001
Feb 22 23:26:27 spitfire ntpd[697]: kernel time sync enabled 6001
Feb 22 23:27:52 spitfire ntpd[697]: kernel time sync enabled 2001
Feb 23 08:15:57 spitfire ntpd[697]: kernel time sync enabled 6001
Feb 23 08:51:15 spitfire ntpd[697]: kernel time sync enabled 2001
Feb 23 09:59:33 spitfire ntpd[697]: kernel time sync enabled 6001
Feb 23 10:16:38 spitfire ntpd[697]: kernel time sync enabled 2001
Feb 23 11:24:55 spitfire ntpd[697]: kernel time sync enabled 6001
Feb 23 11:40:50 spitfire ntpd[697]: kernel time sync enabled 2001
Feb 23 12:15:00 spitfire ntpd[697]: kernel time sync enabled 6001
Feb 23 12:32:04 spitfire ntpd[697]: kernel time sync enabled 2001
Feb 23 13:24:29 spitfire ntpd[697]: kernel time sync enabled 6001
Feb 23 13:40:20 spitfire ntpd[697]: kernel time sync enabled 2001
Feb 23 14:48:37 spitfire ntpd[697]: kernel time sync enabled 6001
Feb 23 15:05:41 spitfire ntpd[697]: kernel time sync enabled 2001
Feb 23 16:49:25 spitfire ntpd[697]: time reset -0.215929 s
Feb 23 17:31:14 spitfire ntpd[697]: time reset +0.160516 s
Feb 23 18:03:50 spitfire dhclient: New IP Address (rl0): xx.xxx.x.x
Feb 23 18:03:50 spitfire dhclient: New Subnet Mask (rl0): 255.255.252.0
Feb 23 18:03:50 spitfire dhclient: New Broadcast Address (rl0): 255.255.255.255
Feb 23 18:03:50 spitfire dhclient: New Routers (rl0): xx.xxx.x.x

ntpq> peers
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 zg1.ntp.CARNet. .INIT.          16 u 208m 1024    0    0.000    0.000 4000.00
 zg2.ntp.CARNet. .INIT.          16 u 212m 1024    0    0.000    0.000 4000.00

Remote servers stay in .INIT. and won't sync anymore. 

	
>How-To-Repeat:
	Configure dhclient and ntpd and wait for IP to expire.
	
>Fix:
	Perhaps this one?:
https://support.ntp.org/bugs/show_bug.cgi?id=51 
	


>Release-Note:
>Audit-Trail:

From: Edwin Groothuis <edwin@freebsd.org>
To: FreeBSD Gnats Submit <freebsd-gnats-submit@freebsd.org>
Cc:  
Subject: Re: bin/121059: ntpd(8) doesn't sync with servers after dhclient changes IP
Date: Wed, 6 Aug 2008 23:14:44 +1000

 This should be fixed in 4.2.2:
 
 https://support.ntp.org/bugs/show_bug.cgi?id=622
 
     Functionality:
     - automatically bind to newly configured network interfaces
     - allow associations to be configured even when the current network configuration
       would not support that
     - keep (configured) associations even when the interface goes away
     - remove hard coded limit on number of interfaces (now only limited by libisc
     limits)
     - check for interface changes via routing socket on systems that support it.
     - add ntpdc commands ifstats (display current interface list), ifreload (re-check
       interfaces)
 
 
 
 -- 
 Edwin Groothuis
 edwin@freebsd.org
 http://www.mavetju.org
>Unformatted:
