Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Mar 2024 12:19:24 +0800
From:      Zhenlei Huang <zlei@FreeBSD.org>
To:        Benoit Chesneau <benoitc@enki-multimedia.eu>
Cc:        "freebsd-net@FreeBSD.org" <freebsd-net@freebsd.org>
Subject:   Re: ipv4 route with  ipv6 local link nexthop ?
Message-ID:  <367504DC-48DA-4DFD-9DB6-CC571F0D26B8@FreeBSD.org>
In-Reply-To: <Kj1GA9KKe3wVoeEJr0g-4BAiin5cEjGj4ICYDH9LHBT_vpmctoN-2HNS7AjTwNimOVkn5nBoJw50fbLgNdCleBD0p_TZImOet1gFGIfr4-E=@enki-multimedia.eu>
References:  <Kj1GA9KKe3wVoeEJr0g-4BAiin5cEjGj4ICYDH9LHBT_vpmctoN-2HNS7AjTwNimOVkn5nBoJw50fbLgNdCleBD0p_TZImOet1gFGIfr4-E=@enki-multimedia.eu>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 =
<benoitc@enki-multimedia.eu> 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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric =
0 mtu 1500
>         =
options=3D4600703<RXCSUM,TXCSUM,TSO4,TSO6,LRO,RXCSUM_IPV6,TXCSUM_IPV6,MEXT=
PG>
>         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
> ```
>=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

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D""><br =
class=3D""><div><br class=3D""><blockquote type=3D"cite" class=3D""><div =
class=3D"">On Mar 13, 2024, at 4:36 AM, Benoit Chesneau &lt;<a =
href=3D"mailto:benoitc@enki-multimedia.eu" =
class=3D"">benoitc@enki-multimedia.eu</a>&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><div =
style=3D"font-family: Arial, sans-serif; font-size: 14px;" class=3D"">On =
latest freebsd 14.0 release , I am trying to join an ipv4 address over =
an IPV6 local link using the following command :</div><div =
style=3D"font-family: Arial, sans-serif; font-size: 14px;" class=3D""><br =
class=3D""></div><div style=3D"font-family: Arial, sans-serif; =
font-size: 14px;" class=3D""><span class=3D"">`route add -net =
10.200.1.1/32 -inet6 fe80::9439:36ff:fef0:7cbd%vlan200`</span><br =
class=3D""></div><div style=3D"font-family: Arial, sans-serif; =
font-size: 14px;" class=3D""><span class=3D""><br =
class=3D""></span></div><div style=3D"font-family: Arial, sans-serif; =
font-size: 14px;" class=3D""><span class=3D"">But I &nbsp;get the =
following error:</span></div><div style=3D"font-family: Arial, =
sans-serif; font-size: 14px;" class=3D""><span class=3D""><br =
class=3D""></span></div><div style=3D"font-family: Arial, sans-serif; =
font-size: 14px;" class=3D"">```</div><div style=3D"font-family: Arial, =
sans-serif; font-size: 14px;" class=3D""><span class=3D"">route add -net =
10.200.1.1/32 -inet6 fe80::9439:36ff:fef0:7cbd%vlan200</span><br =
class=3D""><span class=3D"">add net 10.200.1.1: gateway =
fe80::9439:36ff:fef0:7cbd%vlan200 fib 0: Invalid argument</span><br =
class=3D""></div></div></blockquote><div><br class=3D""></div><div>I =
guess that is regression by transition of route(8) to =
NETLINK.</div><div><br class=3D""></div><div>Can you please build =
sbin/route from source without NETLINK and give it another try =
?</div><div><br class=3D""></div><div>```</div><div># cd =
/usr/src/sbin/route</div><div># setenv&nbsp;MK_NETLINK_SUPPORT =
no</div><div># make</div><div>```</div><br class=3D""><blockquote =
type=3D"cite" class=3D""><div class=3D""><div style=3D"font-family: =
Arial, sans-serif; font-size: 14px;" class=3D"">```</div><div =
style=3D"font-family: Arial, sans-serif; font-size: 14px;" class=3D""><br =
class=3D""></div><div style=3D"font-family: Arial, sans-serif; =
font-size: 14px;" class=3D"">ping6 to `<span style=3D"text-decoration: =
none; display: inline !important; background-color: rgb(255, 255, 255);" =
class=3D"">fe80::9439:36ff:fef0:7cbd%vlan200` works. What I am doing =
wrong? Configuration of the interface is the following:</span></div><div =
style=3D"font-family: Arial, sans-serif; font-size: 14px;" =
class=3D""><span style=3D"text-decoration: none; display: inline =
!important; background-color: rgb(255, 255, 255);" class=3D""><br =
class=3D""></span></div><div style=3D"font-family: Arial, sans-serif; =
font-size: 14px;" class=3D"">```</div><div style=3D"font-family: Arial, =
sans-serif; font-size: 14px;" class=3D""><span class=3D"">vlan200: =
flags=3D1008843&lt;UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP&gt; =
metric 0 mtu 1500</span><div class=3D""><span class=3D"">&nbsp; &nbsp; =
&nbsp; &nbsp; =
options=3D4600703&lt;RXCSUM,TXCSUM,TSO4,TSO6,LRO,RXCSUM_IPV6,TXCSUM_IPV6,M=
EXTPG&gt;</span></div><div class=3D""><span class=3D"">&nbsp; &nbsp; =
&nbsp; &nbsp; ether fe:d9:dd:2d:35:c5</span></div><div class=3D""><span =
class=3D"">&nbsp; &nbsp; &nbsp; &nbsp; inet6 =
fe80::fcd9:ddff:fe2d:35c5%vlan200 prefixlen 64 scopeid =
0x5</span></div><div class=3D""><span class=3D"">&nbsp; &nbsp; &nbsp; =
&nbsp; groups: vlan</span></div><div class=3D""><span class=3D"">&nbsp; =
&nbsp; &nbsp; &nbsp; vlan: 200 vlanproto: 802.1q vlanpcp: 0 parent =
interface: iavf0</span></div><div class=3D""><span class=3D"">&nbsp; =
&nbsp; &nbsp; &nbsp; media: Ethernet autoselect (10Gbase-SR =
&lt;full-duplex&gt;)</span></div><div class=3D""><span class=3D"">&nbsp; =
&nbsp; &nbsp; &nbsp; status: active</span></div><span class=3D"">&nbsp; =
&nbsp; &nbsp; &nbsp; nd6 =
options=3D23&lt;PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL</span><br =
class=3D""></div><div style=3D"font-family: Arial, sans-serif; =
font-size: 14px;" class=3D"">```</div><div style=3D"font-family: Arial, =
sans-serif; font-size: 14px;" class=3D""><span class=3D""><br =
class=3D""></span></div><div style=3D"font-family: Arial, sans-serif; =
font-size: 14px;" class=3D""><span class=3D""><br =
class=3D""></span></div><div style=3D"font-family: Arial, sans-serif; =
font-size: 14px;" class=3D""><br class=3D""></div>
<div class=3D"protonmail_signature_block" style=3D"font-family: Arial, =
sans-serif; font-size: 14px;">
    <div class=3D"protonmail_signature_block-user">
        <div style=3D"font-style: normal; font-weight: normal; =
letter-spacing: normal; text-indent: 0px; text-transform: none; =
white-space: normal; word-spacing: 0px; text-decoration: none; =
font-family: Helvetica; font-size: 12px;" =
class=3D"">Beno=C3=AEt&nbsp;</div></div>
</div>
</div></blockquote></div><br class=3D""><div class=3D"">
<div>Best regards,</div><div>Zhenlei</div>

</div>
<br class=3D""></body></html>=

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?367504DC-48DA-4DFD-9DB6-CC571F0D26B8>