ntpd bind() failure: Can't assign requested address

Fleuriot Damien ml at my.gd
Wed Mar 13 13:38:18 UTC 2013


On Mar 12, 2013, at 11:44 PM, Damien Fleuriot <ml at my.gd> wrote:

> 
> On 12 Mar 2013, at 22:42, "M. Schulte" <m-freebsd at fuglos.org> wrote:
> 
>> Hi!
>> 
>> [First of all, I have posted this question already on the FreeBSD
>> forum -- so far without replies -- and now my hope is that the set of
>> subscribers here and those of the forum do not completely coincide.]
>> 
>> I have installed FreeBSD 9.1 on my server (it's a virtualized qemu/kvm
>> environment, in case that matters) and during boot the following
>> messages appear:
>> 
>>  ntpd[766]: ntpd 4.2.4p5-a (1)
>>  ntpd[767]: bind() fd 23, family AF_INET6, port 123, scope 2, addr fe80::216:36ff:fe74:2076, mcast=0 flags=0x11 fails: Can't assign requested address
>>  ntpd[767]: unable to create socket on re0 (3) for fe80::216:36ff:fe74:2076#123
>> 
>> This happens with a GENERIC kernel. I have not touched any IPv6
>> related configuration after install, so everything should be in the
>> default state. Neither have I changed the ntp/ntpd configuration.
>> 
>> Although I could find some threads where people were discussing the
>> same problem, none of the mentioned suggestions fixed this for me.
>> 
>> In particular I tried setting
>> 
>>  ipv6_activate_all_interfaces="YES"
>> 
>> in rc.conf -- didn't fix the problem.
>> 
>> According to ifconfig, my interfaces, re0 in particular, have IPv6
>> addresses associated to them. So why would it fail that a process
>> tries to bind to it? Note that I'm rather unexperienced wrt IPv6.
>> 
>> Would be great if somebody could give me a hint into the right
>> direction. Anybody else experiencing this? Thank you very much!
>> 
>> ~ melanie
>> 
> 
> I'll check tomorrow if we have the same issue at work, although it doesn't look familiar.
> 
> We've got a 9.1 with a custom kernel (although nothing related to ipv6 changed) running in KVM.


I confirm I have the same issue on 9.1 r247912 , as below:

Clearing /tmp (X related).
Updating motd:.
Starting ntpd.
Mar  8 14:57:23 pf1-drt ntpd[938]: bind() fd 23, family AF_INET6, port 123, scope 2, addr fe80::90bd:54ff:fe55:2d21, mcast=0 flags=0x11 fails: Can't assign requested address
Mar  8 14:57:23 pf1-drt ntpd[938]: unable to create socket on vlan12 (3) for fe80::90bd:54ff:fe55:2d21#123



However, ntpd runs fine and is bound to the following addresses:

root at pf1-drt:/var/run # sockstat | grep ntp
root     ntpd       938   3  dgram  -> /var/run/logpriv
root     ntpd       938   20 udp4   *:123                 *:*
root     ntpd       938   21 udp6   *:123                 *:*
root     ntpd       938   22 udp4   195.158.240.37:123    *:*
root     ntpd       938   23 udp4   192.168.32.253:123    *:*
root     ntpd       938   24 udp6   fe80:3::a8b0:eeff:fef9:dbb:123 *:*
root     ntpd       938   25 udp4   192.168.22.254:123    *:*
root     ntpd       938   26 udp6   fe80:4::6820:e3ff:fe0b:76dc:123 *:*
root     ntpd       938   27 udp6   ::1:123               *:*
root     ntpd       938   28 udp6   fe80:7::1:123         *:*
root     ntpd       938   29 udp4   127.0.0.1:123         *:*
root     ntpd       938   31 udp6   fe80:2::90bd:54ff:fe55:2d21:123 *:*
root     ntpd       938   32 udp4   192.168.22.253:123    *:*



More information about the freebsd-net mailing list