Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Ntpd tries to listen on non-existent addresses

    Scheduled Pinned Locked Moved 2.2 Snapshot Feedback and Problems - RETIRED
    1 Posts 1 Posters 790 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      phil.davis
      last edited by

      When ntpd is starting up it seems to try and listen on all interfaces, and both IPv4 and IPv6. In my example system there is no IPv6 and it logs a whole bunch of "fails: Can't assign requested address" messages.
      It does no harm, but is just noise in the log, and the word "fail" can make users think there is a problem.
      Probably do not care - but if it is easy to fix then why not.

      Sample ntpd log:

      Nov 28 08:03:34 	ntpd[60859]: Listening on routing socket on fd #48 for interface updates
      Nov 28 08:03:34 	ntpd[60859]: Listen normally on 27 ovpnc2 10.49.239.2:123
      Nov 28 08:03:34 	ntpd[60859]: setsockopt IPV6_MULTICAST_IF 0 for fe80::20d:b9ff:fe24:59c0%18 fails: Can't assign requested address
      Nov 28 08:03:34 	ntpd[60859]: Listen normally on 26 ovpnc2 [fe80::20d:b9ff:fe24:59c0%18]:123
      Nov 28 08:03:34 	ntpd[60859]: Listen normally on 25 gif0 [fe80::20d:b9ff:fe24:59c0%16]:123
      Nov 28 08:03:34 	ntpd[60859]: Listen normally on 24 gif0 [2001:470:35:a7c::2]:123
      Nov 28 08:03:34 	ntpd[60859]: Listen normally on 23 vr0_vlan70 10.11.70.250:123
      Nov 28 08:03:34 	ntpd[60859]: setsockopt IPV6_MULTICAST_IF 0 for fe80::20d:b9ff:fe24:59c0%15 fails: Can't assign requested address
      Nov 28 08:03:34 	ntpd[60859]: Listen normally on 22 vr0_vlan70 [fe80::20d:b9ff:fe24:59c0%15]:123
      Nov 28 08:03:34 	ntpd[60859]: Listen normally on 21 vr0_vlan60 10.11.60.250:123
      Nov 28 08:03:34 	ntpd[60859]: setsockopt IPV6_MULTICAST_IF 0 for fe80::20d:b9ff:fe24:59c0%14 fails: Can't assign requested address
      Nov 28 08:03:34 	ntpd[60859]: Listen normally on 20 vr0_vlan60 [fe80::20d:b9ff:fe24:59c0%14]:123
      Nov 28 08:03:34 	ntpd[60859]: Listen normally on 19 vr0_vlan50 10.11.50.250:123
      Nov 28 08:03:34 	ntpd[60859]: setsockopt IPV6_MULTICAST_IF 0 for fe80::20d:b9ff:fe24:59c0%13 fails: Can't assign requested address
      Nov 28 08:03:34 	ntpd[60859]: Listen normally on 18 vr0_vlan50 [fe80::20d:b9ff:fe24:59c0%13]:123
      Nov 28 08:03:34 	ntpd[60859]: Listen normally on 17 vr0_vlan40 10.11.40.250:123
      Nov 28 08:03:34 	ntpd[60859]: setsockopt IPV6_MULTICAST_IF 0 for fe80::20d:b9ff:fe24:59c0%12 fails: Can't assign requested address
      Nov 28 08:03:34 	ntpd[60859]: Listen normally on 16 vr0_vlan40 [fe80::20d:b9ff:fe24:59c0%12]:123
      Nov 28 08:03:34 	ntpd[60859]: Listen normally on 15 vr0_vlan30 10.11.30.250:123
      Nov 28 08:03:34 	ntpd[60859]: setsockopt IPV6_MULTICAST_IF 0 for fe80::20d:b9ff:fe24:59c0%11 fails: Can't assign requested address
      Nov 28 08:03:34 	ntpd[60859]: Listen normally on 14 vr0_vlan30 [fe80::20d:b9ff:fe24:59c0%11]:123
      Nov 28 08:03:34 	ntpd[60859]: Listen normally on 13 vr0_vlan20 10.11.20.250:123
      Nov 28 08:03:34 	ntpd[60859]: setsockopt IPV6_MULTICAST_IF 0 for fe80::20d:b9ff:fe24:59c0%10 fails: Can't assign requested address
      Nov 28 08:03:34 	ntpd[60859]: Listen normally on 12 vr0_vlan20 [fe80::20d:b9ff:fe24:59c0%10]:123
      Nov 28 08:03:34 	ntpd[60859]: Listen normally on 11 ath0_wlan0 10.49.212.250:123
      Nov 28 08:03:34 	ntpd[60859]: setsockopt IPV6_MULTICAST_IF 0 for fe80::6202:b4ff:fe0c:4539%9 fails: Can't assign requested address
      Nov 28 08:03:34 	ntpd[60859]: Listen normally on 10 ath0_wlan0 [fe80::6202:b4ff:fe0c:4539%9]:123
      Nov 28 08:03:34 	ntpd[60859]: setsockopt IPV6_MULTICAST_IF 0 for fe80::1%7 fails: Can't assign requested address
      Nov 28 08:03:34 	ntpd[60859]: Listen normally on 9 lo0 [fe80::1%7]:123
      Nov 28 08:03:34 	ntpd[60859]: Listen normally on 8 lo0 [::1]:123
      Nov 28 08:03:34 	ntpd[60859]: Listen normally on 7 lo0 127.0.0.1:123
      Nov 28 08:03:34 	ntpd[60859]: Listen normally on 6 vr2 192.168.2.200:123
      Nov 28 08:03:34 	ntpd[60859]: setsockopt IPV6_MULTICAST_IF 0 for fe80::20d:b9ff:fe24:59c2%3 fails: Can't assign requested address
      Nov 28 08:03:34 	ntpd[60859]: Listen normally on 5 vr2 [fe80::20d:b9ff:fe24:59c2%3]:123
      Nov 28 08:03:34 	ntpd[60859]: setsockopt IPV6_MULTICAST_IF 0 for fe80::20d:b9ff:fe24:59c1%2 fails: Can't assign requested address
      Nov 28 08:03:34 	ntpd[60859]: Listen normally on 4 vr1 [fe80::20d:b9ff:fe24:59c1%2]:123
      Nov 28 08:03:34 	ntpd[60859]: Listen normally on 3 vr0 10.49.208.250:123
      Nov 28 08:03:34 	ntpd[60859]: setsockopt IPV6_MULTICAST_IF 0 for fe80::20d:b9ff:fe24:59c0%1 fails: Can't assign requested address
      Nov 28 08:03:34 	ntpd[60859]: Listen normally on 2 vr0 [fe80::20d:b9ff:fe24:59c0%1]:123
      Nov 28 08:03:34 	ntpd[60859]: Listen and drop on 1 v4wildcard 0.0.0.0:123
      Nov 28 08:03:34 	ntpd[60859]: Listen and drop on 0 v6wildcard [::]:123
      Nov 28 08:03:34 	ntpd[60859]: proto: precision = 2.328 usec (-19)
      Nov 28 08:03:34 	ntpd[60675]: Command line: /usr/local/sbin/ntpd -g -c /var/etc/ntpd.conf -p /var/run/ntpd.pid
      Nov 28 08:03:33 	ntpd[60675]: ntpd 4.2.7p479@1.2483-o Tue Nov 18 19:58:26 UTC 2014 (1): Starting
      Nov 28 08:03:33 	ntp: Starting NTP Daemon.
      Nov 28 08:03:33 	ntp: Successfully synced time after 1 attempts.
      Nov 28 08:03:33 	ntpdate[49749]: adjust time server 50.31.240.56 offset -0.124433 sec
      

      As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
      If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.