Community discussions

MikroTik App
 
Suri
just joined
Topic Author
Posts: 2
Joined: Thu Mar 09, 2023 5:06 am

Mikrotik sending routes in a vrf and in the main routing table

Thu Mar 09, 2023 5:24 am

Hi,

We are testing CCR2004 ros6 to be used as a peering router. We have a juniper based production environment so we are testing mikrotik with ibgp to our junipers. Our test setup includes an IX peer which the mikrotik has ebgp to and a production device which the mikrotik has ibgp to. The routes being received by the mikrotik from the ebgp peer is being sent to the ibgp peer in the correct vrf. However, the routes that are being announced by the mikrotik is being sent to the correct vrf as well as the main routing table of the ibgp peer. This has means the ibgp peer has 2 routes for each range in two tables.

The ebgp peer has bgp in the vrf and the ibgp peer has bgp in the main table and has vrfs tied to the instance under bgp>vrfs. For announcements, we have a route filter with our ranges defined and are using that as export filter. The ibgp peer has no filter on in or out. We have the ranges to be announce defined under routing>bgp>networks with no synchronize. We also tried adding blackhole routes for the ranges being advertised to see if that made any difference.

How can we fix the issue of double routes being sent to the ibgp peer?
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7044
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Mikrotik sending routes in a vrf and in the main routing table

Thu Mar 09, 2023 12:16 pm

Not exactly sure what do you mean by this:
However, the routes that are being announced by the mikrotik is being sent to the correct vrf as well as the main routing table of the ibgp peer.
If you mean networks that you announce by adding /routing bgp network entries, then yes these entries are sent everywhere, you need routing filters to further accept/deny those advertisements for a specific peer.
 
Suri
just joined
Topic Author
Posts: 2
Joined: Thu Mar 09, 2023 5:06 am

Re: Mikrotik sending routes in a vrf and in the main routing table

Fri Mar 10, 2023 12:11 am

Hi mrz,

This scenario is with one ibgp peer, mikrotik is sending the routes in two tables of the same peer. Do we need route filters to control that?

In juniper devices, when the routes are being announced in a vrf, the ibgp peers only get the routes in that vrf. If they do not have the vrf, they simply do not receive the routes. We wanted to replicate the same behavior. I'm not sure how to announce a route inside a vrf in mikrotik, it seems the route advertisements are global which is probably why the routes are being sent in the global as well as the vrf of the peer.

Who is online

Users browsing this forum: No registered users and 6 guests