[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.6

My NTP Synchronization is going Crazy !

Asked by umoorjani in Linux, Linux Distributions

Tags: clockstats, ntp, ntpd

Hi Experts,

I have installed an ntp server on my network for my equipements. I have 2 networks, and I installed one on each networks since they are on distinct locations.
Now I have copied and pasted the EXACT configuration on both  ntp servers. I need the server to recieve time at stratum 2 and I need the clients to recieve time at stratum 3. Notice the LOCAL(0) at the ntp -p of the SERVER2 CLIENT RESULTS below. How can I fix this ? Can anyone help ?

Uday MOORJANI

==================START FILE INCLUDE========================


SERVER 1 (THE WORKING ONE):

# /etc/ntp.conf, configuration for ntpd

# ntpd will use syslog() if logfile is not defined
logfile /var/log/ntpd

driftfile /var/lib/ntp/ntp.drift
statsdir /var/log/ntpstats/

statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable


# You do need to talk to an NTP server or two (or three).
#server ntp.your-provider.example

# pool.ntp.org maps to more than 100 low-stratum NTP servers.
# Your server will pick a different set every time it starts up.
#  *** Please consider joining the pool! ***
#  ***  <http://www.pool.ntp.org/#join>  ***

server ntp-sop.inria.fr prefer
fudge ntp-sop.inria.fr stratum 4
server ntp-s1.cise.ufi.edu
fudge ntp-s1.cise.ufi.edu stratum 4
server 213.188.x.249
fudge 213.188.x.249 stratum 5
server 213.16.x.253
fudge 213.16.x253 stratum 5

## uncomment for extra reliability

# ... and use the local system clock as a reference if all else fails
# NOTE: in a local network, set the local stratum of *one* stable server
# to 10; otherwise your clocks will drift apart if you lose connectivity.
server 127.127.1.0
fudge 127.127.1.0 stratum 8


# By default, exchange time with everybody, but don't allow configuration.
# See /usr/share/doc/ntp-doc/html/accopt.html for details.
restrict default kod notrap nomodify nopeer noquery

# Local users may interrogate the ntp server more closely.
restrict 127.0.0.1 nomodify

# Clients from this (example!) subnet have unlimited access,
# but only if cryptographically authenticated
#restrict 192.168.123.0  mask  255.255.255.0 notrust

# If you want to provide time to your local subnet, change the next line.
# (Again, the address is an example only.)
#broadcast 192.168.123.255

# If you want to listen to time broadcasts on your local subnet,
# de-comment the next lines. Please do this only if you trust everybody
# on the network!
#disable auth
#broadcastclient


SERVER RESULT (I NEEDED THE SERVER TO BE ON STRATUM 2):
===========
ntpserver:/root# ntpq -p

     remote            refid      st t when poll reach   delay   offset  jitter
==============================================================================
*ntp-sop.inria.f     195.220.94.163   2 u  656 1024  377  200.311  -15.633  14.889
+213.188.x.249 128.227.205.3    2 u  578 1024  377  182.498  -11.829  16.085
+213.16.x253     128.227.205.3    2 u  620 1024  377   73.865  -15.976  15.126
 LOCAL(0)             LOCAL(0)         8 l   51   64  377    0.000    0.000   0.001

CLIENT RESULT (I NEED THE CLIENT TO BE ON STRATUM 3) :
===========
ntpclient:/root# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*213.188.x.28  138.96.64.10     3 u   82  256  377    0.135    0.176   0.024
 LOCAL(0)        LOCAL(0)        13 l   55   64  377    0.000    0.000   0.001


SERVER 2 (NOT WORKING!!!):

# /etc/ntp.conf, configuration for ntpd

# ntpd will use syslog() if logfile is not defined
#logfile /var/log/ntpd

driftfile /var/lib/ntp/ntp.drift
statsdir /var/log/ntpstats/

statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable


# You do need to talk to an NTP server or two (or three).
#server ntp.your-provider.example

# pool.ntp.org maps to more than 100 low-stratum NTP servers.
# Your server will pick a different set every time it starts up.
#  *** Please consider joining the pool! ***
#  ***  <http://www.pool.ntp.org/#join>  ***

server ntp-sop.inria.fr prefer
fudge ntp-sop.inria.fr stratum 4
server ntp-s1.cise.ufi.edu
fudge ntp-s1.cise.ufi.edu stratum 4
server 213.188.x.249
fudge 213.188.x.249 stratum 5
server 213.16.x.253
fudge 213.16.x.253 stratum 5

#ntp.univ-lyon1.fr
#server pool.ntp.org

#server pool.ntp.org
## uncomment for extra reliability

# ... and use the local system clock as a reference if all else fails
# NOTE: in a local network, set the local stratum of *one* stable server
# to 10; otherwise your clocks will drift apart if you lose connectivity.
server 127.127.1.0
fudge 127.127.1.0 stratum 8

# By default, exchange time with everybody, but don't allow configuration.
# See /usr/share/doc/ntp-doc/html/accopt.html for details.
restrict default kod notrap nomodify nopeer noquery

# Local users may interrogate the ntp server more closely.
restrict 127.0.0.1 nomodify

# Clients from this (example!) subnet have unlimited access,
# but only if cryptographically authenticated
#restrict 192.168.123.0  mask  255.255.255.0 notrust
#restrict 213.0.0.0 mask 255.0.0.0 notrust
#restrict 172.17.0.0 mask 255.255.0.0 notrust

# If you want to provide time to your local subnet, change the next line.
# (Again, the address is an example only.)
#broadcast 192.168.68.255

# If you want to listen to time broadcasts on your local subnet,
# de-comment the next lines. Please do this only if you trust everybody
# on the network!
#disable auth
#broadcastclient

SERVER RESULT (WORKING!!!):

ntpserver2:/root# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 ntp-sop.inria.f 130.149.17.8     2 u   21   64    1  195.832   44.184   0.002
 213.188.x.249 128.227.205.3    2 u   21   64    1  180.029   47.978   0.002
 213.16.x.253   128.227.205.3    2 u   20   64    1  322.103  170.325   0.002
 LOCAL(0)        LOCAL(0)         8 l   22   64    1    0.000    0.000   0.002

CLIENT RESULT (NOT WORKING!!!!!!):

ntpclient2:/root# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 monitor2-mq.med LOCAL(0)         9 u    3   64    1    1.319  -528.32   0.002
 LOCAL(0)        LOCAL(0)        13 l    2   64    1    0.000    0.000   0.002


======================END FILE INCLUDE============================
[+][-]08/04/06 01:29 PM, ID: 17252936Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/04/06 01:34 PM, ID: 17252976Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/04/06 01:41 PM, ID: 17253016Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: Linux, Linux Distributions
Tags: clockstats, ntp, ntpd
Sign Up Now!
Solution Provided By: kblack05
Participating Experts: 4
Solution Grade: A
 
[+][-]08/04/06 06:53 PM, ID: 17254246Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]08/05/06 07:51 AM, ID: 17256075Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]09/24/06 01:27 PM, ID: 17588197Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]09/25/06 08:18 AM, ID: 17593035Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/25/06 08:32 AM, ID: 17593160Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/03/06 10:53 AM, ID: 17653270Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]10/09/06 01:52 PM, ID: 17693483Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89