I need to setup a ntp multicast client. To be able to check of my configuration is good, I trIde to setup an NTP multicast server.
My setup :
- 2 VM of Centos 7, up to date
- I am using 2 virtual machine in virtualbox, I have setup both with promicius mode : allow all
My problems are :
- On the server, the multicast entry is reported as stratum 16; is stratum relevant for multicast? Does the client will reject this as the stratum is low? How can I force a lower stratum for a multicast server?
- My client doesn't seems to see my server, even if my keys file are identical and that I have trusted the key 1 on both sides.
Using instructions for orphan, it doesn't seems to lower the reported stratum for the multicast address :
ntpq -n -p remote refid st t when poll reach delay offset jitter ============================================================================== *188.8.131.52 184.108.40.206 4 u 14 64 377 0.454 2.267 1.479 220.127.116.11 .MCST. 16 u - 64 0 0.000 0.000 0.000
And my client still doesn't seems to be able to find a server on the 18.104.22.168 address.
I have checked on the server vm, my host machine, and on the client vm, they all see the server multicast messages (for vm : using tcpdump, for host : using wireshark).
On client, using
ntpq -n -p will return this :
No association ID's returned
On the client, my config file have all restrict instructions commented, and I only have these (and some more like driftfile and such) :
multicastclient 22.214.171.124 keys /etc/ntp/keys trustedkey 1
ntpd client log gives me this :
systemd: Starting Network Time Service... ntpd: ntpd firstname.lastname@example.org Tue Jun 23 15:38:18 UTC 2020 (1) systemd: Started Network Time Service. ntpd: proto: precision = 0.052 usec ntpd: 0.0.0.0 c01d 0d kern kernel time sync enabled ntpd: ntp_io: estimated max descriptors: 1024, initial socket boundary: 16 ntpd: Listen and drop on 0 v4wildcard 0.0.0.0 UDP 123 ntpd: Listen and drop on 1 v6wildcard :: UDP 123 ntpd: Listen normally on 2 lo 127.0.0.1 UDP 123 ntpd: Listen normally on 3 enp0s3 126.96.36.199 UDP 123 ntpd: Listen normally on 4 lo ::1 UDP 123 ntpd: Listen normally on 5 enp0s3 fe80::a00:27ff:fec1:cc1 UDP 123 ntpd: Listening on routing socket on fd #22 for interface updates ntpd: Listen normally on 6 multicast 188.8.131.52 UDP 123 ntpd: Joined 184.108.40.206 socket to multicast group 220.127.116.11 ntpd: 0.0.0.0 c016 06 restart ntpd: 0.0.0.0 c012 02 freq_set kernel 0.000 PPM ntpd: 0.0.0.0 c011 01 freq_not_set ntpd: io_setbclient: Opened broadcast client on interface #3 enp0s3