I am trying to setup an ntpd client where it receives its ntp updates from a multicast address. I have a very simple ntp.conf file:
Code:
# This is the most basic ntp configuration file
driftfile /etc/ntp.drift
disable auth
multicastclient ff02::101
server 127.127.1.0
But in the log file I am getting a binding error:
Code:
31 Mar 21:35:45 ntpd[1323]: ntpd 4.2.7p482@1.2483-o Thu Dec 4 19:26:52 UTC 2014
(1): Starting
31 Mar 21:35:45 ntpd[1323]: Command line: /usr/bin/ntpd -g -p /var/run/ntpd.pid
-l /tmp/ntp.log
31 Mar 21:35:45 ntpd[1324]: proto: precision = 3.458 usec (-18)
31 Mar 21:35:45 ntpd[1324]: Listen and drop on 0 v6wildcard [::]:123
31 Mar 21:35:45 ntpd[1324]: Listen and drop on 1 v4wildcard 0.0.0.0:123
31 Mar 21:35:45 ntpd[1324]: Listen normally on 2 lo 127.0.0.1:123
31 Mar 21:35:45 ntpd[1324]: Listen normally on 3 lo [::1]:123
31 Mar 21:35:45 ntpd[1324]: Listen normally on 4 eth0 [2001:0:bc:6a:29:c6:d4:85]
:123
31 Mar 21:35:45 ntpd[1324]: Listen normally on 5 eth0 [fe80::be6a:29ff:fec6:d485
%3]:123
31 Mar 21:35:45 ntpd[1324]: Listen normally on 6 eth1 [2001:0:bc:6a:29:c6:d4:86]
:123
31 Mar 21:35:45 ntpd[1324]: Listen normally on 7 eth1 [fe80::be6a:29ff:fec6:d486
%4]:123
31 Mar 21:35:45 ntpd[1324]: Listening on routing socket on fd #24 for interface
updates
31 Mar 21:35:45 ntpd[1324]: bind(25) AF_INET6 ff02::101#123 (multicast) flags 0x
0 failed: Invalid argument
31 Mar 21:35:45 ntpd[1324]: multicast address ff02::101 using wildcard interface
#0 v6wildcard
31 Mar 21:35:45 ntpd[1324]: Joined :: socket to multicast group ff02::101
Using tcpdump I can see that my client is receiving the ntp messages:
Code:
21:37:03.219064 IP6 2001::e:c6:89:4c:95.ntp > ff02::101.ntp: NTPv4, Broadcast, l
ength 48
21:38:09.218618 IP6 2001::e:c6:89:4c:95.ntp > ff02::101.ntp: NTPv4, Broadcast, l
ength 48
21:39:14.222485 IP6 2001::e:c6:89:4c:95.ntp > ff02::101.ntp: NTPv4, Broadcast, l
ength 48
21:40:21.217755 IP6 2001::e:c6:89:4c:95.ntp > ff02::101.ntp: NTPv4, Broadcast, l
ength 48
21:41:25.219654 IP6 2001::e:c6:89:4c:95.ntp > ff02::101.ntp: NTPv4, Broadcast, l
ength 48
21:42:29.215868 IP6 2001::e:c6:89:4c:95.ntp > ff02::101.ntp: NTPv4, Broadcast, l
ength 48
21:43:34.214342 IP6 2001::e:c6:89:4c:95.ntp > ff02::101.ntp: NTPv4, Broadcast, l
ength 48
As you can see from the time stamps, ntp is not adjusting the time (this was done at 7:50 AM EST on Dec 5 2014).
I have this running on Linux 3.12. It is versoin 4.2.7p482 of ntpd.