Setting multiple NTP listen-address

Hi @Viacheslav! I’m familiar with configuring chrony on Linux systems, but with the 1.5 rolling release, the set service ntp ... configurations do not seem to have any effect on chrony’s configuration (least with the standard path of /etc/chrony/chrony.conf).

This forum post seems to suggest there is maybe some discrepancy between the documentation and actual configuration of chrony.

Ultimately, I’m trying to track down why NTP isn’t working…

With my latest NTP settings:

 allow-client xxxxxx
     address xxx.xxx.0.0/16
     address xxx.xxx.0.0/16
 }
 listen-address xxx.xxx.128.235
 server xxxxx.tld {
 }
 server xxxxx.tld {
     prefer
 }
[edit]

Don’t seem to be working…

vyos@xxxx# run show ntp
                             .- Number of sample points in measurement set.
                            /    .- Number of residual runs with same sign.
                           |    /    .- Length of measurement set (time).
                           |   |    /      .- Est. clock freq error (ppm).
                           |   |   |      /           .- Est. error in freq.
                           |   |   |     |           /         .- Est. offset.
                           |   |   |     |          |          |   On the -.
                           |   |   |     |          |          |   samples. \
                           |   |   |     |          |          |             |
Name/IP Address            NP  NR  Span  Frequency  Freq Skew  Offset  Std Dev
==============================================================================
[edit]

Systemd reports chrony is running and using the /etc/chrony/chrony.conf for it’s config:

vyos@xxxx# sudo systemctl status chrony
● chrony.service - chrony, an NTP client/server
     Loaded: loaded (/lib/systemd/system/chrony.service; disabled; preset: enabled)
    Drop-In: /run/systemd/system/chrony.service.d
             └─override.conf
     Active: active (running) since Mon 2024-03-11 09:36:32 UTC; 29s ago
       Docs: man:chronyd(8)
             man:chronyc(1)
             man:chrony.conf(5)
    Process: 481788 ExecStart=/usr/sbin/chronyd -F 1 -f /run/chrony/chrony.conf (code=exited, status=0/SUCCESS)
   Main PID: 481791 (chronyd)
      Tasks: 2 (limit: 9398)
     Memory: 1.3M
        CPU: 182ms
     CGroup: /system.slice/chrony.service
             ├─481791 /usr/sbin/chronyd -F 1 -f /run/chrony/chrony.conf
             └─481792 /usr/sbin/chronyd -F 1 -f /run/chrony/chrony.conf

Mar 11 09:36:32 xxxx systemd[1]: Starting chrony.service - chrony, an NTP client/server...
Mar 11 09:36:32 xxxx chronyd[481791]: chronyd version 4.3 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER +SIGND +ASYNCDNS +NTS +SECHASH +IPV6 -DEBUG)
Mar 11 09:36:32 xxxx chronyd[481791]: Frequency 0.000 +/- 1000000.000 ppm read from /run/chrony/drift
Mar 11 09:36:32 xxxx chronyd[481791]: Using right/UTC timezone to obtain leap second data
Mar 11 09:36:32 xxxx chronyd[481791]: Loaded seccomp filter (level 1)
Mar 11 09:36:32 xxxx systemd[1]: Started chrony.service - chrony, an NTP client/server.
Version:          VyOS 1.5-rolling-202401150027
Release train:    current

Built by:         [email protected]
Built on:         Mon 15 Jan 2024 02:23 UTC
Build UUID:       ae33bb51-d123-4610-a2cb-db17358ce55c
Build commit ID:  365f10340ec2f1

Architecture:     x86_64
Boot via:         installed image
System type:      bare metal

Hardware vendor:  ZOTAC
Hardware model:   XXXXXX
Hardware S/N:     GXXXX301XXXXX
Hardware UUID:    03000200-0400-0500-0006-000700080009

Copyright:        VyOS maintainers and contributors

What am I missing?