[ntp:questions] Default config on Ubuntu doesn't work as client

Michael B Allen miallen at ioplex.com
Mon Mar 10 07:00:49 UTC 2008


On Mon, 10 Mar 2008 03:52:17 +0000
Harlan Stenn <stenn at ntp.org> wrote:

> >>> In article <20080309231536.67e0fc80.miallen at ioplex.com>, Michael B Allen <miallen at ioplex.com> writes:
> 
> Michael> For example, I just installed the "ntp" package on a Ubuntu
> Michael> server. So I waited an hour and absolutely nothing happened. The
> Michael> time has been out of sync by 3 minutes since ntpd was installed.
> 
> Michael> I did a capture and I can see requests are being answered. There
> Michael> are no firewalls in the way.
> 
> Michael> The default config is inlined below. The only thing I changed was
> Michael> 'server 192.168.2.15' which is the time server (which I know
> Michael> works).
> 
> I think you need a "restrict" line for 192.168.2.15 .
> 
> See http://support.ntp.org/Support/AccessRestrictions .

Hi Harlan,

Adding 'restrict 192.168.2.15' had no effect after 5 minutes and counting.

Below is a request and response if that helps in the diagnosis.

Mike

No.     Time        Source                Destination           Protocol Info
    107 62.564960   192.168.2.23          192.168.2.15          NTP      NTP client

Frame 107 (90 bytes on wire, 90 bytes captured)
Ethernet II, Src: Vmware_82:21:c2 (00:0c:29:82:21:c2), Dst: 3com_cf:5f:18 (00:01:02:cf:5f:18)
Internet Protocol, Src: 192.168.2.23 (192.168.2.23), Dst: 192.168.2.15 (192.168.2.15)
User Datagram Protocol, Src Port: ntp (123), Dst Port: ntp (123)
Network Time Protocol
    Flags: 0xe3
        11.. .... = Leap Indicator: alarm condition (clock not synchronized) (3)
        ..10 0... = Version number: NTP Version 4 (4)
        .... .011 = Mode: client (3)
    Peer Clock Stratum: unspecified or unavailable (0)
    Peer Polling Interval: 6 (64 sec)
    Peer Clock Precision: 0.000001 sec
    Root Delay:    0.0000 sec
    Root Dispersion:    0.0068 sec
    Reference Clock ID: (Initialization)
    Reference Clock Update Time: NULL
    Originate Time Stamp: Mar 10, 2008 06:43:58.9069 UTC
    Receive Time Stamp: Mar 10, 2008 06:48:13.7477 UTC
    Transmit Time Stamp: Mar 10, 2008 06:49:18.7473 UTC

No.     Time        Source                Destination           Protocol Info
    108 62.565348   192.168.2.15          192.168.2.23          NTP      NTP server

Frame 108 (90 bytes on wire, 90 bytes captured)
Ethernet II, Src: 3com_cf:5f:18 (00:01:02:cf:5f:18), Dst: Vmware_82:21:c2 (00:0c:29:82:21:c2)
Internet Protocol, Src: 192.168.2.15 (192.168.2.15), Dst: 192.168.2.23 (192.168.2.23)
User Datagram Protocol, Src Port: ntp (123), Dst Port: ntp (123)
Network Time Protocol
    Flags: 0x24
        00.. .... = Leap Indicator: no warning (0)
        ..10 0... = Version number: NTP Version 4 (4)
        .... .100 = Mode: server (4)
    Peer Clock Stratum: secondary reference (3)
    Peer Polling Interval: 6 (64 sec)
    Peer Clock Precision: 0.000004 sec
    Root Delay:    0.0916 sec
    Root Dispersion:    0.0664 sec
    Reference Clock ID: 69.31.13.210
    Reference Clock Update Time: Mar 10, 2008 06:39:27.6109 UTC
    Originate Time Stamp: Mar 10, 2008 06:49:18.7473 UTC
    Receive Time Stamp: Mar 10, 2008 06:45:03.5936 UTC
    Transmit Time Stamp: Mar 10, 2008 06:45:03.5936 UTC




More information about the questions mailing list