Community discussions

MikroTik App
 
terintamel
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 76
Joined: Sun Sep 05, 2010 3:09 am

ROS V7 BGP Advertisement Question

Thu Apr 21, 2022 5:41 pm

I am working on converting a v6 BGP setup to a new router running V7 and have a question on the advertisements.

Here is the example setup (Using private IPs just for example purposes)

BGP Peer1 (172.16.5.1)->border router eth1 -> border router eth3 -> core router eth1
BGP Peer2 (172.16.10.1)->border router eth2 -> border router eth3 ->core router eth1

Border router
eth1 - 172.16.5.2/30
eth2 - 172.16.10.2/30
eth3 - 172.16.2.1/30
Core router
eth1 - 172.16.2.2/30
eth2 - 192.168.97.1/24
eth3 - 192.168.104.1/24

In v6 I know I put my networks to advertise in the BGP->Networks section. So for an example I have the following. I have changed the IPs so as to not show my public IP ranges.

BGP Network (synchronize set to no)
192.168.96.0/20
192.168.96.0/21
192.168.104.0/21

Routing filter
Out-peer-1 (prefix 192.168.96.0/20; accept)
Out-peer-1 (prefix 192.168.96.0/21; accept)
Out-peer-2 (prefix 192.168.96.0/20; accept)
Out-peer-2 (prefix 192.168.104.0/21; accept)

I have this setup this was as I have two BGP connections with my upstream provider and I manually load balance by advertising my full range out both and then my upper range /21 out one and the lower range /21 out the other using the outbound routing filters . This way incoming traffic will prefer the /21 but if one feed goes down then the other traffic will then use the /20 to find my network.

In my border router routing table I have just the one route towards my core of 192.168.96.0/20 with a gateway of 172.16.2.2. I do not have any routes blackholed. This functions properly with no issue in v6.

In v7 I know to put the advertised networks as an Address list and I have my outbound filtering rules converted as well. My confusion is around the example here (https://help.mikrotik.com/docs/display/ ... g+Examples) where it states that now in v7 routes will not be advertised unless they exist in the routing table. Also they show blackholing their route

So in v7 do I have to put all three advertised routes in the routing table or will just having the single 192.168.96.0/20 route suffice and still allow for the advertisements of both the /21s to be received by the my peers? Also do I have to have the blackhole for my prefixes?
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 6827
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: ROS V7 BGP Advertisement Question  [SOLVED]

Thu Apr 21, 2022 5:51 pm

Currently, you need exact match, so if you are trying to advertise /21 routes then there must be corresponding routes in the routing table. You cannot add one generic /20 route, to advertise /21 routes.
 
terintamel
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 76
Joined: Sun Sep 05, 2010 3:09 am

Re: ROS V7 BGP Advertisement Question

Thu Apr 21, 2022 6:24 pm

Got it so in my v7 routing table I would have to have

192.168.96.0/20
192.168.96.0/21
192.168.104.0/21

Do all three routes have to be enabled? Could I put in the /21s and set them 'disabled'?
Also the distance value for each route does not matter for the BGP advertisement, so I could have the /21s at say distance=244 and the /20 at distance=1? Just as long as all three specific routes are in the table.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 6827
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: ROS V7 BGP Advertisement Question

Fri Apr 22, 2022 9:08 am

Routes need to be active, disabled routes won't cut.
 
prawira
Trainer
Trainer
Posts: 350
Joined: Fri Feb 10, 2006 5:11 am

Re: ROS V7 BGP Advertisement Question

Mon Sep 19, 2022 12:20 pm

so let say we have multiple /30 from 192.168.96.0/20 address space and not all of them allocated yet to customers, how should we advertise 192.168.96.0/20 ?
just put it into loopback on ebgp router ?
afaik, we are not allowed advertise smaller than /24.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 6827
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: ROS V7 BGP Advertisement Question

Mon Sep 19, 2022 12:47 pm

add /20 blackhole route

Who is online

Users browsing this forum: No registered users and 1 guest