Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've been facing the issue Ntp Client is not syncing the ntp server .
Crossed check firewall setting on both ntp client & ntp server .Traffic flows has been allowed to flow between ntp client & ntp server
Need help whether there is any configuration error on my ntp configuration file
Quote:
root:beetel# cat /etc/ntp.conf
# Permit time synchronization with our time source, but do not
# permit the source to query or modify the service on this system.
restrict default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery
# Permit all access over the loopback interface. This could
# be tightened as well, but to do so would effect some of
# the administrative functions.
restrict 127.0.0.1
restrict -6 ::1
# Hosts on local network are less restricted.
#restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap
# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
server be
server porsche.example.com
server porsche.example.com
# Undisciplined Local Clock. This is a fake driver intended for backup
# and when no outside source of synchronized time is available.
server 127.127.1.0 # local clock
fudge 127.127.1.0 stratum 10
# Drift file. Put this in a directory which the daemon can write to.
# No symbolic links allowed, either, since the daemon updates the file
# by creating a temporary in the same directory and then rename()'ing
# it to the file.
driftfile /var/lib/ntp/drift
# Key file containing the keys and key identifiers used when operating
# with symmetric key cryptography.
keys /etc/ntp/keys
# Specify the key identifiers which are trusted.
#trustedkey 4 8 42
# Specify the key identifier to use with the ntpdc utility.
#requestkey 8
# Specify the key identifier to use with the ntpq utility.
#controlkey 8
restrict porsche.example.com nomodify notrap
restrict porsche.example.com nomodify notrap
restrict porsche.example.com nomodify notrap
restrict default ignore
root:beetel#
Ntp client
Quote:
root:beetel# /usr/sbin/ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
porsche.example. .INIT. 16 u - 64 0 0.000 0.000 4000.00
porsche.example. .INIT. 16 u - 64 0 0.000 0.000 4000.00
porsche.example. .INIT. 16 u - 64 0 0.000 0.000 4000.00
LOCAL(0) LOCAL(0) 10 l 50 64 1 0.000 0.000 0.004
Quote:
root:beetel# ntpstat
unsynchronised
time server re-starting
polling server every 64 s
root:beetel#
Quote:
root:beetel# /usr/sbin/ntpdc -c loopinfo
offset: 0.000000 s
frequency: 0.000 ppm
poll adjust: 0
watchdog timer: 74 s
Quote:
root:beetel# /usr/sbin/ntpdc -c kerninfo
pll offset: 0 s
pll frequency: 0.000 ppm
maximum error: 0.02359 s
estimated error: 1e-06 s
status: 0001 pll
pll time constant: 2
precision: 1e-06 s
frequency tolerance: 512 ppm
pps frequency: 0.000 ppm
pps stability: 512.000 ppm
pps jitter: 0.0002 s
calibration interval: 4 s
calibration cycles: 0
jitter exceeded: 0
stability exceeded: 0
calibration errors: 0
the servers (which have the same name??? that's clearly nuts) are not reachable. there is some networking issue, or other, that is stopping any contact between the two, and no obvious problem in NTP itself.
MTU size? Promisc?? the devices just don't appear to be reachable at a basic network level. Doubt there's any need for that at all. Possibly the NTP servers are choosing not to respond based on their own config, but a server listed as Strata 16 just means that it's never ever replied.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.