The Mikrotik BMU Integration allows you to use Mikrotik Routers already in your system as Powercode BMU (Bandwidth Management Unit) devices. Powercode uses the Mikrotik API to allow a Mikrotik BMU to rate limit, redirect traffic, and assign IP addresses via DHCP according to Customer Account information in Powercode in addition to the existing native Mikrotik functionality. The **Mikrotik BMU Integration **requires deployment of a small server running Powercode's Virtual BMU software for SNMP and Monitoring functionality. Please reach out to Powercode support for recommended specifications if you intend to use this functionality.
In the MikroTik router itself you will need to enable API access. This is located under ** IP > Services** within the Winbox gui pane.
Backup your Router!
Please download a config backup from your Mikrotik Router in a known good configuration before connecting the router to Powercode! While the Powercode Mikrotik integration should not interfere with your Mikrotik's Routing functionality, we make no guarantees that the device will behave as you expect after activating the integration.
The first step is to add the MikroTik RMU in to Powercode

Powercode will redirect you back to the BMU Overview screen. 
The next step is to configure an address range for your MikroTik
On saving, Powercode will bring you back to the "IP Address Ranges" tab on the BMU Configuration page. 
If you need to add a Powercode BMU as a slave, you may do so under the "Slave BMUs" tab on this page.
Upon saving, Powercode will return you back to the "Slave BMUs" tab on the BMU Configuration page. 
Now that you have configured the MikroTik and given it an address range, it's time to synchronize the information with the MikroTik. This can be done either on the "Configure BMU" page, or the BMU Overview. To synchronize at the "Configure BMU" page, simply click the "Synchronize BMU" button on the top left. To synchronize the MikroTik from the BMU Overview:
Your MikroTik will change to "Synched" under "Sync State" after successfully pushing the information. If the MikroTik doesn't synchronize, make sure all of the information you entered is correct and try again.
You can also add a MikroTik as a slave to a Procera RMU.
Upon saving, you will be redirected to the "Slave BMUs" tab of the Configure BMU page.
| Powercode Action | MikroTik Action |
| Synchronize | Creates DHCP server, DHCP network, DHCP leases, DHCP options, simple queues, filter rules, NAT rules and Address list based on information entered and options selected |
| Change Customer Status | Adds or removes customer from delinquent list. |
| Add/Change Customer Service | Updates rate limits in customer's queue |
| Add Customer Equipment | Adds DHCP lease and and queue for equipment |
| Edit Customer Equipment | Edits DHCP lease and queue for equipment |
| Delete Customer Equipment | Removes DHCP lease and queue for equipment |
| Update Service | Updates queues of customers on this service |
| Delete Service | Deletes or updates queues of customers depending on option selected while deleting service |
| Update Address Range | Updates DHCP server, DHCP network and address list for range. Then updates customers on that address range |
| Delete Address Range | Removes DHCP server, DHCP network and address list for range |