Ntp syncing sometimes not working


4.2.6p2@1.2194-o Fri Dec 26 13:08:59 UTC 2014 (1)


# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help
# This configuration file is automatically generated by the Vyatta
# configuration subsystem.  Please do not manually edit it.
# The first section of this file consists of static parameters
# that can not be changed via the Vyatta configuration subsystem.
driftfile /var/lib/ntp/ntp.drift
# By default, exchange time with everybody, but don't allow configuration.
restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery
# Local users may interrogate the ntp server more closely.

restrict ::1

# The remainder of this file is for parameters that are set up via
# the Vyatta configuration subsystem.



/usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 102:107


date -s to modify time (behind the current time more than 1000 secs)


1.sometimes it can sync time
2.when i restart ntp, it always sync time right

Hello @moots

It’s not quite clear from your post, but I guess this is running Vyatta routing software, ntp runs for a while then the time drifts?

My questions would be:
Is that the only “server” line in the config file?
Are there any useful ntpd messages in /var/log/syslog?
192.168. is a local LAN address - is that machine running correctly?


3.sometimes ntp can sync time

time server: