<div dir="ltr"><div>Hi,</div><div><br></div><div>I think multipath over device routes for ipv6 requires using new nexthop objects. Here is an example:</div><div><br></div><div># ip link add name a type dummy<br># ip link add name b type dummy<br># ip link set dev a up<br># ip link set dev b up<br># ip -6 route add fc00:0::/32 dev a<br># ip -6 route add fc00:1::/32 dev b<br># ip -6 route add fc00:2::/32 nexthop dev a<br>Error: Device only routes can not be added for IPv6 using the multipath API.<br># ip -6 route add fc00:3::/32 nexthop dev a nexthop dev b<br>Error: Device only routes can not be added for IPv6 using the multipath API.<br># ip -6 nexthop add id 100 dev a<br># ip -6 nexthop add id 101 dev b<br># ip nexthop add id 102 group 100/101<br># ip -6 route add fc00:4::/32 nhid 102<br># ip -6 route list<br>fc00::/32 dev a metric 1024 pref medium<br>fc00:1::/32 dev b metric 1024 pref medium<br>fc00:4::/32 nhid 102 metric 1024 pref medium<br>     nexthop dev a weight 1 <br>       nexthop dev b weight 1 <br>fe80::/64 dev a proto kernel metric 256 pref medium<br>fe80::/64 dev b proto kernel metric 256 pref medium<br># sysctl -w net.ipv4.nexthop_compat_mode=0<br>net.ipv4.nexthop_compat_mode = 0<br># ip -6 route list<br>fc00::/32 dev a metric 1024 pref medium<br>fc00:1::/32 dev b metric 1024 pref medium<br>fc00:4::/32 nhid 102 metric 1024 pref medium<br>fe80::/64 dev a proto kernel metric 256 pref medium<br>fe80::/64 dev b proto kernel metric 256 pref medium<br># ip nexthop list<br>id 100 dev a scope link <br>id 101 dev b scope link <br>id 102 group 100/101 <br><br><br></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Wed, Feb 19, 2025 at 2:20 PM Ondrej Zajicek <<a href="mailto:santiago@crfreenet.org">santiago@crfreenet.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, Feb 19, 2025 at 10:39:53AM +0800, Jimmy Lim wrote:<br>
> Hi Maria,<br>
> <br>
> It looks like it doesn't like the configuration of directing IPv6 prefix<br>
> that we receive from gw (we have 3 sessions) to ifname. The multipath is<br>
> working fine for IPv6 after I removed that configuration, and it works for<br>
> both bird v1 and v2:<br>
<br>
Hi<br>
<br>
Yeah, there was some kernel issue rekated to IPv6 multipath direct<br>
routes. We have some workaround in the code for this case, but likely<br>
only for the recent versions of BIRD.<br>
<br>
-- <br>
Elen sila lumenn' omentielvo<br>
<br>
Ondrej 'Santiago' Zajicek (email: <a href="mailto:santiago@crfreenet.org" target="_blank">santiago@crfreenet.org</a>)<br>
"To err is human -- to blame it on a computer is even more so."<br>
</blockquote></div>