0

I would like to have a minimalistic NTP configuration setup for multiple Linux computers that are completely isolated from the Internet, sitting on the same network, which synchronise their clock to one machine.

I would like to use NTP broadcast to push time information from the master machine to the clients.

Could someone give me a sample on the bare minimum configuration on how to achieve this? Unfortunately, the documentations do not seem to describe this topic in great detail.

Up until now, I have the following setting for the clients:

logfile /var/log/ntp
driftfile /var/lib/ntp/drift/ntp.drift

keys /etc/ntp.keys
trustedkey 1
requestkey 1
controlkey 1

tinker panic 0
tos orphan 10

broadcastclient

And the following for my broadcasting time server:

logfile /var/log/ntp
driftfile /var/lib/ntp/drift/ntp.drift

keys /etc/ntp.keys
trustedkey 1
requestkey 1
controlkey 1

tinker panic 0
tos orphan 10

broadcastclient

server  127.127.1.0     # local clock
fudge   127.127.1.0 stratum 10

broadcast 255.255.255.255

I am wondering if I have any issue in my existing configuration.

  • So is that working for you? If not, how? – Andrew Schulman Feb 27 '18 at 15:13
  • When I do "ntpq -p" on the NTP client machine I see no indication of any broadcast (refid ".BCST.") while the server machine shows that. – Peter G. Horvath Feb 27 '18 at 15:57
  • Limited broadcast (255.255.255.255) is not supported in the current versions of ntp. You will probably need to configure multicast or use the client/server mode and configure the clients via DHCP or DNS. – mlichvar Feb 28 '18 at 12:11

0 Answers0