How to Copy dynamic Route to another route table

Hello i have small problem

i need to have specific routes in separate routing table

\

i need to mark routes from one bgp instance
and give those routes to another bgp instance

with first routing filter i place all incoming prefixes to “temp”
routing table

with second routing filter i need to filter out only routes from temp
table

second filter work only when needed prefixes are in main routing table
but not in temp table

so how to copy routes from temp table to main

I do not believe this is possible.

You can use a filter to modify a dynamic route but it can’t be copied.

If this can be done without making static routes I would like to know how as well.

Hello.
I faced the same task.

A lot of time has passed since the creation of this topic.

Maybe copying routes is already possible?

For example, in Linux there is a program “bird”. With it, you can copy routes from one table to another using filters.

And on the routerOS, I do not understand how to do this?

You can use VRFs to install to specific table and advertised from it.

I read your wiki, but did not understand anything.

Can a simple example?

i’ve required this feature several times already.

i understand i could use a route reflector to give all my routes back to me and put then with a different routing mark, but that would require a separate router with extra physical connections, which makes no sense as it should be very easy to do a copy/paste locally yet it doesn’t seem to be possible for some reason.

all i need is to get what dynamic routes (BGP, OSPF) i already have in my main routing mark and copy some of them to a different routing mark, while obviously still keeping them in the main table.

Bump, especially what Railander said.

For my own good I just wrote this:

foreach route in=[routing route find where routing-table=BGP bgp.communities~"65444:770"] do={ip route add copy-from=$route routing-table=test}

It totally works on dynamic routes, but these copies will be made static, with all the consequences.