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/htm
l/accopt.h
tml 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/htm
l/accopt.h
tml 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===================
=========