Received: from smtp.ungleich.ch (mx.ungleich.ch [185.203.112.16]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id F1C23782AFC for ; Sat, 7 Dec 2019 18:02:29 +0000 (UTC) Received: from diamond.localdomain (localhost [IPv6:::1]) by smtp.ungleich.ch (Postfix) with ESMTP id 4111820152; Sat, 7 Dec 2019 19:02:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ungleich.ch; s=mail; t=1575741749; bh=Bg2x3K7qjMqr4ll3Qvc0dap9AOGlo+lekyWlYC/9aN0=; h=References:From:To:Cc:Subject:In-reply-to:Date:From; b=cBHHBb3hrCcaovu/nPUpzUD1wsDFoyLDdxzz91X5492J4pGUZ1rujwU7wOqix18Ku QRbHg1/VhKoW0ZqakTd7TYoUQb7bj92zMSA4A5JMrByIdeTSKThOe82D38cxzik8/y KVcJVK09BE96paKeGaU7pBSyy9hm3f/Yoa4TjMJ71nRmeOHekdEoLNgDmbWl/dEHMc 97wBYaL2bYdL/r5lj5EDudiSivE1kjeuyI2j3w7uV4xq0P6ZR0ujpoDyhtOJolFWPx E7nrR7KQdk2vUPBIMaqDE8KQJ86cfRLYwMc1Uq0h74jfSGWsirfRKRq+1lbwjA+g7J xoEBxqmYP99/Q== Received: by diamond.localdomain (Postfix, from userid 1000) id E794A13E0409; Sat, 7 Dec 2019 19:04:24 +0100 (CET) References: User-agent: mu4e 1.3.5; emacs 26.3 From: Nico Schottelius To: Daniel Corbe Cc: alpine-user@lists.alpinelinux.org Subject: Re: IPv6 Forwarding Troubles In-reply-to: Date: Sat, 07 Dec 2019 19:04:24 +0100 Message-ID: <87h82cnhav.fsf@ungleich.ch> MIME-Version: 1.0 Content-Type: text/plain Hey Daniel, that is correct. The sysctl that you are looking for is accept_ra=2. Best, Nico p.s.: Fell for this many, many times before... Daniel Corbe writes: > Hello All, > > I'm seeing strange behavior inside an Alpine Linux VM. > > I'm trying to enable IPv6 forwarding via sysctl. In its default > configuration, Alpine is getting an IPv6 address and a gateway and I'm > able to ping6 www.google.com > > I have neighbors: > > # ip -6 neigh show > fe80::fc00:2ff:fe73:a13e dev eth0 lladdr fe:00:02:73:a1:3e router used > 0/0/0 probes 1 STALE > > I have a default gateway: > > # ip -6 route list > 2001:19f0:9002:1c2f::/64 dev eth0 metric 256 expires 0sec > fe80::/64 dev eth0 metric 256 > default via fe80::fc00:2ff:fe73:a13e dev eth0 metric 1024 expires 0sec > ff00::/8 dev eth0 metric 256 > > When I do this: > > # sysctl -w net.ipv6.conf.all.forwarding=1 > > I lose my default gateway: > > # ip -6 route list > 2001:19f0:9002:1c2f::/64 dev eth0 metric 256 expires 0sec > fe80::/64 dev eth0 metric 256 > anycast 2001:19f0:9002:1c2f:: dev eth0 metric 0 > anycast fe80:: dev eth0 metric 0 > ff00::/8 dev eth0 metric 256 > > Now I no longer have any IPv6 connectivity. Can anyone point me in > the right direction here? -- Modern, affordable, Swiss Virtual Machines. Visit www.datacenterlight.ch