[prev in list] [next in list] [prev in thread] [next in thread] 

List:       redhat-list
Subject:    Re: NTP Server/Client Configuration
From:       "Carl D. Blake" <carl () boeckeler ! com>
Date:       2002-05-23 16:04:55
[Download RAW message or body]

Are you sure that the server you are connecting to is an NTP server? 
The fact that ntptrace reports that the localhost is a stratum 1 server
indicates that ntp thinks the localhost is the main time server.  I have
a system setup at work here where my computer connects to an ntp server
on our local network, that ntp server then connects to a stratum 2
server (it actually has a choice of 3 different stratum 2 servers), and
the stratum 2 server in turn connects to a stratum 1 server.  When I run
ntptrace I get the following output:

vulcan: stratum 4, offset 0.000063, synch distance 0.17480
rohan.tucson.boeckeler.com: stratum 3, offset 0.000649, synch distance 0.16452
132.239.255.209: stratum 2, offset -0.068681, synch distance 0.00677
timekeeper.isi.edu: stratum 1, offset 0.101405, synch distance 0.00000, refid 'GPS'

rohan.tucson.boeckeler.com is the ntp server on the local network.
132.239.255.209 is the stratum 2 server rohan is connecting to.

I found setting up an ntp server to be confusing, but very easy once I
figured out what to do.  My biggest problem was being waiting long
enough to let the computers find each other and sync up their times with
each other.  For a long time I kept running ntptrace and getting some
message about no ntp time server available even though everything was
setup correctly.

All I had to do to get a connection to an ntp time server to work (once
I had ntp installed and the ntpd daemon running) was to put the line
	server rohan
in /etc/ntp.conf and restart ntpd.  You might check the messages log to
see what ntpd is reporting once it starts up.

On Thu, 2002-05-23 at 06:53, Siller Gonzalez Pico, Mario A wrote:
> Hi,
> 
> I'm trying to configure NTP on several Red Hat Linux boxes without any
> success.  I'm including some information about the configurations I'm
> working on.  Does anyone has any idea of what might be wrong? or  How to
> configure a Red Hat Linux box as an NTP server?.........
> 
> Thanks,
> Mario Siller.
> 
> 
> 
> The IP address of my NTP server is 20.0.0.1. The configuration I have on the
> clients ntp.conf file is:
> 
> server 20.0.0.1
> authenticate no
> 
> On the other hand the ntpd daemon on the server seem to be working ok. When
> I do a ntptrace on the server this is what I get:
> ----------------------------------------------------------------------------
> ----------------------------------------------------------------------------
> --------------------
> [root@localhost root]# ntptrace
> localhost.localdomain: stratum 1, offset 0.000074, synch distance 0.01485,
> refid 'LCL'
> [root@localhost root]#
> ----------------------------------------------------------------------------
> ----------------------------------------------------------------------------
> --------------------
> 
> When I run a ntpdate from any client this is what I get:
> 
> ----------------------------------------------------------------------------
> ----------------------------------------------------------------------------
> --------------------
> [root@localhost log]# ntpdate -b -v -d -u 20.0.0.1
> 23 May 12:03:05 ntpdate[15169]: ntpdate 4.1.0 Wed Sep  5 06:54:31 EDT 2001
> (1)
> transmit(20.0.0.1)
> transmit(20.0.0.1)
> transmit(20.0.0.1)
> transmit(20.0.0.1)
> transmit(20.0.0.1)
> server 20.0.0.1, port 123
> stratum 0, precision 0, leap 00, trust 000
> refid [0.0.0.0], delay 0.00000, dispersion 64.00000
> transmitted 4, in filter 4
> reference time:    00000000.00000000  Thu, Feb  7 2036  6:28:16.000
> originate timestamp: 00000000.00000000  Thu, Feb  7 2036  6:28:16.000
> transmit timestamp:  c0974aec.ae66dbd7  Thu, May 23 2002 12:03:08.681
> filter delay:  0.00000  0.00000  0.00000  0.00000
>          0.00000  0.00000  0.00000  0.00000
> filter offset: 0.000000 0.000000 0.000000 0.000000
>          0.000000 0.000000 0.000000 0.000000
> delay 0.00000, dispersion 64.00000
> offset 0.000000
> 
> 23 May 12:03:09 ntpdate[15169]: no server suitable for synchronization found
> [root@localhost log]#
> ----------------------------------------------------------------------------
> ----------------------------------------------------------------------------
> --------------------
> 
> Finally if I start up the ntpd daemon on any client and run the commands
> "ech rv | ntp"  and ntpq -p this is what I get:
> 
> [root@localhost log]# echo rv | ntpq
> status=c011 sync_alarm, sync_unspec, 1 event, event_restart,
> version="ntpd 4.1.0 Wed Sep  5 06:54:30 EDT 2001 (1)", processor="i686",
> system="Linux2.4.7-10", leap=11, stratum=16, precision=-16,
> rootdelay=0.000, rootdispersion=6.720, peer=0, refid=0.0.0.0,
> reftime=00000000.00000000  Thu, Feb  7 2036  6:28:16.000, poll=4,
> clock=c0974fd1.6db78cc9  Thu, May 23 2002 12:24:01.428, state=0,
> offset=0.000, frequency=0.000, jitter=0.015, stability=0.000
> [root@localhost log]#
> 
> [root@localhost log]# ntpq -p
>      remote           refid      st t when poll reach   delay   offset
> jitter
> ============================================================================
> ==
>  taplab          0.0.0.0         16 u    -   64    0    0.000    0.000
> 4000.00
> [root@localhost log]#
> 
> ----------------------------------------------------------------------------
> ----------------------------------------------------------------------------
> -------------------
> 
> 
> 
> _______________________________________________
> Redhat-list mailing list
> Redhat-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/redhat-list
-- 
Carl D. Blake
Director of Engineering
Boeckeler Instruments, Inc.
4650 S. Butterfield Dr.
Tucson, AZ  85714

Phone: 520-745-0001
FAX: 520-745-0004
email: carl@boeckeler.com

.com



_______________________________________________
Redhat-list mailing list
Redhat-list@redhat.com
https://listman.redhat.com/mailman/listinfo/redhat-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic