Step 1: Setting up BGP Peering on Mikrotik
Posted: Sat Apr 05, 2025 9:33 am
The first step is to set up BGP peering between your Mikrotik router and your ISP or other network that will be providing international traffic. Here are the basic steps:
Log in to Mikrotik via WinBox or terminal.
Open the BGP menu under the Routing tab .
Click Add to add a new BGP peering.
Enter information such as:
Router ID : Unique IP address that Mikrotik will use for BGP communication.
Peer IP Address : IP of ISP or other network that will be BGP peer.
Remote AS : The AS number of the ISP or network telegram data you are connecting to.
Step 2: Configure Filters to Separate Local and International Traffic
Once the BGP peering is set up, you can start configuring filters to separate local and international traffic. The basic concept in this configuration is to use Prefix Lists or Route Filters .
Open the BGP tab in the Mikrotik Routing menu.
Select Filter and create a new filter to separate the Prefix or IP address range you want to separate.
For local traffic, specify the IP address range used by your network.
For international traffic, specify the IP address range used by international routes.
This filter will allow the Mikrotik router to choose which path to use based on the type of traffic, whether it is local or international.
Log in to Mikrotik via WinBox or terminal.
Open the BGP menu under the Routing tab .
Click Add to add a new BGP peering.
Enter information such as:
Router ID : Unique IP address that Mikrotik will use for BGP communication.
Peer IP Address : IP of ISP or other network that will be BGP peer.
Remote AS : The AS number of the ISP or network telegram data you are connecting to.
Step 2: Configure Filters to Separate Local and International Traffic
Once the BGP peering is set up, you can start configuring filters to separate local and international traffic. The basic concept in this configuration is to use Prefix Lists or Route Filters .
Open the BGP tab in the Mikrotik Routing menu.
Select Filter and create a new filter to separate the Prefix or IP address range you want to separate.
For local traffic, specify the IP address range used by your network.
For international traffic, specify the IP address range used by international routes.
This filter will allow the Mikrotik router to choose which path to use based on the type of traffic, whether it is local or international.