From nobody Thu Mar 14 01:04:34 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 4Tw8L23X3jz5DpgV for ; Thu, 14 Mar 2024 01:04:42 +0000 (UTC) (envelope-from zlei@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tw8L22gsYz4L1J; Thu, 14 Mar 2024 01:04:42 +0000 (UTC) (envelope-from zlei@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1710378282; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ptCNW6HVhMyqLN5ngtWMHIU/c7demekIcawy2dc55a4=; b=TezTIJ5ZP/JFt0J8yNZPo6IhUZDfUhK6s387tGZ7Ynvg5NoFcAF48VaJoDn0ohnB6EaxOG DKy8PI2Ho2wtSZ5rUCY3Ck1NT8lfjcoEVbDDKbRlk/+zc68P0LDuqo3UeRLIfMMfDnZRap fZ90s4H2KvVEaMQeDj7KoBvklqiw6kqwDq9FRFLPDK73c+PcOPYjGC4sDZzJ51zKXtx5MW YWLsKQaJzcm6v6ghGApiQQ7rMABVfDPC8HH/El990eBS2WOBF2We5ZO0SM3T9AQ3m5eEF3 azfXwdB6sRbDOz71GY/Wu1074gGIDVAv+kI9mq5dxIbS2l/4ONI1H2Eg4/qO5Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1710378282; a=rsa-sha256; cv=none; b=TTYU8KkQRvgNYAd3LXuBOkIIwQ6N3XW88qYSBDf/U3G8QhNXuBWMZ60k0SZr4n+KXrIy/p O/tS7ydJg+9CGYI+V2W+YLhan+2YG2BDyLlRhE5kBfwRdOIzi2CFiPvkijv43BznF+HnU9 c1+0Wb/bu8LfB4v1WkQrP1Hm7chFPWhNPp5UWY065pxpDZgJrMDsP0wb8b+S156aQq4sFm PKlyYgWkib86+++fjKJEOqubvrgLbSRn3jxpHvgqkYdf8lbiCC/IBhZl2HW7T9nEcRHghn ujOo1c0z7lKImFBdwDKM5+96IQzsZ8PFKbU1GJ+PmT/S6phzkO+8rbZyx9td+Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1710378282; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ptCNW6HVhMyqLN5ngtWMHIU/c7demekIcawy2dc55a4=; b=pcsBGTvkjgh2/Xw86yN8nNHw8V2GBjYFKRXarTJrfy2/8tfcF7nnftJ5teInTF3Sd9qsIE 331gDEtS+hwePIbzvhZUmUDcecFjGq0H/pbhVOwGxCRjz36IT7rcR7YPZ6Dv67CDBw+eCd 5hP9hfBhIlipogAmuRyK4jD+e5k/OY7FMyaDiNVCaktPjjpdJpapm/E5KowO6SbOhkE5L1 JZTjEtggZC4zQaHw9D0gJgYQaNHNoq+d+yUsi1pvz4b+gFXXsesNgcIhLfGHHkU/rJVPeY +mOIGOc9gPcF+PpVHwwhL0PIprLMTiu3ue7hKFVHw9Bni4Unrym2dbSzDKa+Bg== Received: from smtpclient.apple (ns1.oxydns.net [45.32.91.63]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: zlei/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Tw8L052rDz1Hkp; Thu, 14 Mar 2024 01:04:40 +0000 (UTC) (envelope-from zlei@FreeBSD.org) From: Zhenlei Huang Message-Id: <323D6B49-EC5C-4011-8BBA-1EAB9DFC4BC2@FreeBSD.org> Content-Type: multipart/alternative; boundary="Apple-Mail=_86242226-AEB6-47EA-87CB-6536751604D0" 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 (Mac OS X Mail 16.0 \(3696.120.41.1.8\)) Subject: Re: ipv4 route with ipv6 local link nexthop ? Date: Thu, 14 Mar 2024 09:04:34 +0800 In-Reply-To: <24620735-923d-4603-8c92-1d9b23d3ce80@plan-b.pwste.edu.pl> Cc: FreeBSD Net , Benoit Chesneau To: Marek Zarychta 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> X-Mailer: Apple Mail (2.3696.120.41.1.8) --Apple-Mail=_86242226-AEB6-47EA-87CB-6536751604D0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On Mar 14, 2024, at 3:07 AM, Marek Zarychta = wrote: >=20 > W dniu 13.03.2024 o 18:59, Marek Zarychta pisze: >> W dniu 13.03.2024 o 16:31, Benoit Chesneau pisze: >>> Hrm I thought it was implemented via = https://reviews.freebsd.org/rG62e1a437f3285e785d9b35a476d36a469a90028d >>>=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. Thanks for finding the fix and the confirmation , I'll take care of that = :) >=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=3Df818559774cb0c1516364c4beca36148= 0fd68b5b = =20 >=20 > Cheers >=20 > --=20 > Marek Zarychta --Apple-Mail=_86242226-AEB6-47EA-87CB-6536751604D0 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii

On Mar 14, 2024, at 3:07 AM, Marek Zarychta <zarychtam@plan-b.pwste.edu.pl> wrote:

W dniu 13.03.2024 o 18:59, Marek Zarychta = pisze:
W = dniu 13.03.2024 o 16:31, Benoit Chesneau pisze:
Hrm I thought it was = implemented via https://reviews.freebsd.org/rG62e1a437f3285e785d9b35a476d36a469= a90028d

Wasn't it merged ? (also pretty = sure I did test it in freebsd 13).

FWIW: it works fine on CURRENT

# 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

It looks like the fix is in = f818559774cb0c1516364c4beca361480fd68b5b . Zhenlei, could you please MFC = this one[1] ?

Cherry-picking = it to stable/14 makes route fully functional. I have tested it between = stable/14 with this fix applied and CURRENT.

Thanks= for finding the fix and the confirmation , I'll take care of that = :)


Host = A:

# 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

--- = 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

Host = B:

# 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

--- = 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

1. https://cgit.freebsd.org/src/commit/?id=3Df818559774cb0c1516364= c4beca361480fd68b5b 

Cheers

-- Marek = Zarychta



= --Apple-Mail=_86242226-AEB6-47EA-87CB-6536751604D0--