The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Email Subscription

    Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 719 other subscribers

Archive for the ‘RouterOS’ Category

CRS112-8P-4S-IN default config · GitHub

Posted by jpluimers on 2026/11/24

Forgot to post this earlier, but the below is the default config of my Mikrotik CRS112-8P-4S-IN when it came out of the box with firmware / RouterOS version 6.48.6

That is from quite a while ago – I bought it when after surviving cancer treatments we decided to buy a house; took a while until all the structured cabling was finished and we could move from WiFi to a mostly cabled network.

Read the rest of this entry »

Posted in Development, Hardware, MikroTik, Network-and-equipment, Power User, RouterOS, routers, Scripting, Software Development, WinBox | Leave a Comment »

CRS305-1G-4S+ cannot talk to SFP on RBS960 at DuckDuckGo

Posted by jpluimers on 2026/11/18

With RouterOS on both sides, the symptoms where that both the CRS305-1G-4S+ and the RBS960 (hEX PoE) would see the 6COMGIGA 10GBase-SR SFP+ Transceivers, but not establish a link.

Two RBS960 would establish a link fine and I had enough RBS960 lying around to use those.

If I recall correctly, this used to work fine in RouterOS before my year cancer treatments started in at the end of 2019. Now that we’ve moved and I got more equipment in our larger house, things do not work as expected.

Reminder to self that when I start working on this again, it might be a negotiation setting of the SFP module in the SFP+ port and I need to script the work-around:

Read the rest of this entry »

Posted in Development, Hardware, MikroTik, Network-and-equipment, Power User, RouterOS, routers, Scripting, Software Development | Leave a Comment »

GitHub – Benewend/mikrotik-config-templates: A comprehensive collection of MikroTik RouterOS scripts and configurations for various networking scenarios. This repository contains tested and documented scripts for basic configurations, security implementations, and monitoring solutions. · GitHub

Posted by jpluimers on 2026/11/12

[Wayback/Archive] GitHub – Benewend/mikrotik-config-templates: A comprehensive collection of MikroTik RouterOS scripts and configurations for various networking scenarios. This repository contains tested and documented scripts for basic configurations, security implementations, and monitoring solutions. · GitHub

One missing script is the (very simple) switch configuration, for which I published the RB960PGS hEX PoE one at Factory reset a MikroTik hEX PoE RB960PGS using the reset button and a similar one on [Wayback/Archive] How to use Mikrotik router as a “switch”? – General – MikroTik community forum.

I need to dig into the switching anway as one day, I had trouble getting that to work, and I wasn’t sure if the problem was hardware or software related.

So here are some links, including some on centrally managing configurations:

Read the rest of this entry »

Posted in Development, Hardware, MikroTik, Network-and-equipment, Power User, RouterOS, routers, Scripting, Software Development, WinBox | Leave a Comment »

Some notes on making the Mikrotik parts running RouterOS of my network be managed from a physically separated management network

Posted by jpluimers on 2026/10/20

I’m so glad that my basic idea of modifying the Mikrotik devices of my network (all running RouterOS) to be managed from a separate physical network should function:

  1. note the MAC address of the current port you manage it through and the new management IP address (or if assigned by DHCP, get it from step 3. below)
  2. rename the switch bridge into “ManagementBridge”
  3. assign the “ManagementBridge” a management LAN IP-address (or have it assigned through a DHCP client)
  4. if/after loosing the connection, connect to the management LAN-IP address or MAC address you noted in step 1. or 3.
  5. create a new bridge “LanBridge”
  6. move all non-management ports over to the “LanBridge”
  7. if your switch/router only supports hardware offloading for one bridge: remove the hardware offloading from the “ManagementBridge”
  8. add hardware offloading for the “LanBridge”
  9. configure rules so management cannot be performed over the “LanBridge”
  10. do *not* assign an IP-address to the “LanBridge”
  11. reconnect like you did in step 4. to test if management still functions

In this, you need to understand that in the above, it is not about a bridge in the classical sense or a classic network bridge but more like a dental bridge. That one can span two or more dental units (like teeth). In the above, a bridge can span one or more network interfaces.

Read the rest of this entry »

Posted in Development, Ethernet, Hardware, MikroTik, Network-and-equipment, PoE - Power over Ethernet, Power User, RouterOS, Scripting, Software Development, WinBox | Leave a Comment »

Some links on configuring MikroTik equipment as multiple switches (or even routers) using RouterOS

Posted by jpluimers on 2023/04/13

MikroTik switches and routers are very flexible to configure, as everything is done through [Wayback/Archive] RouterOS settings.

This means that given enough ports, you can split a physical switch into logical switches. This can be very convenient when you run multiple networks without VLAN.

Earlier this week, I already wrote about Torching a specific port on a MikroTik switch or router running RouterOS which involved turning off hardware acceleration off for specific ports in order to have the flow through the underlying switch chip prohibiting torch and filter features.

For splitting noticing which ports are connected to which switch chip is also important: splitting works best if you can configure each logical switch to exclusively use network ports on one switch chip.

This post was to both research how to configure this, and if my MikroTik devices would allow for hardware acelleration.

Here are some links that should help me with configuring (via [Wayback/Archive] mikrotik split switch in two – Google Search):

–jeroen

Read the rest of this entry »

Posted in Development, Hardware, MikroTik, Network-and-equipment, Power User, RouterOS, routers, Scripting, Software Development | Leave a Comment »

Torching a specific port on a MikroTik switch or router running RouterOS

Posted by jpluimers on 2023/04/11

On most recent [Wayback/Archive] RouterOS configurations of MikroTik Routers and Switches, running [Wayback/Archive] Torch a port will show zero traffic when they are part of a bridge configuration. The same holds for the Packet Sniffer.

The reason is that these bridges have hardware acceleration turned on, which makes all traffic go through the switch chip instead of the device CPU. Torch works on the CPU level, so won’t show hardly any traffic except for some configuration stuff (depending on the combination of switch chip and CPU type).

This is not documented in the Torch documentation, but it is documented in the Packet Sniffer documentation.

Further reading:

–jeroen

Posted in Development, Hardware, MikroTik, Power User, RouterOS, routers, Scripting, Software Development | 1 Comment »

Winbox configuration files

Posted by jpluimers on 2021/12/31

A few notes:

  • WinBox configuration files are under %APPDATA%\Mikrotik\Winbox
    • The subdirectory sessions contains binary *.viw files that seem to represent “view” configurations (the positions, dimensions and other properties of the open Windows in a Winbox session) where the * of the name seems to be an IPv4 address of a machine.
    • Directories named like 6.40.3-2932358209 and 6.43.13-695307561 contain configuration files that seem to determine what WinBox features a certain RouterOS version should reveal; files in those directories seem to always be these:
      • advtool.crc / advtool.jg
      • dhcp.crc / dhcp.jg
      • hotspot.crc / hotspot.jg
      • icons.crc / icons.png
      • mpls.crc / mpls.jg
      • ppp.crc / ppp.jg
      • roteros.crc / roteros.jg
      • roting4.crc / roting4.jg
      • secure.crc / secure.jg
      • wlan6.crc / wlan6.jg
    • There are binary files Addresses.cdb and settings.cfg.viw
    • A text file named sessionpath contains the expanded path %APPDATA%\Mikrotik\Winbox\sessions

The *.crc files contain a CRC code, presumably on the contents of the correspoding *.jg file. The *.jg files seem to contain some kind of JSON.

Some links I found:

Read the rest of this entry »

Posted in Development, Hardware, Internet, MikroTik, Network-and-equipment, Power User, RouterOS, routers, Scripting, Software Development, WinBox | Leave a Comment »

Winbox 3.19 can connect via MAC whereas Winbox 3.17 cannot

Posted by jpluimers on 2021/08/17

Not sure why, but Winbox 3.17 could not connect to out of the box blank MikroTik equipment at all.

Winbox 3.19 complains every now and than, but usually connects fine.

This was while configuring a bunch of [WayBack] MikroTik Routers and Wireless – Products: CRS305-1G-4S+IN.

Read the rest of this entry »

Posted in Development, Hardware, Internet, MikroTik, Network-and-equipment, Power User, RouterOS, routers, Scripting, Software Development, WinBox | Leave a Comment »

Mikrotik: script to set clock to Amsterdam, enable ntp, then show latest ntp correction

Posted by jpluimers on 2021/03/11

For my script list:

/system ntp client set enabled=yes server-dns-names=0.pool.ntp.org,1.pool.ntp.org,2.pool.ntp.org,3.pool.ntp.org
/delay 10
/system ntp client print

If the delay was long enough, you will see output like this:

             enabled: yes
         primary-ntp: 0.0.0.0
       secondary-ntp: 0.0.0.0
    server-dns-names: 0.pool.ntp.org,1.pool.ntp.org,2.pool.ntp.org,3.pool.ntp.org
                mode: unicast
       poll-interval: 15m
       active-server: 149.210.230.59
    last-update-from: 149.210.230.59
  last-update-before: 29s290ms
     last-adjustment: 702us

If the delay was too short, the lines after mode will not be present.

–jeroen

Posted in Development, RouterOS, Scripting, Software Development | Leave a Comment »

Forced routing of selective emails to ISP SMTP via Mikrotik Routing | Syed Jahanzaib Personal Blog to Share Knowledge !

Posted by jpluimers on 2021/01/14

For my link archive: [WayBack] Forced routing of selective emails to ISP SMTP via Mikrotik Routing | Syed Jahanzaib Personal Blog to Share Knowledge !

–jeroen

Posted in Development, MikroTik, Power User, RouterOS, routers, Scripting, Software Development | Leave a Comment »