← Back
RouterOS 7 Basic BGP Configuration
RouterOS 7 has changed how BGP is configured from version 6. This guide goes through how to set it up. This will be done using the GUI but can be easily replicated on the CLI.
Prerequisites
This is assuming you have a Mikrotik Router running RouterOS 7, have basic L3 connectivity between sites and want to configure a simple BGP session for route sharing.
This guide also assumes you know how to use BGP as it will not be a guide on how to use it.
Route Preparation
- Go to IP > Firewall > Address Lists
- Add a new address list with all the prefixes to be advertised. Make a note of the name of the list.
- Go to IP > Routes
- Make sure a route is present for each prefix to be advertised. It has to match exactly.
- If it does not, create a black-hole route with a distance of 255.
BGP
- Go to Routing > BGP
- Add a new Connection
- Specify a name, AS (Local AS), AFI, Router ID, Remote Address, Remote AS (If required), Local Role (EBGP/IBGP etc.). Under Filter > Output Network, select the address list specified previously.
- Click OK.
- Go to the Sessions tab and check a session is established. Note, prefix count is buggy as of 7.14.2. Go to IP > Routes and look for routes with the b attribute.
Copyright 1999-2024