Re: ipv4 route with ipv6 local link nexthop ?

Zhenlei Huang <[email protected]>
Newsgroups gmane.os.freebsd.devel.net
Message-ID <[email protected]>

> On Mar 22, 2024, at 5:05 PM, Benoit Chesneau <[email protected]> wrote:
> 
> Awesome! Do we have a chance it land in a patch release soon ? Or better to use a STABLE until the 14.1 is released?
> 

Or you can stay on 14.0 If the workaround can fulfill. 14.1 is about to be released at 18 June as per the
schedule [1] , that is about 3 and half months.

CCing secteam, I do not think there is any security impact so probably it does not deserve an EN.

See also the bug report  https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275341 <https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275341>  .

1. https://www.freebsd.org/releases/14.1R/schedule/

Best regards,
Zhenlei

> 
> Benoît
> On Thursday, March 14th, 2024 at 10:56, Zhenlei Huang <[email protected]> wrote:
>> 
>> 
>>> On Mar 14, 2024, at 9:04 AM, Zhenlei Huang <[email protected] <mailto:[email protected]>> wrote:
>>> 
>>> 
>>> 
>>>> On Mar 14, 2024, at 3:07 AM, Marek Zarychta <[email protected] <mailto:[email protected]>> 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/rG62e1a437f3285e785d9b35a476d36a469a90028d <https://reviews.freebsd.org/rG62e1a437f3285e785d9b35a476d36a469a90028d>
>>>>>> 
>>>>>> 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 :)
>> 
>> Done. The fix and tests are all MFCed into stable/14 branch.
>> 
>>> 
>>>> 
>>>> 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=0 ttl=64 time=2002.303 ms
>>>> 64 bytes from 10.11.12.1: icmp_seq=1 ttl=64 time=1000.461 ms
>>>> 64 bytes from 10.11.12.1: icmp_seq=2 ttl=64 time=0.167 ms
>>>> 64 bytes from 10.11.12.1: icmp_seq=3 ttl=64 time=0.222 ms
>>>> 64 bytes from 10.11.12.1: icmp_seq=4 ttl=64 time=0.207 ms
>>>> 
>>>> --- 10.11.12.1 ping statistics ---
>>>> 5 packets transmitted, 5 packets received, 0.0% packet loss
>>>> round-trip min/avg/max/stddev = 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=0 ttl=64 time=1000.285 ms
>>>> 64 bytes from 10.11.13.1: icmp_seq=1 ttl=64 time=0.141 ms
>>>> 64 bytes from 10.11.13.1: icmp_seq=2 ttl=64 time=0.231 ms
>>>> 64 bytes from 10.11.13.1: icmp_seq=3 ttl=64 time=0.235 ms
>>>> 64 bytes from 10.11.13.1: icmp_seq=4 ttl=64 time=0.174 ms
>>>> 
>>>> --- 10.11.13.1 ping statistics ---
>>>> 5 packets transmitted, 5 packets received, 0.0% packet loss
>>>> round-trip min/avg/max/stddev = 0.141/200.213/1000.285/400.036 ms
>>>> 
>>>> 1. https://cgit.freebsd.org/src/commit/?id=f818559774cb0c1516364c4beca361480fd68b5b <https://cgit.freebsd.org/src/commit/?id=f818559774cb0c1516364c4beca361480fd68b5b>
>>>> 
>>>> Cheers
>>>> 
>>>> --
>>>> Marek Zarychta
>> 
>> 
>> 
>
signature.asc (application/pgp-signature, 358 B)
-----BEGIN PGP SIGNATURE-----

iNUEARYKAH0WIQRj28YmNowGX1isJg7GJJ6Jgbd0XwUCZf2Kel8UgAAAAAAuAChp
c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0NjNE
QkM2MjYzNjhDMDY1RjU4QUMyNjBFQzYyNDlFODk4MUI3NzQ1RgAKCRDGJJ6Jgbd0
XxjgAPwKIIHrrxlRRGKKoNRBExxt6gHizfvAOx8nVPZgRXjOkwEA2lKVo/kMQLb6
cnX4W3Nesu7NeKj85ImXLUClOAh3LAE=
=gQlo
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.