Tag: routeros
28 articles
RouterOS Bridge and Vlan Configuration for CRS devices on v6.43.X
I’ve seen a few posts recently in the MikroTik forums and MikroTik Subreddit about the confusing nature of creating native (wirespeed) vlans on the CRS range of hardware and wanted to put together a template that gives you a good idea of how these work, and what the configuration of a few different port types … Continue reading RouterOS Bridge and Vlan Configuration for CRS devices on v6.43.X
Automatic bypass of hotspot devices based on MAC Address
Recently I was doing some work for a hotel that supplies a ‘Smart TV’ device with Netflix and other functions in every room. These rooms are in turn all connected to a hotspot network and the TV’s all needed to be given internet access. As this was (as sometimes occurs) an unexpected addition to the … Continue reading Automatic bypass of hotspot devices based on MAC Address
Scriptlet: Halt MikroTik scheduled scripts if multiple instances are detected.
The following script can be run in terminal (or via any automation tool that can login to your MikroTik devices via SSH) and checks for any duplicate script ‘jobs’ and kills them. I wrote this after noticing a few of my scripts that use fetch would hang periodically and leave multiple jobs open. #kill duplicate … Continue reading Scriptlet: Halt MikroTik scheduled scripts if multiple instances are detected.
Scriptlet: Find Default Route Interface Names (and a free licence!)
Today I’m giving you the task of reviewing and improving a small script I’ve written, and one of you will win a free Level 4 RouterOS licence. Background: I had need of a script to find the interfaces associated with any default routes in order to create matching firewall entries, and it had to work … Continue reading Scriptlet: Find Default Route Interface Names (and a free licence!)
Queue Tree Mikrotik to limit total bandwidth
Hi Guys, today i’ll show you how to manage the Mikrotik Queue Tree to limit the total bandwidth (for. example you can split a 20Mbps DSL to 4Mbps per 5 users) In my example i’ll limit upload+download=20Mbps First of all we need to mark the packets to be traced in the queue: /ip firewall mangle … Continue reading Queue Tree Mikrotik to limit total bandwidth
MikroTik Scripting: Failover Routing for Asterisk PBX
Hi guys, This is my second article and I wanted to raise the difficulty level of my tutorials! We work a lot with Asterisk PBX and MikroTik and we’ve encountered a problem when we have 2 internet connection with a MikroTik using WAN failover, our Asterisk PBX would stop working when the primary connections fail; … Continue reading MikroTik Scripting: Failover Routing for Asterisk PBX
Mikrotik Script: Alert on queue tree limit exceeded
Hi guys, This is my first post here, I’m a Network Engineer who works a lot with Mikrotik devices and Server Administration and you can see more of my posts on my website. I found this blog some time ago and was invited to contribute with some of my own scripts that may help others! Today i’ll show … Continue reading Mikrotik Script: Alert on queue tree limit exceeded
CRS Basic Vlan Configuration
I’ve been playing around with v6.13rc12 over the last week on a CRS125-24G-1S and have put together a an example script for provisioning the unit with a user-vlan and an admin-vlan that are trunked back via the SFP port. I’ve been waiting for a long time to have a usable and readable switch chip config … Continue reading CRS Basic Vlan Configuration
The Mother of all QoS Trees – v6.0
Contained in this post is a free copy of my 2013 QoS tree (compatible with v6.0) for anyone to do what they want with, I only ask that if you republish this you include a link to this post. It is intended to work on a per-interface basis; with you specifying the WAN interface and … Continue reading The Mother of all QoS Trees – v6.0
CloudCoreRouter and RouterOS v6.x (linked post)
Janis M. from MikroTik was kind enough to point me to a copy of his presentation from the Russian MUM which I feel is an incredible helpful document and well worth a read by all of the current CCR users out there. I would highly encourage anyone running (or thinking of running) CCR’s on their … Continue reading CloudCoreRouter and RouterOS v6.x (linked post)
Gmail + Google Drive + MikroTik scripting = Automated Backups Folder
I was recently looking for a simpler alternative to something like RANCID to periodically backup all our MikroTik configs. RANCID is great and all, but I didn’t really need the diff copies of each file, and I was plenty happy just knowing that I have a .backup and .rsc file for each router I manage. … Continue reading Gmail + Google Drive + MikroTik scripting = Automated Backups Folder
Check utilisation of RouterOS IP Pools
I was looking for a way to do a quick summary of the utilisation of my DHCP/PPP pools and stumbled across a helpful little script. This was originally found on the MikroTik forums and posted back in 2010 written by dssmiktik, and surprisingly enough it works perfectly on even v6.0 with no changes required.
Study guide: Moving up to RouterOS v6
Given v6.0 stable is now upon us I’ve taken some time to collate some of the posts I’ve been familiarising myself with over the last few weeks to understand the major changes that have been implemented in this release and how to best upgrade and make use of these. I’ve tagged some videos and forum posts … Continue reading Study guide: Moving up to RouterOS v6
RouterOS as a PXE (Net Boot) server
As more and more people switch to netbooks; the ability to provision Operating Systems and boot iso’s over the network becomes highly useful. It has become quite common to see CD/DVD ROM drives removed altogether in mobile and even some desktop machines. Installing and booting machines using RouterOS as the bootp/tftp server is quite a … Continue reading RouterOS as a PXE (Net Boot) server
ROS Syntax highlights in Notepad++
1. Download Notepad++: http://www.notepadplusplus.org 2. Install Notepad++ 3. Download file RouterOS Syntax-Highlighter and extract the notepad++ xml file within. 4. Open Notepad++ 5. Click Language > User-Defined > click Import button. Import the xml file you unzipped. 6. Close and reopen Notepad++ 7a. Open an .rsc script, and syntax highlighting will be visible. 7b. Alternatively open any … Continue reading ROS Syntax highlights in Notepad++
Quick Set Preview
Just a couple of quick screen shots of the new “Quick Set” mode available in some of the newest releases. As you can see the dropdown box top left lets you select the mode for the device and puts all the basic configuration options in one place. AP mode: And CPE mode: The addition … Continue reading Quick Set Preview
IPv6 over PPPoE – RouterOS v5.10
IPv6 prefix delegation support comes to PPPoE in RouterOS version v5.10* so for those of you ready to jump onboard this release, here’s my attempt at a best-practice way to set it all up. IPv6 has been around in RouterOS for a while now, but the specific feature that was introduced is called “DHCPv6 Prefix … Continue reading IPv6 over PPPoE – RouterOS v5.10
Bridging ESX Virtual Switch Networks using MikroTik and EoIP/Vlan/VPLS
This is a bit of a different post based on some configuration I did just recently to enable the bridging of a Virtual Switch between 2 ESX hosts. There is an VMWare option for this called a “VMware vSphere Distributed Switch” however this requires one of the higher end licencing packages so isn’t available on … Continue reading Bridging ESX Virtual Switch Networks using MikroTik and EoIP/Vlan/VPLS
Scriplet: Grabbing PPPoE IP Address
A quick scriptlet I whipped up for a friend tonight to allow them to retrieve an IP addess from a specific PPPoE interface. Handy for updating DynDNS entries among other things. :local wanip [/ip address get [/ip address find where interface=pppoe-wan] address]; :set wanip [:pick $wanip 0 ([:len $wanip]-3) ]; #whatever you want to do … Continue reading Scriplet: Grabbing PPPoE IP Address
Improved Netwatch-style script.
There have been a number of improved netwatch scripts listed on the mikrotik wiki in the past however many of these are hard to understand, broken or both. I had a request from an associate to assist them finding a solution to fall over VPN traffic from one link to another in the event of … Continue reading Improved Netwatch-style script.
Adding automatic rate limits to user-manager accounts.
This has been mentioned and posted in a couple of places now however I’d like to post a copy here also in the event that anyone else has further suggestions on improvements for the script, or any further questions. Although I don’t use it much myself, many Mikrotik users would be familiar with the “user-manager” … Continue reading Adding automatic rate limits to user-manager accounts.
Simple RouterOS http load/bandwidth tester
Disclaimer: I am not responsible for what you choose to do with this script and/or what damage you incur. It uses features of RouterOS in ways I have to assume they were not intended so user beware. I wrote a little script today that allows very simple load/bandwidth testing. Some suggested uses: – basic testing … Continue reading Simple RouterOS http load/bandwidth tester
Bug spotting – PPPoE and Hotspot
Came across an interesting (yet to be verified) bug today. The info: RouterOS v4.10 running on x86 server Site runs both a hotspot and PPPoE server on the same interface. Users can decide to login via the captive portal (which most do) or for those who understand and wish to use a pppoe connection, they … Continue reading Bug spotting – PPPoE and Hotspot
IPv6 and Mikrotik – Using 6to4
Please note this guide assumes some basic knowledge of IPv4 and IPv6 address space. Many of you may know of the impending doom that surrounds the IPv4 network and lack of remaining IP ranges. The question is, how many people are actually doing anything about it? Given the slow take up worldwide I thought it … Continue reading IPv6 and Mikrotik – Using 6to4
Freebies in SA (or How to download IP address lists to a Mikrotik)
In the state of Australia I currently live in, there are 2 major ISP’s – Internode and Adam Internet. Being a typical nerd and living with other typical nerds we of course have 2 ADSL connections, 1 to each of these providers which are shared out amongst the house. However each of these providers have … Continue reading Freebies in SA (or How to download IP address lists to a Mikrotik)
RB1100
Having received one of the first RB1100’s to arrive in Australia, I can sum all my thoughts on it in 5 words “better and cheaper than cisco”. However seeing as that’s just my opinion, I’ll elaborate a little further on why exactly the RB1100 rates so high in my mind.
Using PCC to load balance across multiple non bonded links.
This is my ongoing work at using multiple ADSL services and the Mikrotik PCC rules along with some inbound mangling to allow a single router to load balance traffic across as many non bonded links as required.
Consultant for hire
I am the user known as omega-00 on the mikrotik forums (see here) and as always am happy to be of assistance in all mikrotik related matters. I can be contacted via the email address listed in my forum profile or alternatively send an email to: admin at this domain dot com (if you can’t … Continue reading Consultant for hire