Community discussions

MikroTik App
 
vaizki
newbie
Topic Author
Posts: 32
Joined: Wed Mar 23, 2011 3:44 pm
Location: Finland

Exchanging routes locally between VRFs on 7.2.1

Thu Apr 28, 2022 9:54 am

I have a few 7.2.1 routers with iBGP and multiple VRFs, trying to figure out how to leak routes between VRFs.

Static routes work ok (route + 2x routing rules with lookup in another table) but the wiki says:
"In general it is recommended that all routes between VRF should be exchanged using BGP local import and export functionality."

How exactly would this be achieved? I can figure out a few overly complicated hacks to do it (including a cable from one port to another) but not the clean way.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 6818
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Exchanging routes locally between VRFs on 7.2.1

Thu Apr 28, 2022 10:02 am

At the moment there is no easy mechanism to do this. What may work is setting two BGP instances, one per VRF, and making a BGP session internally between vrfs.
 
vaizki
newbie
Topic Author
Posts: 32
Joined: Wed Mar 23, 2011 3:44 pm
Location: Finland

Re: Exchanging routes locally between VRFs on 7.2.1

Thu Apr 28, 2022 10:08 am

Thanks for the lightning fast response!
So would this be best practice then?
  • Create loopback bridge in both VRFs
  • Leak routes (static route + rules) to loopbacks between VRFs
  • Setup BGP between loopbacks
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 6818
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Exchanging routes locally between VRFs on 7.2.1

Thu Apr 28, 2022 10:10 am

It's not like best practice, but rather a workaround that might work.
 
vaizki
newbie
Topic Author
Posts: 32
Joined: Wed Mar 23, 2011 3:44 pm
Location: Finland

Re: Exchanging routes locally between VRFs on 7.2.1

Thu Apr 28, 2022 10:11 am

Ok, just for reference how does this work on v6 then?

Who is online

Users browsing this forum: No registered users and 2 guests