Mikrotik – Configure BGP (eBGP) for a given network

Published on Author gryzliLeave a comment

I assume the following setup:

Router1 (Some external router) , with AS: 65532

Mikrotik router (our internal router) , with AS: 65535

Network prefix: , delegated to AS 65535 (our internal router)

Router1.IP ==

Mikrotik.IP ==


1. Enable BGP on the Mikrotik router


2. Add our network to BGP on Mikrotik


3. Create input/output filters on Mikrotik router

We must create input/output filters on our router in order we to NOT annouce other network.

When using invert-match=yes, we tell the router to discard everything BUT the prefix stated


4. Add BGP neighbour R1 to Mikrotik


5. Finally … Validate the route for the network


Leave a Reply

Your email address will not be published. Required fields are marked *

Captcha * Time limit is exhausted. Please reload CAPTCHA.