<div dir="auto">Hi,<div dir="auto"><br></div><div dir="auto">As far as I remember, you can set in your income filter the interface, then the gateway (in that order) to force the interface you want.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 1, 2023, 02:18 Mirai Azayaka <<a href="mailto:azayaka@apernet.io">azayaka@apernet.io</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Wow, thank you so much! Setting bgp_next_hop = gw; works for me! (yeah<br>
I was worried that because link-local address is interface-dependent,<br>
my router wouldn't be able to know the interface. It seems my router<br>
(also running bird) chooses the same interface as the BGP session,<br>
which is what I want.<br>
<br>
On Tue, Feb 28, 2023 at 5:32 PM Ondrej Zajicek <<a href="mailto:santiago@crfreenet.org" target="_blank" rel="noreferrer">santiago@crfreenet.org</a>> wrote:<br>
><br>
> On Tue, Feb 28, 2023 at 02:57:54PM -0500, Mirai Azayaka wrote:<br>
> > Hello,<br>
> ><br>
> > I am trying to send routes from my DHCPv6 prefix delegation server to<br>
> > my router using iBGP. Those delegated prefix routes on the DHCPv6<br>
> > server are installed in its kernel table, such as 2001:db8:db8::/56<br>
> > via <client's link-local addr>. I want to pass this information to my<br>
> > router, but what the router receive is always 2001:db8:db8::/56 via<br>
> > <global unicast addr of the DHCPv6 server>. Why would next-hop change<br>
> > if it's iBGP?<br>
><br>
> Hello<br>
><br>
> Because link-local address is not resolvable through IGP routing table<br>
> then it does not really make sense to keep it when propagating through<br>
> IBGP.<br>
><br>
> I.e., the regular next-hop is valid through the whole local AS, so we can<br>
> pass it unmodified through IBGP, but link-local next-hop is valid only on<br>
> a specific link.<br>
><br>
> Note that BIRD almost always keep bgp_next_hop attribute when it is set<br>
> manually in the export filter, so if you use something like:<br>
><br>
> bgp_next_hop = gw;<br>
><br>
> in prefix_delegation export filter, it should keep the value, even if it<br>
> is link-local.<br>
><br>
> --<br>
> Elen sila lumenn' omentielvo<br>
><br>
> Ondrej 'Santiago' Zajicek (email: <a href="mailto:santiago@crfreenet.org" target="_blank" rel="noreferrer">santiago@crfreenet.org</a>)<br>
> OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, <a href="http://wwwkeys.pgp.net" rel="noreferrer noreferrer" target="_blank">wwwkeys.pgp.net</a>)<br>
> "To err is human -- to blame it on a computer is even more so."<br>
<br>
</blockquote></div>