Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Mar 2013 14:17:16 +0000
From:      Schrodinger <schrodinger@konundrum.org>
To:        freebsd-net@freebsd.org
Subject:   Re: ntpd bind() failure: Can't assign requested address
Message-ID:  <20130313141716.GB18992@defiant.konundrum.org>
In-Reply-To: <EB512A35-E253-4C00-8293-029DAEBD345B@my.gd>
References:  <alpine.BSF.2.00.1303122241080.77297@m.fuglos.org> <76E2EE0D-B6D3-428E-9112-AF0E04E98DDE@my.gd> <EB512A35-E253-4C00-8293-029DAEBD345B@my.gd>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On 2013/03/13 14:38, Fleuriot Damien wrote:

> 
> On Mar 12, 2013, at 11:44 PM, Damien Fleuriot <ml@my.gd> wrote:
> 
> > 
> > On 12 Mar 2013, at 22:42, "M. Schulte" <m-freebsd@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@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    *:*
> 
> _______________________________________________
> freebsd-net@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"

I have observed the same behaviour :

Mar 13 14:10:27 howard ntpd[1603]: bind() fd 32, family AF_INET6, port 123, scope 9, addr fe80::20a:faff:fe20:3a1, mcast=0 flags=0x13 fails: Can't assign requested address
Mar 13 14:10:27 howard ntpd[1603]: unable to create socket on gif6 (3994) for fe80::20a:faff:fe20:3a1#123

FreeBSD howard.tog.space 9.1-STABLE FreeBSD 9.1-STABLE #1: Mon Feb 25 18:37:43 GMT 2013     root@howard.tog.space:/usr/obj/usr/src/sys/HOWARD  amd64

# sockstat -lp123
USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN ADDRESS      
root     ntpd       1603  20 udp4   *:123                 *:*
root     ntpd       1603  21 udp6   *:123                 *:*
root     ntpd       1603  22 udp4   87.198.63.241:123     *:*
root     ntpd       1603  23 udp4   192.168.1.2:123       *:*
root     ntpd       1603  24 udp4   172.16.0.1:123        *:*
root     ntpd       1603  25 udp6   fe80:2::219:b9ff:fef8:9700:123 *:*
root     ntpd       1603  26 udp6   2001:770:100:81da::1:123 *:*
root     ntpd       1603  27 udp6   ::1:123               *:*
root     ntpd       1603  28 udp6   fe80:8::1:123         *:*
root     ntpd       1603  29 udp4   127.0.0.1:123         *:*
root     ntpd       1603  31 udp6   2001:770:100:1da::2:123 *:*

gif6: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1280
        tunnel inet XXX.XXX.XXX.XXX --> XXX.XXX.XXX.XXX
        inet6 fe80::20a:faff:fe20:3a1%gif6 prefixlen 64 tentative scopeid 0x9 
        inet6 removed --> removed prefixlen 128 
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
        options=1<ACCEPT_REV_ETHIP_VER>

C.
-- 
+---------------------------------------------------------------+
Quidquid latine dictum sit, altum sonatur.
MSN: schro5@hotmail.com
ICQ: 112562229
GPG: http://www.konundrum.org/schro.asc

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iQIcBAEBCgAGBQJRQIprAAoJEBBi7cjNKnTjZegP/2ahlTW7Wxv/+HCW6bKUabzx
oPAyxaO80ieDDsT0FAYJi2M8f0FSXeTsJePZjkpWBLmPO+aGhrExeJgRCF8kFw8h
Y1pJW3c3bqCxF8kWLvziJe3FNTFGQ6XdMcXN1kJJ8TfHPDVOaNt5ZYzle6uTTpJM
0M9BPTqRFDfM1zplivapLE/9uU4qlEMVtDyZcV89unQ8ybkgq+WjjUx9VeJLUZkx
NkAo7/7xwttzElqsOVC4ad1e6rqtyYQFEZP5uWnxG3yChn2W6Xf45TjS7lzQMyPQ
e0umVYXpms4TyD/XmZg9R1NlouaKi7tmrJ8RD/E2BNuX92vCrH70m3yeK4/ZY+Ot
CgjMKXXGCFFFCgoEGfvNzb4DUoG6wkGjei4lQoyKnVOUwpDtSNPnRLpCuOdWpDxF
rqh9IwqBcvgW+FglOFg5M2kTKTYJ5bmN5I4yDRDzZAdgpp/HufVK3Y3B4gIwcAjZ
YzmAIwVJeGO8pwmTD2bHZyQxGyXVDRyfDxebgpSo8E1BijzA+614qY44zeMLMop+
dt79tCXBLqCygYxp3+zXKAD8Ah2Wep4D6hOLgkBoe/UOj97hhDptB9JGS3Lat7RN
VbcKiZueKuxx/Mi+Ia4csWiJIPb/fAsMoSK1f3aQVySRDL8JxaDDWxfBmhfFovLw
6IApEkYgUHwS7hThNhlv
=tD7N
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130313141716.GB18992>