[ntp:questions] "No association ID's returned" after a period of time
E-Mail Sent to this address will be added to the BlackLists
Null at BlackList.Anitech-Systems.invalid
Thu Dec 18 21:15:00 UTC 2014
saxenaakash90 at gmail.com wrote:
> please help me in configuring broadcast ntp server and client.
> I have configured NTP version 4.2.6 server on fedora 20 machine.
> server side I am using local system time and given a broadcast
> subnet and all other options are disabled and on client's side
> I enabled only broadcast client.
> I haven't given server's address as according to my understanding
> server should broadcast NTP packets and client will automatically
> listen NTP packets and will get sync. but my NTP client is not
> syncing with server. please help me with all possibilities.
I think manycast would be a better choice than broadcast;
{examples included at bottom below}.
That said, you are likely missing something like:
restrict -4 default limited kod nomodify notrap nopeer noquery
restrict 192.168.0.0 mask 255.255.255.0 nomodify # where 192.168.0.0/24 is your LAN
restrict source nomodify
keys "/etc/ntp.keys" # e.g. contains: 123 M LANA_MD5_KEY , 321 M LANB_MD5_KEY , ...
trustedkey 123 321
broadcast 192.168.0.255 key 123
broadcast 224.0.1.1 key 321
broadcastclient
...
e.g.
# in ntp.conf for ALL Primary Servers
# Start ntpd with -g, the -g will prevent a panic stop if the time needs to be stepped when started
restrict -6 default limited kod nomodify notrap nopeer noquery
restrict ::1
restrict -4 default limited kod nomodify notrap nopeer noquery
restrict 127.0.0.1
restrict 224.0.1.1 mask 255.255.255.255 nomodify
restrict source nomodify
tos cohort 1 orphan 11 mindist 0.4
keys "/etc/ntp.keys" # e.g. contains: 123 M LAN_MD5_KEY , 321 M Corp_MD5_KEY , ...
trustedkey 123 321
broadcastclient
multicastclient 224.0.1.1 key 123 preempt
manycastserver 224.0.1.1
manycastclient 224.0.1.1 key 123 preempt
# Corp LAN S1/S2(s)
peer a.ntp.lan.corp.example.com key 321 iburst preempt minpoll 4 # 16sec
peer b.ntp.lan.corp.example.com key 321 iburst preempt minpoll 4 # 16sec
pool pool.ntp.remote.corp.example.com key 321 iburst preempt minpoll 7 # 2min
pool ntp.isp.example.net iburst preempt minpoll 7 # 2min
pool ntp.osvendor.example.net iburst preempt minpoll 8 # 4min
pool ntp.regional.timebase.org iburst preempt minpoll 8 # 4min
pool pool.ntp.org preempt minpoll 8 # 4min
.... GPS Config prefer minpoll 4 maxpoll 4 # 16sec prefer only the GPS
e.g.
# in ntp.conf for ALL Clients
# Start ntpd with -g, the -g will prevent a panic stop if the time needs to be stepped when started
restrict -6 default limited kod nomodify notrap nopeer noquery
restrict ::1
restrict -4 default limited kod nomodify notrap nopeer noquery
restrict 127.0.0.1
restrict 224.0.1.1 mask 255.255.255.255 nomodify
restrict source nomodify
tos cohort 1 orphan 11 mindist 0.4
keys "/etc/ntp.keys" # e.g. contains: 123 M LAN_MD5_KEY , 321 M Corp_MD5_KEY , ...
trustedkey 123 321
broadcastclient
multicastclient 224.0.1.1 key 123 preempt
manycastserver 224.0.1.1
manycastclient 224.0.1.1 key 123 preempt
# Corp LAN S1/S2(s)
server a.ntp.lan.corp.example.com key 321 iburst preempt prefer minpoll 6 # 1min
server b.ntp.lan.corp.example.com key 321 iburst preempt prefer minpoll 6 # 1min
pool pool.ntp.lan.corp.example.com key 321 iburst preempt prefer minpoll 6 # 1min
pool pool.ntp.remote.corp.example.com key 321 iburst preempt minpoll 7 # 2min
--
E-Mail Sent to this address <BlackList at Anitech-Systems.com>
will be added to the BlackLists.
More information about the questions
mailing list