Community discussions

MikroTik App
 
_saik0
Member Candidate
Member Candidate
Topic Author
Posts: 129
Joined: Sun Aug 26, 2007 11:18 pm

VRF route leaking with main table

Thu Jan 06, 2022 2:14 am

Is it possible to route leak a VRF table and the main table?
I have a main table that has OSPF routes and I have a VRF. I want to leak everything from the main table towards the VRF, and from VRF i just need to leak directly connected routes.

I know I can do it over mangle, route policy rules, static routes, but I want to have everything done dynamically.
Hell I can do a loopback cable and establish BGP between the instances and filter out on import and export what i want.

But is there an elegant way? I'm coming from Juniper world and I'm used to instance-import, rib-group and logical tunnel features, is there something similar here?
Thanks!
 
User avatar
nichky
Forum Guru
Forum Guru
Posts: 1275
Joined: Tue Jun 23, 2015 2:35 pm

Re: VRF route leaking with main table

Thu Jan 06, 2022 10:15 am

you can use / ip firewall mangle or /ip route rule
this one simple e.g.

/ip route rule
add src-address=Lan-A dst-address=LAN-B action=lookup table-vrf
add src-address=LAN-B dst-address=LAN-A table=main routhing-mark=vrf

Who is online

Users browsing this forum: No registered users and 4 guests