Has anybody found a way to set the BGP origin attribute in RouterOS via routing filter?
I don’t see an option to do that. The only way I was able to that is via a static route where I have an option to set the origin attribute, but such option is not available in a routing filter. It’s not that that is something of a crucial importance, but I was wondering whether I’m not missing something…
No, there is no option to set origin in filters. You can only force ‘igp’ by adding bgp network or set specific origin on static routes.
Thank you for confirming this. I was expecting it. I have done this in the past with a static route where the BGP origin is specified. I guess, this is not something that you plan to implement in future releases ![]()
We are not implementing anything new related to routing in ROSv6
Is there any plan to implement this feature in v7?
Most likely yes.
Can you give us any update on v7 alpha/beta/release time frame?
v7 has been expected for more than an year as far as I could remember ![]()
Out of curiosity, why not just use the network statement to originate the prefix properly?
Because the summarization function of BGP didn’t work for me and I created an unreachable static route, which than I advertise via “redistribute static”. It’s crazy I know, but this is the only option that actually worked and I didn’t bother to poke with this since I’ve configured it.
You can set the bgp origin on static routes.
/ip route set X bgp-origin=(egp igp incomplete)
… Or you could just create a black hole type route and also add the same prefix to the network list, which would do the same thing, but originate it properly.