From nobody Wed Mar 13 04:19:24 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 4TvcjK6fF7z5DCPp for ; Wed, 13 Mar 2024 04:19:33 +0000 (UTC) (envelope-from zlei@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 4TvcjK67lrz4FVW; Wed, 13 Mar 2024 04:19:33 +0000 (UTC) (envelope-from zlei@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1710303573; 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=HTS4uygyF2JbBAuhpw2L6DexTWFiwSBvt3QgX2BjRyA=; b=Ljm7q+3Cf+Q90xtaD5SAPkeTJMUye4jitqspqxiwECbVlA8ojSBzeelS+LbyatSLl8UkdW xstxgNstTUhhBNEnXQDxW9XD2iTtY6kFgGK8sPgho3csd6xrXa5AeNtc0Fgea7lO37m6Y/ NEOzaKacU2QvErX8SFO4q6ty8AffPiaLxYnv1TFwE1sYk4yj1uRtkPuf+qaXWuijIufWaI 76za67M9kjmTFDhznsTRJPcVLuSLclWWe0yHn4Hn46+29dzm1NBZL937AIgAUPN8o8PtfY sLQdgQS8NYSMGo3cLs2JEMvi5KjXQqBWrgVM+KXt6KoXWGG01EN2jvhxINBfrw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1710303573; a=rsa-sha256; cv=none; b=PHObUbc9GDk08ArJ6RpLi4Ft6vQmFg0RIZorZ5NsApHugpXb2nCUQ7YGhmjCMuje8MO1rx AgbVpJsPeaZTksbuHQL4/zlECzY43e5w0+HvZQcBqWVpoQeLUHlS3em8E/2Uta/7CJjMav kcFoQXCdSnPHOksjALi0yuoBdNKMTGuZmwcTnnRA67Xz0e/7ZKdtQhV009fNmOa+E1uUml 5u2XrmSPo+bzMUxhVv2GhB66w5sGLY/wloP/GZCdtD4jE+EY21eDgtgvvuOERB2mVWdx/1 iPOE4FaXT9WKCnfC0HkWxdw0QrnXFgrmuVL+F54T9ri0E7N9omRlPUg9/XkUCw== 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=1710303573; 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=HTS4uygyF2JbBAuhpw2L6DexTWFiwSBvt3QgX2BjRyA=; b=xc18b8Z1BuQxT+yIGsnNIrSV1OJEYbX/5U6Rru2Th3YFDlB0BrJnveuCfWk4qXCR932Zgy P+lwcu/jWPea8tsGM6miKNggsf/kaKsc4SI4+qeuyQ19c+2M/KtJvouTJffLukQOyBd6KZ 6yNEaxQnJEsuAD07UPHRJl+87VRjViy4P7C+7YleZg9B3AiFa3IEWZEoZ8XAu94WevVpS4 KYU2RqJcEK9ltaqW/LbgvUG/b/jwYWUkcTq07lDOMObDt4bZ2KMCmbzalmyJIhMSo7XA5r 35DUH7+P1zyWcFrKHA3h4stz6EKMB+FwtQagGAvoG5UWr3hr71efWKrvPYCwTg== 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 4TvcjJ2s3nzbsB; Wed, 13 Mar 2024 04:19:32 +0000 (UTC) (envelope-from zlei@FreeBSD.org) From: Zhenlei Huang Message-Id: <367504DC-48DA-4DFD-9DB6-CC571F0D26B8@FreeBSD.org> Content-Type: multipart/alternative; boundary="Apple-Mail=_570BD90A-8513-48F3-AF7B-A2A8985BBE45" 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: Wed, 13 Mar 2024 12:19:24 +0800 In-Reply-To: Cc: "freebsd-net@FreeBSD.org" To: Benoit Chesneau References: X-Mailer: Apple Mail (2.3696.120.41.1.8) --Apple-Mail=_570BD90A-8513-48F3-AF7B-A2A8985BBE45 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Mar 13, 2024, at 4:36 AM, Benoit Chesneau = wrote: >=20 > On latest freebsd 14.0 release , I am trying to join an ipv4 address = over an IPV6 local link using the following command : >=20 > `route add -net 10.200.1.1/32 -inet6 = fe80::9439:36ff:fef0:7cbd%vlan200` >=20 > But I get the following error: >=20 > ``` > route add -net 10.200.1.1/32 -inet6 fe80::9439:36ff:fef0:7cbd%vlan200 > add net 10.200.1.1: gateway fe80::9439:36ff:fef0:7cbd%vlan200 fib 0: = Invalid argument I guess that is regression by transition of route(8) to NETLINK. Can you please build sbin/route from source without NETLINK and give it = another try ? ``` # cd /usr/src/sbin/route # setenv MK_NETLINK_SUPPORT no # make ``` > ``` >=20 > ping6 to `fe80::9439:36ff:fef0:7cbd%vlan200` works. What I am doing = wrong? Configuration of the interface is the following: >=20 > ``` > vlan200: = flags=3D1008843 metric = 0 mtu 1500 > = options=3D4600703 > ether fe:d9:dd:2d:35:c5 > inet6 fe80::fcd9:ddff:fe2d:35c5%vlan200 prefixlen 64 scopeid = 0x5 > groups: vlan > vlan: 200 vlanproto: 802.1q vlanpcp: 0 parent interface: iavf0 > media: Ethernet autoselect (10Gbase-SR ) > status: active > nd6 options=3D23 ``` >=20 >=20 >=20 > Beno=C3=AEt=20 Best regards, Zhenlei --Apple-Mail=_570BD90A-8513-48F3-AF7B-A2A8985BBE45 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

On Mar 13, 2024, at 4:36 AM, Benoit Chesneau <benoitc@enki-multimedia.eu> wrote:

On = latest freebsd 14.0 release , I am trying to join an ipv4 address over = an IPV6 local link using the following command :

`route add -net = 10.200.1.1/32 -inet6 fe80::9439:36ff:fef0:7cbd%vlan200`

But I  get the = following error:

```
route add -net = 10.200.1.1/32 -inet6 fe80::9439:36ff:fef0:7cbd%vlan200
add net 10.200.1.1: gateway = fe80::9439:36ff:fef0:7cbd%vlan200 fib 0: Invalid argument

I = guess that is regression by transition of route(8) to = NETLINK.

Can you please build = sbin/route from source without NETLINK and give it another try = ?

```
# cd = /usr/src/sbin/route
# setenv MK_NETLINK_SUPPORT = no
# make
```

```

ping6 to `fe80::9439:36ff:fef0:7cbd%vlan200` works. What I am doing = wrong? Configuration of the interface is the following:

```
vlan200: = flags=3D1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> = metric 0 mtu 1500
    =     = options=3D4600703<RXCSUM,TXCSUM,TSO4,TSO6,LRO,RXCSUM_IPV6,TXCSUM_IPV6,M= EXTPG>
    =     ether fe:d9:dd:2d:35:c5
        inet6 = fe80::fcd9:ddff:fe2d:35c5%vlan200 prefixlen 64 scopeid = 0x5
      =   groups: vlan
  =       vlan: 200 vlanproto: 802.1q vlanpcp: 0 parent = interface: iavf0
  =       media: Ethernet autoselect (10Gbase-SR = <full-duplex>)
  =       status: active
  =       nd6 = options=3D23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL
```



Beno=C3=AEt 

Best regards,
Zhenlei

= --Apple-Mail=_570BD90A-8513-48F3-AF7B-A2A8985BBE45--