From nobody Mon Feb 07 18:56:41 2022 X-Original-To: freebsd-net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 5496319B9880 for ; Mon, 7 Feb 2022 18:56:47 +0000 (UTC) (envelope-from meka@tilda.center) Received: from c3po.tilda.center (c3po.tilda.center [108.61.164.129]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4JswNZ19xhz3CMN for ; Mon, 7 Feb 2022 18:56:46 +0000 (UTC) (envelope-from meka@tilda.center) Received: from tilda.center (178-220-5-137.static.isp.telekom.rs [178.220.5.137]) by c3po.tilda.center (Postfix) with ESMTPSA id 3D3691C67B for ; Mon, 7 Feb 2022 19:56:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tilda.center; s=c3po; t=1644260203; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=Uko8e+RzKYBc5IjV4H+aX4mvqlVjuDjqZGl34w55k08=; b=c+m2h2E6k68QGm58j2P+5+E289ta7ZZLJf1Nn2akIoC0wtEeMk+xwefkGRrjdoZCOfEkFg aLALJPbnm+wuDO5FWNywjbjFA5RpzHsQvtRxY6pqUDjVGSdrWGqQm8YW/lG1FxzFj3Wq0Y DjpDYiUwOHHkQcRvjYKnvc8prXkLH1Q= Date: Mon, 7 Feb 2022 19:56:41 +0100 From: Goran =?utf-8?B?TWVracSH?= To: freebsd-net@freebsd.org Subject: IPv6 route vanishes Message-ID: <20220207185641.gjre47smcapiz4tb@tilda.center> List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="4z443e6ejf6hh2d5" Content-Disposition: inline X-Rspamd-Queue-Id: 4JswNZ19xhz3CMN X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=fail ("headers rsa verify failed") header.d=tilda.center header.s=c3po header.b=c+m2h2E6; dmarc=pass (policy=reject) header.from=tilda.center; spf=pass (mx1.freebsd.org: domain of meka@tilda.center designates 108.61.164.129 as permitted sender) smtp.mailfrom=meka@tilda.center X-Spamd-Result: default: False [-4.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; R_DKIM_REJECT(0.00)[tilda.center:s=c3po]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-net@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-0.999]; NEURAL_HAM_MEDIUM(-1.00)[-0.997]; R_SPF_ALLOW(-0.20)[+mx]; DKIM_TRACE(0.00)[tilda.center:-]; DMARC_POLICY_ALLOW(0.00)[tilda.center,reject]; NEURAL_HAM_SHORT(-0.11)[-0.106]; DMARC_POLICY_ALLOW_WITH_FAILURES(-0.50)[]; MLMMJ_DEST(0.00)[freebsd-net]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; R_MIXED_CHARSET(1.00)[subject]; ASN(0.00)[asn:20473, ipnet:108.61.164.0/22, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --4z443e6ejf6hh2d5 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Hello, On router, "lan" is bridge interface consisting of igb1, igb2 and wlan0. To put it short, on router rtadvd.conf is one line 'lan:addr="2001:470:1f1a:2c6::""'. On desktop I have this in rc.conf: ifconfig_re0="DHCP" ifconfig_re0_ipv6="inet6 -ifdisabled auto_linklocal accept_rtadv" The problem is that I also have to add "ipv6_defaultrouter" in rc.conf otherwise route acquired through rtadvd/rtsold is not present about 10 minutes after initial start of rtsold. What's weird is that if rtsold runs in a VNET jail, route does not go away. On that server I just bridge all epairs and egress so I know the same rtadvd running on router used in both cases. Also, that's the reason I'm suspecting rtsold is faulty, either it has a bug or I still have a lot to learn (I just started with IPv6). More details are attached to this PR: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261129 Even more details on the setup are given in my blog post: https://meka.rs/blog/2022/01/15/freebsd-dual-stack-network/ The workaround with ipv6_defaultrouter works perfectly on desktop and server, but it's really annoying on the laptop. Is there a doc part I missed or something? Regards, meka --4z443e6ejf6hh2d5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE1WIFkXy2ZeMKjjKEWj1TknovrLYFAmIBa2UACgkQWj1Tknov rLbing//dHxRKK4d1DU7Xz5rMJVvvwVqv0s9WyqJeVwlmZt8gj4+6HgNznCkMDW4 lcKAgy09j1vs3New/TUc10hu6Hne/+YgSV6teuuUemGgX8sZLf88UWKil00I0zkB tPWVhGHeHj6mF/Ph6BlaqdOlk4OlnQnPD7JN1g7+m0i5sDIoiePv8N49y9YomGLe SPunDMyTQ9QyUuCT1tiNpiWVV4YYM/ugyEI0T62yAc+Z2GxxOEF0gJh1u3BSLnFS PzvxKG+fwUzInC6RlBC8dpGfHcFi6M8VO1aN3097n+wDQHicx/HjQKy2zBYDf4QB aKkfjtnonMBU9UC1gL1Hg57l7HpyhYbbR1yhqcUcaAW3dyw3vScLoo9pq4n5N2cI SIciBN4PL35GU7KUZwKIVktkrdE8tRumo+caD2WX9A4C8IhBVbXr76Zki4ovm7ri 5LjPtwmmCgTls+QrkoJAf/cLvabJ79yHPz+BbfZdeFkl2uC+gaSHS79qpLyPpv7z k0iwpg/zZ71UEglEJo6zuzJxzKDj0PiB5fTAoSOCeS5Ru/gXUyUzPwAiaHsRYt6i CRVPkLDm4fcI8141fcuX2BnxwqUrHZNPXE8YuRNY1mz4RliQc4aAL+qUJ3fV5Fhb tCWVQiQoK+d4jlNfbQl147gb0b8CiTyx/m57jIG4SL3eCLuS210= =UUBB -----END PGP SIGNATURE----- --4z443e6ejf6hh2d5--