Questions tagged [ntpd]

The Network Time Protocol daemon (NTPd) is a daemon program that synchronizes the system time with time servers using the Network Time Protocol (NTP).

The Network Time Protocol daemon () is a daemon that synchronizes the system time with time servers using the Network Time Protocol ().

Website: http://www.ntp.org

Man page: http://linux.die.net/man/8/ntpd

Wikipedia: http://en.wikipedia.org/wiki/Ntpd

236 questions
5
votes
2 answers

Force ntpd to make changes in smaller steps

The NTP documentation says: Under ordinariy conditions, ntpd adjusts the clock in small steps so that the timescale is effectively continuous and without discontinuities - http://doc.ntp.org/4.1.0/ntpd.htm However, this is not at all what I have…
David Wolever
  • 2,267
  • 3
  • 24
  • 27
5
votes
5 answers

ntpdate works, but ntpd can't synchronize

This is in RHEL 5.5. First, ntpdate to the remote host works: $ ntpdate XXX.YYY.4.21 24 Oct 16:01:17 ntpdate[5276]: adjust time server XXX.YYY.4.21 offset 0.027291 sec Second, here are the server lines in my /etc/ntp.conf. All restrict lines have…
dafydd
  • 395
  • 2
  • 3
  • 10
5
votes
3 answers

NTP configuration not recognized?

I'm trying to configure NTP on my machine but it seems that the parameters I set are not being read by the system. Below is my /etc/ntp.conf file. (I applied the most basic configuration to eliminate other issues) server 10.45.68.47 server…
Eugene S
  • 370
  • 2
  • 7
  • 19
5
votes
3 answers

System clock drifting out of sync with hwclock and ntpd

My current system drifts from the hwclock and ntpd dramatically. I've looked at many forums and posts online and on SF, but haven't found a suitable solution. Here is my ntpq -pn output: remote refid st t when poll reach delay …
samxli
  • 203
  • 1
  • 3
  • 11
5
votes
2 answers

Does NTPd have to listen on an interface or address for updating the server time?

NTPd listens on UDP port 123 (all IP addresses), by default. Is this necessary for just updating the server time? If it's necessary to listen on an address, what single address should be used? The possible addresses it can listen on…
Lekensteyn
  • 6,241
  • 6
  • 39
  • 55
5
votes
2 answers

What increments stratum in NTP?

Sorry, it's just not that clear to me from the man pages, Wikipedia, etc. I understand the concept of stratum 0 as an authoritative time source and stratum 1 as the connected server. However, I am not sure what to consider for a larger network that…
Aaron Copley
  • 12,525
  • 5
  • 47
  • 68
4
votes
2 answers

How to do proper VPS timekeeping?

I'm configuring a VPS to log some time-series online data and I notice that the time is off. I'd like to have better than 10 second precision on this. I read somewhere that VPS timekeeping is different than on native (x86) systems because the error…
Xunie
  • 143
  • 6
4
votes
0 answers

ntp_gettime() returns code 5

I'm trying syncronize clock on ubuntu server with commands: $sudo apt-get install ntp $sudo service ntp stop $sudo ntpd -gq $sudo service ntp start But it anyway gives me: $sudo ntptime ntp_gettime() returns code 5 (ERROR) time…
Nikita
  • 141
  • 1
  • 3
4
votes
0 answers

After hours of running, NTP stops working

My NTP servers work great for a couple hours, then they stop working and show "reach: 0" for all hosts, like so: remote refid st t when poll reach delay offset …
Isabell Cowan
  • 123
  • 1
  • 9
4
votes
1 answer

Creating a badly behaved NTP server for testing

I'm trying to test behaviour of a server that's configured with a badly behaved NTP server, such as one that's drifting wildly or reporting times that jump around excessively. I've found lots of advice for setting up a good NTP system, but how can I…
me_and
  • 158
  • 1
  • 9
4
votes
1 answer

NTP: Linux client won't sync with Win7 server running ntpd ( not w32time)

We have a 'bot with a Linux host running on an internal network connected only to a Win7 host. The Win7 host has internet access, but the Linux host does not. (historical reasons) When I load NTPD from Meinberg on the win7 box it syncs with network…
John P. Fisher
  • 490
  • 4
  • 9
4
votes
1 answer

Set Linux ntpd as broadcast client

I have the following situation: I am trying to setup an NTP server in LAN, which will update the NTP clients in LAN. All machines are CentOS, and ntpd that is running is ntpd 4.2.6p5@1.2349-o Sat Nov 23 18:20:11 UTC 2013 (1) I configure the…
Alex
  • 41
  • 1
  • 2
4
votes
2 answers

Ntpd excessively inaccurate

I have ntpd set up (Meinberg ntp-4.2.6p5@london version for Windows on a Windows 7 client) with a bunch of nearby servers selected for low ping times (usually 10-20ms ping). However it seems my clock is only accurate to within 100ms or less, and it…
Alex I
  • 207
  • 1
  • 8
4
votes
2 answers

ntpd running as non-root, but outgoing packets match as uid 0

I set my default iptables OUTPUT chain to DROP packets. I then created a firewall rule to only allow the ntp user to send ntp packets out: iptables -A OUTPUT -m owner --uid-owner ntp -p udp --dport 123 -j ACCEPT However, every 10-20 minutes I would…
4
votes
2 answers

Getting IPTables to properly forward NTP traffic

I have the following setup: NTP 10.21.3.169 | | 10.21.3.160 (eth1) Linux 10.0.0.67 (eth0) | | 10.0.0.65 (pcn1) OpenBSD The idea is to allow the NTPD client (not OpenNTP) on the OpenBSD box to get the time from the…
Rich
  • 1,343
  • 7
  • 28
  • 39