From nobody Wed Mar 13 22:57:14 2024 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 4Tw5WB1m8Tz5DcL5 for ; Wed, 13 Mar 2024 22:57:26 +0000 (UTC) (envelope-from benoitc@enki-multimedia.eu) Received: from mail-4317.proton.ch (mail-4317.proton.ch [185.70.43.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "protonmail.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tw5W96mTWz43Lh for ; Wed, 13 Mar 2024 22:57:25 +0000 (UTC) (envelope-from benoitc@enki-multimedia.eu) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enki-multimedia.eu; s=protonmail2; t=1710370641; x=1710629841; bh=Nw8Ik+38oGS6KFZHKEDReEpv3tmufbpYVntpZzwukeY=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=gaf00xl5KBS1cH+wU4t6lAdrtX/NCqhQkyF29xQMu9Rpyxooedv61ZMu8D26ShaSw yHqwyJ+sZSA9c8mxtvQef/WMK5FZ4HHgGpSpzqwmyJNpXyvYXOGzPSvejUh2l0jOv4 D3W41DrcqBqf6o6FB6KQrW18QWqD67nTDSQWPeJ6t7KRSreOR+rWZM3U30c9ku6uay eNwPy3zg5ewcEDuO72HdPDlcbw6iJLzUZhaZo6ejiz9kE6vZfw0iisNoVrLZi0ADi1 n/lj5WYUglUaAh+EQjDG6H3c/Efr1zJdSf7x3FB5ODMlYJpw6bNHw0rwd1v68CeiAI +zy4EfMhZC99g== Date: Wed, 13 Mar 2024 22:57:14 +0000 To: Marek Zarychta From: Benoit Chesneau Cc: freebsd-net@freebsd.org, Zhenlei Huang Subject: Re: ipv4 route with ipv6 local link nexthop ? Message-ID: In-Reply-To: <24620735-923d-4603-8c92-1d9b23d3ce80@plan-b.pwste.edu.pl> References: <367504DC-48DA-4DFD-9DB6-CC571F0D26B8@FreeBSD.org> <764E12BF-5D31-4905-98AE-6D745BFD1DC2@FreeBSD.org> <4380f799-b961-4daf-8514-679c06214d55@plan-b.pwste.edu.pl> <24620735-923d-4603-8c92-1d9b23d3ce80@plan-b.pwste.edu.pl> Feedback-ID: 9066678:user:proton 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: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:62371, ipnet:185.70.43.0/24, country:CH] X-Rspamd-Queue-Id: 4Tw5W96mTWz43Lh Thanks for the patch! I will try :)=20 Beno=C3=AEt Sent with Proton Mail secure email. On Wednesday, March 13th, 2024 at 20:07, Marek Zarychta wrote: > W dniu 13.03.2024 o 18:59, Marek Zarychta pisze: >=20 > > W dniu 13.03.2024 o 16:31, Benoit Chesneau pisze: > >=20 > > > Hrm I thought it was implemented via > > > https://reviews.freebsd.org/rG62e1a437f3285e785d9b35a476d36a469a90028= d > > >=20 > > > Wasn't it merged ? (also pretty sure I did test it in freebsd 13). > >=20 > > FWIW: it works fine on CURRENT > >=20 > > # ifconfig vlan8 destroy > > # ifconfig vlan8 create vlandev bge0 vlan 8 up > > # ifconfig vlan8 inet6 -ifdisabled auto_linklocal > > # route add -net 10.11.13.0/24 -inet6 fe80::360a:11ff:fe1b:404e%vlan8 > > add net 10.11.13.0: gateway fe80::360a:11ff:fe1b:404e%vlan8 fib 0 >=20 > It looks like the fix is in f818559774cb0c1516364c4beca361480fd68b5b . > Zhenlei, could you please MFC this one[1] ? >=20 > Cherry-picking it to stable/14 makes route fully functional. I have > tested it between stable/14 with this fix applied and CURRENT. >=20 > Host A: >=20 > # ifconfig lo10 destroy > # ifconfig lo10 create > # ifconfig lo10 10.11.13.1/24 > # ifconfig vlan8 destroy > # ifconfig vlan8 create vlandev bge0 vlan 8 up > # ifconfig vlan8 inet6 -ifdisabled auto_linklocal > # route add -net 10.11.12.0/24 -inet6 fe80::6ab5:99ff:febd:8108%vlan8 > add net 10.11.12.0: gateway fe80::6ab5:99ff:febd:8108%vlan8 fib 0 > # ping -c5 -S 10.11.13.1 10.11.12.1 > PING 10.11.12.1 (10.11.12.1) from 10.11.13.1: 56 data bytes > 64 bytes from 10.11.12.1: icmp_seq=3D0 ttl=3D64 time=3D2002.303 ms > 64 bytes from 10.11.12.1: icmp_seq=3D1 ttl=3D64 time=3D1000.461 ms > 64 bytes from 10.11.12.1: icmp_seq=3D2 ttl=3D64 time=3D0.167 ms > 64 bytes from 10.11.12.1: icmp_seq=3D3 ttl=3D64 time=3D0.222 ms > 64 bytes from 10.11.12.1: icmp_seq=3D4 ttl=3D64 time=3D0.207 ms >=20 > --- 10.11.12.1 ping statistics --- > 5 packets transmitted, 5 packets received, 0.0% packet loss > round-trip min/avg/max/stddev =3D 0.167/600.672/2002.303/800.763 ms >=20 > Host B: >=20 > # ifconfig lo10 destroy > # ifconfig lo10 create > # ifconfig lo10 10.11.12.1/24 > # ifconfig vlan8 destroy > ifconfig: interface vlan8 does not exist > # ifconfig vlan8 create vlandev bce0 vlan 8 up > # ifconfig vlan8 inet6 -ifdisabled auto_linklocal > # route add -net 10.11.13.0/24 -inet6 fe80::26be:5ff:fe10:c900%vlan8 > add net 10.11.13.0: gateway fe80::26be:5ff:fe10:c900%vlan8 fib 0 > # ping -c5 -S 10.11.12.1 10.11.13.1 > PING 10.11.13.1 (10.11.13.1) from 10.11.12.1: 56 data bytes > 64 bytes from 10.11.13.1: icmp_seq=3D0 ttl=3D64 time=3D1000.285 ms > 64 bytes from 10.11.13.1: icmp_seq=3D1 ttl=3D64 time=3D0.141 ms > 64 bytes from 10.11.13.1: icmp_seq=3D2 ttl=3D64 time=3D0.231 ms > 64 bytes from 10.11.13.1: icmp_seq=3D3 ttl=3D64 time=3D0.235 ms > 64 bytes from 10.11.13.1: icmp_seq=3D4 ttl=3D64 time=3D0.174 ms >=20 > --- 10.11.13.1 ping statistics --- > 5 packets transmitted, 5 packets received, 0.0% packet loss > round-trip min/avg/max/stddev =3D 0.141/200.213/1000.285/400.036 ms >=20 > 1. > https://cgit.freebsd.org/src/commit/?id=3Df818559774cb0c1516364c4beca3614= 80fd68b5b >=20 >=20 > Cheers >=20 > -- > Marek Zarychta