<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 1, 2023 at 2:55 PM TJ <<a href="mailto:systemd@iam.tj">systemd@iam.tj</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">I may just be over-thinking this but I have a scenario that I can configure manually but have not been able to figure out how to amend the networkd configuration to match!<br>
<br>
# echo "2 starlink" >> /etc/iproute2/rt-tables<br>
# ip -6 rule add from 2001:0DB8:1:1::/64 table starlink priority 100<br>
# ip -6 route add default via fe80::1 dev WAN table starlink<br>
<br>
Note: 'via' required to prevent failed neighbour solicitations for external addresses.<br>
<br>
The issue is I cannot see how to achieve both 'default' and 'via' in .network<br>
ROUTE section (when specifying a routing table).<br>
I see recommendations to use `Gateway=::` as an alias for 'default' but that prevents<br>
setting the next-hop router address explicitly, which results in failure due to neighbour<br>
solicitation.<br></blockquote><div><br></div><div>No; `default` has nothing to do with the gateway field. It's an alias for the route <b>destination network</b> field, specifically <span style="font-family:monospace">::/0</span> for IPv6 or <span style="font-family:monospace"><a href="http://0.0.0.0/0">0.0.0.0/0</a></span> for IPv6.<br></div><div><br></div><div>What you have is a completely standard IPv6 default route, regardless of which table it's in:</div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace">[Route]</span></div><div><span style="font-family:monospace">Destination=::/0<br></span></div><div><span style="font-family:monospace">Gateway=fe80::1</span></div></div><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr">Mantas Mikulėnas</div></div></div>