How to configure a Linux box as NTP Server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.  
How to configure a Red Hat Linux box as an NTP server?.........
Does anyone has any idea of what might be wrong?....


Thanks.




The IP address of my NTP server is 20.0.0.1. The configuration I have on the
server ntp.conf file is:
server 127.127.1.0
fudge 127.127.1.0 stratum 0
authenticate no

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]#

----------------------------------------------------------------------------
----------------------------------------------------------------------------
-------------------

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux