<div dir="ltr"><div>Hi Radoslaw,</div><div><br></div><div>In your case, how should BIRD know in what ASN the routes are originating? The AS number appears when you do export via eBGP session. And it uses local ASN for that. If you need your routes to pretend to be originated in AS20940, you need to prepend AS20940 in some filter to your routes.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 9, 2024 at 11:09 AM Ochalski, Radoslaw <<a href="mailto:rochalsk@akamai.com">rochalsk@akamai.com</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">Thanks Ondrej,<br>
<br>
So for the routes originating in AS20940, downstream will not be aware of AS20940 in the as-path it will only know private AS4290006033.<br>
<br>
Kind Regards, <br>
<br>
Radek <br>
<br>
<br>
On 10/8/24, 5:18 PM, "Ondrej Zajicek" <<a href="mailto:santiago@crfreenet.org" target="_blank">santiago@crfreenet.org</a> <mailto:<a href="mailto:santiago@crfreenet.org" target="_blank">santiago@crfreenet.org</a>>> wrote:<br>
<br>
<br>
!-------------------------------------------------------------------|<br>
This Message Is From an External Sender<br>
This message came from outside your organization.<br>
|-------------------------------------------------------------------!<br>
<br>
<br>
On Tue, Oct 08, 2024 at 04:46:07PM +0200, Alexander Zubkov via Bird-users wrote:<br>
> Hi Radoslaw,<br>
> <br>
> Do I get it right, that you have 2 bgp peerings here. First your route<br>
> passes this peering:<br>
> AS8075 <-> AS20940<br>
> then it passes other peering:<br>
> AS4290006033 <-> AS4290006002<br>
> <br>
> Then it is an expected behaviour. Because the ASN is prepended when<br>
> route is exported over eBGP session. And the local ASN is prepended.<br>
> So you see that when you receive the route over the first peering, it<br>
> is prepended with AS8075. Then it goes over the second peering, where<br>
> it is prepended with AS4290006033.<br>
<br>
<br>
Yes, that is true. I would add that one is not supposed to have different<br>
local ASNs for different BGP instances that form coherent BGP router,<br>
unless it is configured as BGP confederation or manually patched by<br>
filters.<br>
<br>
<br>
-- <br>
Elen sila lumenn' omentielvo<br>
<br>
<br>
Ondrej 'Santiago' Zajicek (email: <a href="mailto:santiago@crfreenet.org" target="_blank">santiago@crfreenet.org</a> <mailto:<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>
<br>
<br>
<br>
</blockquote></div>