LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 03-20-2012, 12:58 PM   #1
CrAzYoNi
Member
 
Registered: Sep 2008
Posts: 36

Rep: Reputation: 0
Question Centos 6: NTP server configuration


Hi all,
I'm attempting to configure an NTP server on my LAN to sync with public server's and then to get my client syncing with my LAN NTP server.

It seems that my NTP server sync's with public NTP servers though the stratum stays 16, which not allowed to my client to sync with my server.

can you assist me figure out what I'm doing wrong?

Below are some output's and /etc/ntp.conf configuration (only uncommented lines):
ntpdate -q 0.rhel.pool.ntp.org
server 184.105.192.247, stratum 2, offset 1.536453, delay 0.23978
server 69.164.222.108, stratum 2, offset 1.536968, delay 0.16876
server 69.164.217.193, stratum 3, offset 1.539410, delay 0.17067
20 Mar 19:36:14 ntpdate[19363]: step time server 69.164.222.108 offset 1.536968 sec

ntpdate 0.rhel.pool.ntp.org 1.rhel.pool.ntp.org
20 Mar 19:37:59 ntpdate[19480]: step time server 173.203.117.102 offset 1.995828 sec

[root@centOS ~]# ntpq -p localhost
remote refid st t when poll reach delay offset jitter
==============================================================================
soft-sea-01.ser 131.107.13.100 2 u 3 64 1 207.522 483.486 0.000
ns4.lerfjhax.co 204.9.54.119 2 u 2 64 1 175.054 487.319 0.000
[root@centOS ~]# ntpdate -d localhost
20 Mar 19:42:47 ntpdate[19740]: ntpdate 4.2.4p8@1.1612-o Tue Nov 29 00:09:13 UTC 2011 (1)
Looking for host localhost and service ntp
host found : localhost.localdomain
transmit(127.0.0.1)
receive(127.0.0.1)
transmit(127.0.0.1)
receive(127.0.0.1)
transmit(127.0.0.1)
receive(127.0.0.1)
transmit(127.0.0.1)
receive(127.0.0.1)
transmit(127.0.0.1)
127.0.0.1: Server dropped: strata too high
server 127.0.0.1, port 123
stratum 16, precision -23, leap 11, trust 000
refid [127.0.0.1], delay 0.02562, dispersion 0.00000
transmitted 4, in filter 4
reference time: 00000000.00000000 Thu, Feb 7 2036 8:28:16.000
originate timestamp: d3134017.9070c83f Tue, Mar 20 2012 19:42:47.564
transmit timestamp: d3134017.90700dc0 Tue, Mar 20 2012 19:42:47.564
filter delay: 0.02571 0.02563 0.02562 0.02573
0.00000 0.00000 0.00000 0.00000
filter offset: -0.00002 -0.00000 -0.00000 -0.00005
0.000000 0.000000 0.000000 0.000000
delay 0.02562, dispersion 0.00000
offset -0.000003

20 Mar 19:42:47 ntpdate[19740]: no server suitable for synchronization found

/etc/ntp.conf contents:
driftfile /var/lib/ntp/drift

restrict default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery

restrict 127.0.0.1
restrict 192.168.0.0 mask 255.255.0.0

server 0.rhel.pool.ntp.org iburst
server 1.rhel.pool.ntp.org iburst

includefile /etc/ntp/crypto/pw


Hope that you would be able yo assist me solving this issue.

Best regards,

Last edited by CrAzYoNi; 03-20-2012 at 01:41 PM. Reason: Solved!
 
Old 03-20-2012, 01:41 PM   #2
CrAzYoNi
Member
 
Registered: Sep 2008
Posts: 36

Original Poster
Rep: Reputation: 0
Solved!!!
I had to open the port 123 on my LAN FW
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to synchronize time on 2 server CentOS (do not use NTP) huydq_bk Linux - Server 5 02-14-2012 12:07 PM
NTP configuration in ubantu server Rmankar Linux - Newbie 3 03-22-2011 04:24 AM
NTP SERVER Configuration jmmo1981 Linux - Software 4 03-13-2007 06:33 AM
NTP Local Server Configuration saqis Red Hat 1 10-16-2006 04:45 AM
Ntp Server Configuration rodel Linux - Software 1 10-20-2003 03:10 PM


All times are GMT -5. The time now is 01:47 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration