LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-06-2014, 04:10 AM   #1
Santoshkb
Member
 
Registered: Sep 2007
Posts: 56

Rep: Reputation: 15
Question Configuring NTP server and Client.


Hi all,

I'm stuck with configuring ntp proxy.

Requirement is

Host A(10.102.79.182) sync with remote ntp server(10.102.78.198).

and other machines (Host a1, a2) syncs with the Host A


Host A's /etc/ntp.conf
------------------------------
server 10.102.78.198 //RemoteserverIP
restrict 10.102.78.198 mask 255.255.255.255

server 10.102.79.182//SelfIp
restrict 10.102.79.182 mask 255.255.0.0
restrict 127.0.0.1 mask 255.255.255.255
restrict default ignore
tinker panic 0
driftfile /var/lib/ntp/drift
-----------------------------

Host a1
---------------------
server 10.102.79.182
restrict 10.102.79.182 mask 255.255.255.255 nomodify notrap nopeer
restrict 127.0.0.1 mask 255.255.255.255
restrict default ignore
tinker panic 0
driftfile /var/lib/ntp/drift
---------------------


but a1 is not syncing with Host A awaited for almost 3-4hrs

checked with ntpq seems fine.

[hosta1~]# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
10.102.79.182 .INIT. 16 u - 1024 0 0.000 0.000 4000.00

[hostA ~]# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
10.102.78.198 .LOCL. 1 u 20 64 377 1.201 4319598 10.081
10.102.79.182 .INIT. 16 u - 1024 0 0.000 0.000 4000.00

Could you let me know what configuration is missing or how to fix this
 
Old 11-06-2014, 09:50 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,259

Rep: Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117
[quote]
remote refid st t when poll reach delay offset jitter
==============================================================================
10.102.78.198 .LOCL. 1 u 20 64 377 1.201 4319598 10.081
[\quote]
hostA is talking to the server but its offset (4319598) is way to big. It falls back to using itself as the clock which means its accuracy is not good enough i.e. st 16 to sync the others.

What distribution/version is running on A? ntp should start with the -g option to force it to sync time with the server. You can try forcing it via the -q option. Stop ntp and try running

ntp -q
 
Old 11-09-2014, 06:45 AM   #3
Santoshkb
Member
 
Registered: Sep 2007
Posts: 56

Original Poster
Rep: Reputation: 15
Smile Issue is solved

Thanks much the issue was the reject being used in server's /etc/ntp.conf


ntpq debugging showed that the ntp requests are getting rejected. (http://doc.ntp.org/4.1.2/debug.htm)

it was incorrect entry(subnet class which restricted clients request) in server for reject, after removing it worked.
 
  


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
NTP client is not syncing to ntp server LittleMaster Linux - Newbie 6 04-05-2013 03:37 PM
[SOLVED] NTP configuration in client to synchronize with NTP server. antnish Linux - General 12 04-01-2013 02:49 PM
ntp server/client problems procfs Linux - Newbie 7 12-27-2007 03:37 AM
Setting Up NTP Client/Server kaplan71 SUSE / openSUSE 2 05-31-2006 05:38 PM
Need help with NTP server/client setup ncorreia Linux - General 0 11-06-2003 06:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration