X-Original-To: alpine-user@lists.alpinelinux.org Received: from luna.geeknet.cz (luna.geeknet.cz [37.205.9.141]) by lists.alpinelinux.org (Postfix) with ESMTP id 82A865C4D33 for ; Thu, 19 Oct 2017 11:54:42 +0000 (GMT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by luna.geeknet.cz (Postfix) with ESMTPSA id 5EDBD9F420; Thu, 19 Oct 2017 13:54:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jirutka.cz; s=mail; t=1508414081; bh=ao1Ty9S+T77AwNqvcNMQeMRUPqrU7/Y29CqkvJRgsPU=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=ib2gs2m4OAVBlsePIrsfk5aREx7pTiZ1TaA32xjg0UwS/pJwqR83siw1dphJqorQ0 gM31UENv6WLZTTO6H2V3QLU9RIHf/z4FXf9ni+vqh7hWHrOMSu8hJMM0VwzN8kvLZH UFm+3j8772f9lk3EnV3AuTPMN3cRy0/79uYDAyX8= Content-Type: text/plain; charset=utf-8 X-Mailinglist: alpine-user Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: [alpine-user] Alpine Linux is second class member in an IPv6 network From: Jakub Jirutka In-Reply-To: <20171019112452.GD5749@angua.1042.ch> Date: Thu, 19 Oct 2017 13:54:42 +0200 Cc: alpine-user@lists.alpinelinux.org, be@bernhard-ehlers.de, Jean-Louis Fuchs Content-Transfer-Encoding: quoted-printable Message-Id: References: <3FA7B5A4-16EB-416E-8C82-FFC17414D782@bernhard-ehlers.de> <20171019112452.GD5749@angua.1042.ch> To: pavlix@pavlix.net Hi Pavel, since you have deep knowledge and experience with linux networking, can = I ask you to help us with this IPv6 issue on Alpine, please? Jakub > On 19. Oct 2017, at 13:24, Jean-Louis Fuchs = wrote: >=20 > Hi >=20 > There is also a problem with static IPv6 config. Something locks the > IPv6 routing table for 30min (containing the correct routes), but > after 30min the lock goes away, along with the routes. I worked > around this by reseting the routing table, just after the interface is > configured. So the script will stay for 30min and then fix the routing > table, when the lock goes away. (Alpine 3.6) >=20 > I haven't reported this because I didn't have time to investigate the > cause or compare to edge. And of course the whole issue is more > complex. The problem has also to do with the fact that although the > default of accept_ra and autoconf are set to 0, the interface comes up > with accept_ra and autoconf set to 1.=20 >=20 > $> cat /etc/sysctl.d/01-ipv6.conf > net.ipv6.conf.default.accept_ra =3D 0 > net.ipv6.conf.default.autoconf =3D 0 > net.ipv6.conf.all.accept_ra =3D 0 > net.ipv6.conf.all.autoconf =3D 0 >=20 > Again I just worked around it: >=20 > iface eth0 inet6 static > address X > netmask 64 > gateway X > pre-up echo 0 > /proc/sys/net/ipv6/conf/eth0/accept_ra > pre-up echo 0 > /proc/sys/net/ipv6/conf/eth0/autoconf >=20 > My guess even though the interface is set to static, some > auto-configuration mechanism is still being started. >=20 > Best, > Jean-Louis >> On 18. Oct 2017, at 14:36, Bernhard Ehlers = wrote: >>=20 >> Hi, >>=20 >> I=E2=80=99m quite frustrated trying to integrate Alpine Linux in an = IPv6 network. >> My requirements should be pretty standard, I want to use auto >> configuration (SLAAC) for address assignment and classless DHCPv6 >> for getting the DNS server IPs and domain name from the router. >>=20 >> While SLAAC is working fine, DHCPv6 is a nightmare in Alpine. >> The default DHCP client udhcpc6 is simply not ready for use. >> They made some changes in busybox v1.27, so it might work, >> but that=E2=80=99s available only in the edge branch. Furthermore the >> ifup from busybox doesn=E2=80=99t support the use of DHCPv6 for IPv6. >>=20 >> Then I tried using the ifupdown package together with dhclient. >> The first stumbling block is, that ifupdown looks for /sbin/dhclient, >> while it is installed in /usr/sbin/dhclient. Adding a symlink solves = this. >> Next is, that ifupdown calls the ip command with options, it = doesn=E2=80=99t >> support. So I additionally installed iproute2, that solves that. >>=20 >> But the stateless DHCPv6 still doesn=E2=80=99t work. After some more >> debugging (and comparing with a working Debian) I saw that >> ifup doesn=E2=80=99t wait for a link-local address before starting = the DHCPv6 >> client. Therefore ifup often fails. That was fixed in ifupdown v0.8, >> but Alpine still uses 0.7. So I tagged ifupdown as outdated. >>=20 >> At that point I gave up. >>=20 >> Regards >>=20 >> Bernhard --- Unsubscribe: alpine-user+unsubscribe@lists.alpinelinux.org Help: alpine-user+help@lists.alpinelinux.org ---