{"id":796,"date":"2017-11-14T20:54:48","date_gmt":"2017-11-14T20:54:48","guid":{"rendered":"http:\/\/kb.powercode.com\/?post_type=ht_kb&#038;p=796"},"modified":"2020-01-22T17:25:15","modified_gmt":"2020-01-22T17:25:15","slug":"mikrotik","status":"publish","type":"ht_kb","link":"https:\/\/kb.powercode.com\/?ht_kb=mikrotik","title":{"rendered":"MikroTik"},"content":{"rendered":"<p>The<strong> Mikrotik BMU Integration<\/strong> allows you to use Mikrotik Routers already in your system as\u00a0<strong>Powercode BMU (Bandwidth Management Unit)\u00a0<\/strong>devices<strong>.<\/strong> Powercode uses the Mikrotik API to allow a <strong>Mikrotik BMU<\/strong> to rate limit, redirect traffic, and assign IP addresses via DHCP according to <strong>Customer Account<\/strong> information in Powercode in addition to the existing native Mikrotik functionality.<\/p>\n<p>The\u00a0<strong>Mikrotik BMU Integration\u00a0<\/strong>requires deployment of a small server running <a href=\"http:\/\/kb.powercode.com\/?ht_kb=virtual-bmu\">Powercode&#8217;s Virtual BMU software<\/a> for <strong>SNMP<\/strong> and <strong>Monitoring<\/strong> functionality.<\/p>\n<p>Please reach out to Powercode support for recommended specifications if you intend to use this functionality.<\/p>\n<h3>Add a MikroTik BMU<\/h3>\n    \t\t<div class=\"hts-messages hts-messages--info   hts-messages--withicon \"   >\r\n    \t\t\t    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tIn the MikroTik router itself you will need to enable API access. This is located under\u00a0<strong>\u00a0IP &gt; Services<\/strong> within the Winbox gui pane.    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n    \t\t<div class=\"hts-messages hts-messages--danger  hts-messages--withtitle  \"   >\r\n    \t\t\t<span class=\"hts-messages__title\">Backup your Router!<\/span>    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tPlease 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&#8217;s Routing functionality, we make no guarantees that the device will behave as you expect after activating the integration.    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n<p>The first step is to add the MikroTik RMU in to Powercode<\/p>\n<ul>\n<li>Navigate to Network-&gt;BMU Overview<\/li>\n<li>Click the &#8220;Add New BMU&#8221; button on the left<\/li>\n<li>Click the &#8220;MikroTik&#8221; button for &#8220;Type of BMU&#8221;<\/li>\n<\/ul>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-1354\" src=\"http:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/AddMikrotik.png\" alt=\"\" width=\"743\" height=\"1062\" srcset=\"https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/AddMikrotik.png 743w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/AddMikrotik-210x300.png 210w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/AddMikrotik-716x1024.png 716w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/AddMikrotik-35x50.png 35w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/AddMikrotik-42x60.png 42w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/AddMikrotik-70x100.png 70w\" sizes=\"(max-width: 743px) 100vw, 743px\" \/><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>Enter in the Name, IP Address, Username and Password of the MikroTik<\/li>\n<li>The account entered in to the MikroTik should have administrator access<\/li>\n<li>Enter in the IP address for &#8220;delinquent&#8221; and &#8220;contract&#8221; customers to be redirected to<\/li>\n<li>Select the applicable mirror group, if any<\/li>\n<li>Select which options to enable on this MikroTik (DHCP, Rate Limiting, Redirect And Accept Relay Requests)<\/li>\n<li>Enter in the IP Address to accept relay requests on if applicable<\/li>\n<li>Save your changes<\/li>\n<\/ul>\n<p>Powercode will redirect you back to the BMU Overview screen.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-799\" src=\"http:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/BmuOverview-1-300x54.png\" alt=\"\" width=\"1259\" height=\"227\" srcset=\"https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/BmuOverview-1-300x54.png 300w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/BmuOverview-1-768x138.png 768w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/BmuOverview-1-1024x184.png 1024w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/BmuOverview-1-50x9.png 50w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/BmuOverview-1-60x11.png 60w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/BmuOverview-1-100x18.png 100w\" sizes=\"(max-width: 1259px) 100vw, 1259px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3>Configure an Address Range<\/h3>\n<p>The next step is to configure an address range for your MikroTik<\/p>\n<ul>\n<li>In the dropdown menu on the left side of the MikroTik you just entered, select &#8220;Configure BMU&#8221;<\/li>\n<li>Fill in the relevant information for your MikroTik<\/li>\n<li>If your MikroTik handles DHCP, you will need to select &#8220;Enabled&#8221; under &#8220;DHCP Server&#8221; and enter in the DHCP information as well<\/li>\n<li>On address ranges under a MikroTik or in a mirror group with a MikroTik, you will get an &#8220;interface&#8221; field for each MikroTik in the group. This is the port that the MikroTik will use for the DHCP Server with this address range<\/li>\n<li>Save your changes<\/li>\n<\/ul>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-806\" src=\"http:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/AddressRange-161x300.png\" alt=\"\" width=\"638\" height=\"1189\" srcset=\"https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/AddressRange-161x300.png 161w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/AddressRange-549x1024.png 549w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/AddressRange-27x50.png 27w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/AddressRange-32x60.png 32w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/AddressRange-54x100.png 54w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/AddressRange.png 551w\" sizes=\"(max-width: 638px) 100vw, 638px\" \/><\/p>\n<p>On saving, Powercode will bring you back to the &#8220;IP Address Ranges&#8221; tab on the BMU Configuration page.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-810\" src=\"http:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/BmuConfigure-300x39.png\" alt=\"\" width=\"638\" height=\"83\" srcset=\"https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/BmuConfigure-300x39.png 300w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/BmuConfigure-768x99.png 768w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/BmuConfigure-1024x132.png 1024w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/BmuConfigure-50x6.png 50w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/BmuConfigure-60x8.png 60w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/BmuConfigure-100x13.png 100w\" sizes=\"(max-width: 638px) 100vw, 638px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3>Add a Slave BMU (optional)<\/h3>\n<p>If you need to add a Powercode BMU as a slave, you may do so under the &#8220;Slave BMUs&#8221; tab on this page.<\/p>\n<ul>\n<li>Click the &#8220;Slave BMUs&#8221; tab<\/li>\n<li>Click the &#8220;Add New Slave BMU&#8221; button on the left<\/li>\n<li>Powercode BMU will be the only choice for a slave BMU<\/li>\n<li>Enter in the IP Address and API Key of the Powercode BMU<\/li>\n<li>Save your changes<\/li>\n<\/ul>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-812\" src=\"http:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/SlaveBmu-300x129.png\" alt=\"\" width=\"642\" height=\"276\" srcset=\"https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/SlaveBmu-300x129.png 300w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/SlaveBmu-50x22.png 50w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/SlaveBmu-60x26.png 60w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/SlaveBmu-100x43.png 100w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/SlaveBmu.png 438w\" sizes=\"(max-width: 642px) 100vw, 642px\" \/><\/p>\n<p>Upon saving, Powercode will return you back to the &#8220;Slave BMUs&#8221; tab on the BMU Configuration page.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-813\" src=\"http:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/SlaveBmuOverview-300x30.png\" alt=\"\" width=\"650\" height=\"65\" srcset=\"https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/SlaveBmuOverview-300x30.png 300w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/SlaveBmuOverview-768x78.png 768w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/SlaveBmuOverview-1024x104.png 1024w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/SlaveBmuOverview-50x5.png 50w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/SlaveBmuOverview-60x6.png 60w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/SlaveBmuOverview-100x10.png 100w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3>Synchronize the MikroTik<\/h3>\n<p>Now that you have configured the MikroTik and given it an address range, it&#8217;s time to synchronize the information with the MikroTik. This can be done either on the &#8220;Configure BMU&#8221; page, or the BMU Overview.<\/p>\n<p>To synchronize at the &#8220;Configure BMU&#8221; page, simply click the &#8220;Synchronize BMU&#8221; button on the top left.<\/p>\n<p>To synchronize the MikroTik from the BMU Overview:<\/p>\n<ul>\n<li>Navigate to Network-&gt;BMU Overview<\/li>\n<li>The MikroTik should be in &#8220;Good&#8221; status, and should have automatically populated the Model and Version fields.<\/li>\n<li>If the MikroTik is not in &#8220;Good&#8221; status, check to see that you have entered in the IP Address, Username and Password correctly.<\/li>\n<li>Click &#8220;Synchronize&#8221; under the MikroTik&#8217;s dropdown menu under &#8220;Action&#8221; on the right<\/li>\n<\/ul>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-814\" src=\"http:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/BmuSynched-300x12.png\" alt=\"\" width=\"650\" height=\"26\" srcset=\"https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/BmuSynched-300x12.png 300w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/BmuSynched-768x30.png 768w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/BmuSynched-1024x40.png 1024w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/BmuSynched-50x2.png 50w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/BmuSynched-60x2.png 60w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/BmuSynched-100x4.png 100w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/p>\n<p>Your MikroTik will change to &#8220;Synched&#8221; under &#8220;Sync State&#8221; after successfully pushing the information. If the MikroTik doesn&#8217;t synchronize, make sure all of the information you entered is correct and try again.<\/p>\n<h3>Add a MikroTik as a Slave (optional)<\/h3>\n<p>You can also add a MikroTik as a slave to a Procera RMU.<\/p>\n<ul>\n<li>Navigate to Network-&gt;BMU Overview<\/li>\n<li>Click on &#8220;Configure BMU&#8221; in the dropdown on the applicable Procera<\/li>\n<li>Navigate to the &#8220;Slave BMUs&#8221; tab<\/li>\n<li>Click on the &#8220;Add New Slave BMU&#8221; button on the left<\/li>\n<li>You will notice that you now have th option of &#8220;MikroTik&#8221; in addition to &#8220;Powercode BMU&#8221;<\/li>\n<li>Click on &#8220;MikroTik&#8221; under &#8220;Device Type&#8221;<\/li>\n<li>Enter in the IP Address, Username and Password of the MikroTik<\/li>\n<li>Save your changes.<\/li>\n<\/ul>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-815\" src=\"http:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/TikSlave-300x156.png\" alt=\"\" width=\"300\" height=\"156\" srcset=\"https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/TikSlave-300x156.png 300w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/TikSlave-50x26.png 50w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/TikSlave-60x31.png 60w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/TikSlave-100x52.png 100w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/11\/TikSlave.png 420w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>Upon saving, you will be redirected to the &#8220;Slave BMUs&#8221; tab of the Configure BMU page.<\/p>\n<h3>MikroTik Actions<\/h3>\n<table>\n<tbody>\n<tr>\n<th width=\"40%\">Powercode Action<\/th>\n<th>MikroTik Action<\/th>\n<\/tr>\n<tr>\n<td>Synchronize<\/td>\n<td>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<\/td>\n<\/tr>\n<tr>\n<td>Change Customer Status<\/td>\n<td>Adds or removes customer from delinquent list.<\/td>\n<\/tr>\n<tr>\n<td>Add\/Change Customer Service<\/td>\n<td>Updates rate limits in customer&#8217;s queue<\/td>\n<\/tr>\n<tr>\n<td>Add Customer Equipment<\/td>\n<td>Adds DHCP lease and and queue for equipment<\/td>\n<\/tr>\n<tr>\n<td>Edit Customer Equipment<\/td>\n<td>Edits DHCP lease and queue for equipment<\/td>\n<\/tr>\n<tr>\n<td>Delete Customer Equipment<\/td>\n<td>Removes DHCP lease and queue for equipment<\/td>\n<\/tr>\n<tr>\n<td>Update Service<\/td>\n<td>Updates queues of customers on this service<\/td>\n<\/tr>\n<tr>\n<td>Delete Service<\/td>\n<td>Deletes or updates queues of customers depending on option selected while deleting service<\/td>\n<\/tr>\n<tr>\n<td>Update Address Range<\/td>\n<td>Updates DHCP server, DHCP network and address list for range. Then updates customers on that address range<\/td>\n<\/tr>\n<tr>\n<td>Delete Address Range<\/td>\n<td>Removes DHCP server, DHCP network and address list for range<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>The Mikrotik BMU Integration allows you to use Mikrotik Routers already in your system as\u00a0Powercode BMU (Bandwidth Management Unit)\u00a0devices. 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&#8230;<\/p>\n","protected":false},"author":4,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":[],"ht-kb-category":[35,6,27],"ht-kb-tag":[],"_links":{"self":[{"href":"https:\/\/kb.powercode.com\/index.php?rest_route=\/wp\/v2\/ht-kb\/796"}],"collection":[{"href":"https:\/\/kb.powercode.com\/index.php?rest_route=\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/kb.powercode.com\/index.php?rest_route=\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/kb.powercode.com\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.powercode.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=796"}],"version-history":[{"count":17,"href":"https:\/\/kb.powercode.com\/index.php?rest_route=\/wp\/v2\/ht-kb\/796\/revisions"}],"predecessor-version":[{"id":1398,"href":"https:\/\/kb.powercode.com\/index.php?rest_route=\/wp\/v2\/ht-kb\/796\/revisions\/1398"}],"wp:attachment":[{"href":"https:\/\/kb.powercode.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=796"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/kb.powercode.com\/index.php?rest_route=%2Fwp%2Fv2%2Fht-kb-category&post=796"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/kb.powercode.com\/index.php?rest_route=%2Fwp%2Fv2%2Fht-kb-tag&post=796"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}