[ntp:questions] ntp broadcast not working with IPv6

rakesh v rakeshvanam at gmail.com
Wed Dec 7 09:53:18 UTC 2011


Hi Danny,
Actually I ran the ntpd with Debug option before with a downloaded source
code (ntp-4.26p4).


These are the logs Iam seeing on the client side...

*6 Dec 06:11:52 ntpd[2884]: set_process_priority: Leave priority alone:
priority_done is <2>*
* 6 Dec 06:11:52 ntpd[2884]: proto: precision = 0.208 usec*
* 6 Dec 06:11:52 ntpd[2884]: ntp_io: estimated max descriptors: 1024,
initial socket boundary: 16*
* 6 Dec 06:11:52 ntpd[2884]: Listen and drop on 0 v4wildcard 0.0.0.0 UDP 123
*
* 6 Dec 06:11:52 ntpd[2884]: Listen and drop on 1 v6wildcard :: UDP 123*
* 6 Dec 06:11:52 ntpd[2884]: Listen normally on 2 lo 127.0.0.1 UDP 123*
* 6 Dec 06:11:52 ntpd[2884]: Listen normally on 3 eth1 10.16.34.6 UDP 123*
* 6 Dec 06:11:52 ntpd[2884]: Listen normally on 4 lo ::1 UDP 123*
* 6 Dec 06:11:52 ntpd[2884]: Listen normally on 5 eth2 2000::2 UDP 123*
* 6 Dec 06:11:52 ntpd[2884]: Listen normally on 6 eth1
fe80::a00:27ff:fe68:7b4c UDP 123*
* 6 Dec 06:11:52 ntpd[2884]: Listen normally on 7 eth2
fe80::a00:27ff:fe38:605 UDP 123*
* 6 Dec 06:11:52 ntpd[2884]: peers refreshed*
* 6 Dec 06:11:52 ntpd[2884]: Listening on routing socket on fd #24 for
interface updates*
* 6 Dec 06:11:52 ntpd[2884]: bind(25) AF_INET6 ff02::101#123 (multicast)
flags 0x0 failed: Invalid argument*
* 6 Dec 06:11:52 ntpd[2884]: multicast address ff02::101 using wildcard
interface #1 v6wildcard*
* 6 Dec 06:11:52 ntpd[2884]: Joined :: socket to multicast group ff02::101*
*
*
Actually Iam able to see only one Broadcast packet being received on client
side in wireshark. Packets are not received.
Here Iam not sure why the socket bind is failing for ntpd? Any inputs on
this?


Regs,
RV.







On Wed, Dec 7, 2011 at 8:54 AM, Danny Mayer <mayer at ntp.org> wrote:

> On 11/30/2011 3:50 AM, rakesh v wrote:
> > Hi,
> > Iam facing issues with ntp broadcast <ip address> in case of IPv6.
> > Iam using the latest ntp 4.26p3 package.
> > Can I have a use case scenario for ntp broadcast in IPv6?
> > As I see in the documentation, we can have only multicast addresses in
> IPv6.
>
> Where did you see that? It's not true, multicast also works with IPv4.
> >
> > Here are my configurations:
> > Client side:
> >
> > *# Created by IMI. /etc/ntp.conf*
> > *authenticate yes*
> > *
>
> What is this? I don't recall such an option.
>
> > *
> > *# Broadcastclient mode. *
> > *disable auth *
> > *#broadcastclient*
> > *
> > *
> > *multicastclient ff02::101*
> > *
> > *
> > *# Drift file*
> > *driftfile /etc/ntp/drift*
> > *
> > *
> > *# Keys file. *
> > *keys /etc/ntp/keys*
> > *#trustedkey 100*
> >
> >
> > Server Side:
> >
> > *# Created by IMI. /etc/ntp.conf*
> > *server 127.127.1.0  #Local clock*
> > *fudge 127.127.1.0 stratum 2 #Not disciplined*
> > *
> > *
> > *broadcast ff02::101 iburst*
>
> iburst is invalid.
>
> > *#authenticate yes*
> > *
> > *
> > *# Drift file*
> > *driftfile /etc/ntp/drift*
> > *
> > *
> > *# Keys file. *
> > *keys /etc/ntp/keys*
> > *#trustedkey 100*
> >
> > Iam able to see the broadcast packets being received in the client but
> time
> > synchronization does not happen in the client.
> > I have even enabled the authentication on both the sides also. But no
> use.
> > Can somebody help me out from this?
>
> run ntpd -D2 and see what the output looks like.
>
> Danny
> _______________________________________________
> questions mailing list
> questions at lists.ntp.org
> http://lists.ntp.org/listinfo/questions
>



--


More information about the questions mailing list