Skip to content

NTP servers given by DHCP are not used on Ubuntu Desktop 24.04 LTS #34232

Open

Description

@sebma

systemd version the issue has been seen with

255

Used distribution

Ubuntu Desktop 24.04.1 LTS

Linux kernel version used

6.8.0-41-generic

CPU architectures issue was seen on

x86_64

Component

systemd-timedate, systemd-timesync

Expected behaviour you didn't see

The system uses NTP servers given by our DHCP server.

Unexpected behaviour you saw

The system uses Ubuntu NTP servers.

Steps to reproduce the problem

Configure the ethernet interdace in DHCP and wait.

Additional program output to the terminal or log subsystem illustrating the issue

$ timedatectl show-timesync
FallbackNTPServers=ntp.ubuntu.com
ServerName=ntp.ubuntu.com
ServerAddress=2620:2d:4000:1::41
RootDistanceMaxUSec=5s
PollIntervalMinUSec=32s
PollIntervalMaxUSec=34min 8s
PollIntervalUSec=34min 8s
Frequency=0
$

Activity

  1. added
    bug 🐛
    on Sep 2, 2024
  2. changed the title [-]NTP servers given by DHCP are not used on Ubuntu 24.04 LTS[/-] [+]NTP servers given by DHCP are not used on Ubuntu Desktop 24.04 LTS[/+] on Sep 2, 2024
  3. yuwata commented on Sep 2, 2024

    @yuwata
    Member

    Do you use systemd-networkd? If so, please provide relevant .network files, and result of networkctl status INTERFACE.

  4. added
    needs-reporter-feedback ❓
    and removed on Sep 2, 2024
  5. blaine-dodson commented on Feb 9, 2025

    @blaine-dodson

    I also am experiencing this problem.

    $ systemd --version
    systemd 255 (255.4-1ubuntu8.4)
    +PAM +AUDIT +SELINUX +APPARMOR +IMA +SMACK +SECCOMP +GCRYPT -GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY +P11KIT +QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD -BPF_FRAMEWORK -XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified
    
    $ lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description:    Ubuntu 24.04.1 LTS
    Release:        24.04
    Codename:       noble
    
    $ uname -srm
    Linux 6.8.0-52-generic x86_64
    
    $ timedatectl show-timesync 
    FallbackNTPServers=ntp.ubuntu.com
    ServerName=ntp.ubuntu.com
    ServerAddress=2620:2d:4000:1::41
    RootDistanceMaxUSec=5s
    PollIntervalMinUSec=32s
    PollIntervalMaxUSec=34min 8s
    PollIntervalUSec=34min 8s
    Frequency=0
    
    $ timedatectl status 
                   Local time: Sun 2025-02-09 11:23:35 PST
               Universal time: Sun 2025-02-09 19:23:35 UTC
                     RTC time: Sun 2025-02-09 19:23:35
                    Time zone: America/Los_Angeles (PST, -0800)
    System clock synchronized: no
                  NTP service: active
              RTC in local TZ: no

    Do you use systemd-networkd? If so, please provide relevant .network files, and result of networkctl status INTERFACE.

    It appears that default Ubuntu Desktop 24.04 does not use systemd-networkd.

    $ networkctl status enp4s0
    systemd-networkd is not running, output might be incomplete.
    Failed to query link bit rates: Unit dbus-org.freedesktop.network1.service not found.
    Failed to query link DHCP leases: Unit dbus-org.freedesktop.network1.service not found.
    ● 2: enp4s0
                       Link File: /usr/lib/systemd/network/99-default.link
                    Network File: n/a
                           State: n/a (unmanaged)
                    Online state: unknown
                            Type: ether
                            Path: pci-0000:04:00.0
                          Driver: r8169
                          Vendor: Realtek Semiconductor Co., Ltd.
                           Model: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (Motherboard (one of many))
                Hardware Address: a8:a1:59:ad:70:df (ASRock Incorporation)
                             MTU: 1500 (min: 68, max: 9194)
                           QDisc: fq_codel
    IPv6 Address Generation Mode: none
        Number of Queues (Tx/Rx): 1/1
                Auto negotiation: yes
                           Speed: 1Gbps
                          Duplex: full
                            Port: tp
                         Address: 192.168.1.9
                                  fe80::2506:a128:eb16:e1e6
                         Gateway: 192.168.0.1
    
    Feb 09 10:48:37 alfa systemd-resolved[1180]: enp4s0: Bus client set search domain list to: dodson
    Feb 09 10:48:37 alfa systemd-resolved[1180]: enp4s0: Bus client set default route setting: yes
    Feb 09 10:48:37 alfa systemd-resolved[1180]: enp4s0: Bus client set DNS server list to: 192.168.0.1
  6. lisa50469 commented on Feb 25, 2026

    @lisa50469

    I'm seeing the same thing on Ubuntu 24.04 and time services.
    My kea dhcp sends NTP server and timeservices to my opnsense system, but in the logs I show Ubuntu 24.04 is still trying to access other time services.
    Not sure how to test if Ubuntu gets that data from dhcp or not.

  7. pwariche commented on Nov 24, 2026

    @pwariche

    Problem is stil present (using Linux Mint Zara which is based on Ubuntu 24.04)
    $ systemd --version
    systemd 255 (255.4-1ubuntu8.19)
    +PAM +AUDIT +SELINUX +APPARMOR +IMA +SMACK +SECCOMP +GCRYPT -GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY +P11KIT +QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD -BPF_FRAMEWORK -XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified

    $ lsb_release -a
    No LSB modules are available.
    Distributor ID: Linuxmint
    Description: Linux Mint 22.2
    Release: 22.2
    Codename: zara

    $ uname -a
    Linux chromebox 7.0.0-43-generic #43~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Sat Oct 31 06:52:47 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

    $ timedatectl show-timesync | grep Server
    FallbackNTPServers=ntp.ubuntu.com
    ServerName=ntp.ubuntu.com
    ServerAddress=2620:2d:4000:1::3f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛dhcpneeds-reporter-feedback ❓networktimesync

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions