Discussion:
NTP server setup
(too old to reply)
Boszormenyi Zoltan
2014-12-05 09:27:55 UTC
Permalink
Hi,

I am using a custom distro derived from Angström (based on Yocto Daisy)
and I have a problem with the NTP setup in connman.

I can configure the fallback timeservers just fine in /var/lib/connman/settings.

However, as it turns out my Linksys router provides NTP service and
advertises it via DHCP, too, and I can't seem to be able to convince
connman to avoid using it.

For some reason, connman discovers and adds it to the list of
Timeservers even when the machine is set to use a static IP address.

Is there a way to configure connman so
1. it doesn't discover (and use) NTP when the machine has a static IP, or
2. it doesn't use NTP at all?

Thanks in advance,
Zoltán Böszörményi
Patrik Flykt
2014-12-05 11:26:10 UTC
Permalink
Hi,
Post by Boszormenyi Zoltan
I am using a custom distro derived from Angström (based on Yocto Daisy)
and I have a problem with the NTP setup in connman.
I can configure the fallback timeservers just fine in /var/lib/connman/settings.
However, as it turns out my Linksys router provides NTP service and
advertises it via DHCP, too, and I can't seem to be able to convince
connman to avoid using it.
For some reason, connman discovers and adds it to the list of
Timeservers even when the machine is set to use a static IP address.
ConnMan adds the default router as one of the NTP servers. In most cases
the default (home) router has NTP configured, and all works just as
expected.
Post by Boszormenyi Zoltan
Is there a way to configure connman so
1. it doesn't discover (and use) NTP when the machine has a static IP, or
2. it doesn't use NTP at all?
Set TimeUpdates to false in the Clock API, see doc/clock-api.txt

Cheers,

Patrik
Boszormenyi Zoltan
2014-12-05 12:18:46 UTC
Permalink
Post by Patrik Flykt
Hi,
Post by Boszormenyi Zoltan
I am using a custom distro derived from Angström (based on Yocto Daisy)
and I have a problem with the NTP setup in connman.
I can configure the fallback timeservers just fine in /var/lib/connman/settings.
However, as it turns out my Linksys router provides NTP service and
advertises it via DHCP, too, and I can't seem to be able to convince
connman to avoid using it.
For some reason, connman discovers and adds it to the list of
Timeservers even when the machine is set to use a static IP address.
ConnMan adds the default router as one of the NTP servers. In most cases
the default (home) router has NTP configured, and all works just as
expected.
I see.
Post by Patrik Flykt
Post by Boszormenyi Zoltan
Is there a way to configure connman so
1. it doesn't discover (and use) NTP when the machine has a static IP, or
2. it doesn't use NTP at all?
Set TimeUpdates to false in the Clock API, see doc/clock-api.txt
Thanks for the pointer.

"TimeUpdates=manual" in the [global] section fixed it.

Best regards,
Zoltán Böszörményi
Boszormenyi Zoltan
2014-12-05 12:45:09 UTC
Permalink
Post by Boszormenyi Zoltan
Post by Patrik Flykt
Hi,
Post by Boszormenyi Zoltan
I am using a custom distro derived from Angström (based on Yocto Daisy)
and I have a problem with the NTP setup in connman.
I can configure the fallback timeservers just fine in /var/lib/connman/settings.
However, as it turns out my Linksys router provides NTP service and
advertises it via DHCP, too, and I can't seem to be able to convince
connman to avoid using it.
For some reason, connman discovers and adds it to the list of
Timeservers even when the machine is set to use a static IP address.
ConnMan adds the default router as one of the NTP servers. In most cases
the default (home) router has NTP configured, and all works just as
expected.
I see.
Another question: is there a way do disable this behaviour, so
only the manually configured (fallback) servers are used for NTP
but not the local router?
Post by Boszormenyi Zoltan
Post by Patrik Flykt
Post by Boszormenyi Zoltan
Is there a way to configure connman so
1. it doesn't discover (and use) NTP when the machine has a static IP, or
2. it doesn't use NTP at all?
Set TimeUpdates to false in the Clock API, see doc/clock-api.txt
Thanks for the pointer.
"TimeUpdates=manual" in the [global] section fixed it.
Best regards,
Zoltán Böszörményi
_______________________________________________
connman mailing list
https://lists.connman.net/mailman/listinfo/connman
Patrik Flykt
2014-12-05 14:42:24 UTC
Permalink
Post by Boszormenyi Zoltan
Another question: is there a way do disable this behaviour, so
only the manually configured (fallback) servers are used for NTP
but not the local router?
No.

Cheers,

Patrik

Loading...