r/mikrotik • • Jul 21 '19

New Mod Guideline - If you don't have anything nice to say..

170 Upvotes

I'll try and keep this short - there's been a marked increase in generally abrupt and abrasive comments here on the /r/mikrotik and it's not what we're about or what we want to see happening. Many of these have been due to content that is or is seen to be incorrect or misleading, so..

If you're posting here:

Keep in mind none of us are being paid to answer you and the people who are, are doing so because they want to help, or you've posted something so incredibly incorrect they can't help but respond. Please do yourself a favor by collecting all the information you can before posting and make sure to check the MikroTik wiki first - no one wants to spoon feed you all the information.

If you're commenting here:

  1. If you don't know the answer - don't try guess at it; and if you want to learn about it yourself then follow the thread and see what others say, or you know.. read the wiki and try it out in a lab.
  2. If you disagree with another poster, try to explain the correct answer rather than a one sentance teardown that degrades into a thread full of name-calling.

As a result of this I've added a new rule & report option - you can now report a comment with the reason being:

It breaks /r/MikroTik rules: Don't post content that is incorrect or potentially harmful to a router/network

If we agree we'll either:

a) Write a correct response

b) Add a note so that future readers will be made aware of the corrections needed

c) If the post/comment is bad enough, simply delete it

I'm open to feedback on this as I know people feel strongly about timewasting and I'd like to hope this helps us continue to self-moderate without people blowing up at each other.


r/mikrotik • • 11h ago

Recommendations for a difficult dwelling

5 Upvotes

I've got a weird house, across 3(.5) floors with concrete between the floors. I've got a tech box on a very visible wall with fiber and the router from the ISP. Metal on all sides of the box so bad coverage. wife won't allow anything on the wall outside that box.

From that box, where I squeezed in a switch, I've got Cat5e cables going to single points on floor 2 and floor 3, where my current mesh boxes are placed and plugged in. My home office is at floor 2.5 (in the stairwell). There is no physical cabling at that location, and it's difficult to get it there. Floor 1 coverage is not important.

My current network sucks. Slow, buggy, low security etc. I bought cheap equipment moving in 7 years ago, but want an upgrade now..

I need something that is stable and simple to USE as my kids and wife don't care about tech, they just want it to work. Network roaming between floors must be seamless. I want something that works well when configured correctly. I've worked corporate networks for many years so configuring is no problem, but I'm totally outdated on home network equipment. I don't want to have to configure everything from scratch, but I want good security and the possibility to configure what I want and need if needed.

How would you solve this with Mikrotik equipment? What devices would I need?

I prefer not having my home network cloud-connected 24/7, so on-premises management preferably without having to run a separate controller is a plus.


r/mikrotik • • 1d ago

5km LHG 5AX link fantastic

Thumbnail
gallery
68 Upvotes

Howdy, just wanted to share, set up a 5km link between the farm and town to bring "fibre" to the farm, managed to get a stable 1.3Gbps connection between the two sites


r/mikrotik • • 1d ago

3D printer connected to y be3 Media, but can't connect to interface via local IP address

3 Upvotes

I setup my be3 media a few days ago and for some reason, I can't remote into it like I could with my old wifi 6E router. Could anyone help me out with possibly some routerOS routing or firewall settings I'm missing? Thanks for any help

edit: nvm, I found it using dhcp server lease print. the ip in the mikrotik terminal had it listed with a different ip to what the printer actually says it is. no idea why but now i can access my printer again


r/mikrotik • • 2d ago

Question re an IPV6 router advertisement from an Apple TV

5 Upvotes

I've been trying to understand how RouterOS processes IPV6 router advertisements, and wonder why this router advertisement from an Apple TV doesn't result in a SLAAC generated address being added to the router interface on which it was received. A route information option (RIO) was also received, but not added to the routing table, presumably because RouterOS doesn't process received route information options.

The RouterOS ipv6 setting accept-router-advertisements is set to yes.

My guess its that a SLAAC address isn't added because the SNAC Router flag is set in the RA, presumably because it was generated by the Thread Border Router inside my Apple TV.

Here's a Wireshark dump of the RA I am wondering about:

Type: Router Advertisement (134)

Code: 0

Checksum: Øxecd8 [correct]

Cur hop limit: ø

Flags: 0x03, Prf (Default Router Preference): Medium, SNAC Router

Router lifetime (s): 0

Reachable time (ms): 0

Retrans timer (ms): 0

ICMPv6 Option (Prefix information: fdlf:e377:cb11:45f6::/64)

Type: Prefix information (3)

Length: 4 (32 bytes)

Prefix Length: 64

Flag: ØxcO, On-link Flag (L), Autonomous Address Configuration Flag (A)

Valid Lifetime: 1800 (30 minutes)

Preferred Lifetime: 1800 (30 minutes)

Reserved

Prefix: fd1f:e377:cb11:45f6::

ICMPv6 Option (Route Information: Medium fdc6:a683:f464::/64)

Type: Route Information (24)

Length: 2 (16 bytes)

Prefix Length: 64

Flag: 0x00, Route Preference: Medium

Route Lifetime: 1800 (30 minutes)

Prefix: fdc6:a683:†464::


r/mikrotik • • 2d ago

MikroTik RouterOS x86 – Forgot Password, Can I Reset It Without Losing My Level 7 License?

Post image
49 Upvotes

I'm running MikroTik RouterOS x86 on a mini PC with an SSD and a Level 6 license.

I've forgotten the admin password. Is there any way to reset it without losing the existing Level 6 license?

I want to regain access without reinstalling RouterOS or losing my license.

Any suggestions?


r/mikrotik • • 2d ago

What about CC3232 anyone knows release date? Or any more powerful mikrotik than CCR2216?

6 Upvotes

r/mikrotik • • 2d ago

RDS to server via CRS504 speed limited

6 Upvotes

I've been reworking my system which is a 3x cluster of 16 core AMD machines connected to the RDS via a CRS504. Everything is connected with 25G.

It's connected fine enough.

But both on a container with iperf3 and NVMeoTCP I am getting 10-12Gibps rather than anything faster.

I've checked over the HW offload on the CRS and that's appears to be configured fine. All the links are syncing at 25G and there's not any errors. The CPU on both is not under significant load.

Can a port sync at 25G and only pass 10G?

Can you think of another reason it's struggling?


r/mikrotik • • 3d ago

[Solved] Looking to Hire Someone to Patch a Script

12 Upvotes

Alright... It is time.. We need this fixed and it is beyond my abilities...

We're looking to have the address-list update script we use patched or re-written to work with newer versions of RouterOS.. It stopped working in v7.13. We ran v7.12.2 until the beginning of September when the SSH issue came out so that it stayed working. Until that point there was nothing significant in the updates that affected our networks.

Most address-list update scripts remove/clear the address-list and then add the addresses back.. This doesn't work for us because we use it for white-listing as well as black-listing which breaks connections. A secondary reason is being able to see how long a particular address has been listed for.

I tried posting the script here but Reddit is breaking the line breaks.. Here is a pastebin for the script. https://pastebin.com/tMEkqYtf

The url line can be listed several times to update several lists at once.

Does this look like a simple fix or more complex? Where would be a good place to look for somebody to fix this? Any guesses on what we should expect to pay for this?

Edit: I'm enjoying people simply dumping our script into their favourite AI and it giving different reasons why it fails, (and the one, if I make a couple changes I'll see why/where it fails). I already know it fails on the fetch command..

[Issue] is wrong with your script.. No, that part is correct, there is a reason it was done that way. I know it is a terrible script and it was held together before with "bubblegum, hopes, and dreams". It broke a few times over the years with version updates and I patched it as I could.. How it calls and uses the array is one of my stumbling blocks, I understand that and I am trying to learn this "language" that keeps changing. I know it is a very inefficient (slow) script and there is likely a much better method to accomplish the goal, but *I* don't know what it might be. If it wasn't for the SSH issue we'd still be on v7.12.2, even though BGP is much faster on the current version. However somewhere along the way I did lose the timeout not resetting, so that was disappointing, it isn't worth the effort to figure out where/when that happened though.

None of the "AI" fixes actually fixed it though, and one didn't do anything at all.. I was serious about paying a smaller bounty if someone quickly fixed it using their chosen AI with minimal effort. I thought (maybe just hoped) it might be a simple fix for someone who understood the RouterOS language.


r/mikrotik • • 3d ago

Custom .npk for older mikrotik implemented

21 Upvotes

Hi,

I was fighting for quite some time with later updates for my older hAP ac2 and cAP AC devices because when using the newer mikrotik wifi package you only have hundrets of kb left for config and when automatically applying ssid-vlan settings (because capsman refuses!) I constantly run out of storage.

So I started patching routeros base images, generating my own signing signature, patching netinstall-cli to accept my own signing key and I was able to remove a few debug-only binaries like bash to free up more space!

But then I didnt stop there, I have heard there was an option package floating around and there was clear documentation online what files need to be provided by an option package so you can login with the user devel and the admin's password and with that you get root ssh access!

using this setup i was able to quickly send openwrt binaries for OLSRd (a local wifi mesh community in my city uses this protocol) and i was able to directly interact with routes, interfaces and much more.

After a lot of failures (and a broken reset button on one of my test devices), I managed to hack together a custom OLSR package for mikrotik, which even registers custom UI in WebFig and winbox and it runs the olsr daemon in the background and creates dynamic routes on the fly (that are not persisted to flash to not wear it out!)

I want to publish build instructions and how it works soon,

but before I do that, does anyone else have a wish that mikrotik simply doesnt fulfil and what I could try to implement on my own now?

root access - check
olsr - check
vlan support on AC devices with the wifi package / caps mode? - i want to try that :)


r/mikrotik • • 3d ago

Question about vlans and WireGuard

2 Upvotes

Here is the hardware setup. At the main location, an RB5009. At the remote site, an RB2011.

I've been looking to redo my network configuration to isolate IoT devices and clean up network traffic. I've done some research and I think I have the vlan setup figured out, in and of itself, when contained to one router/location, but I want to expand this to two sites.

Here is what I would like to do, but I'm not sure if it is possible, or how to. I'm sharing how I ?think? It should layout, but I'm not sure. I apologize if my terminology isn't correct.

At the main location, I want vlans to separate devices.

  • Vlan10 = Management (192.168.10.x)
  • Vlan20 = Trusted (192.168.20.x)
  • Vlan30 = Guest (192.168.30.x)
  • Vlan40 = Cameras (192.168.40.x)
  • Vlan50 = Gaming (192.168.50.x)
  • Vlan99 = IoT (192.168.99.x)

I want this setup to clean up network traffic and isolate/segment as needed.

I'd like the remote site to connect to the main site via WireGuard. Here is my thoughts, but I may be wrong.

  • Vlan110 = Remote Management (192.168.110.x)
  • Vlan120 = Remote Trusted (192.168.120.x)
  • Vlan130 = Remote Guest (192.168.130.x)
  • Vlan140 = Remote Camera (192.168.140.x)
  • Vlan150 = Remote Gaming (192.168.150.x)
  • Vlan199 = Remote IoT (192.168.199.x)

For example's sake, let's say that the public IP for main is 1.1.1.1 and the public IP for remote is 2.2.2.2

In the desired end game, when any device accesses the internet and does a "whatismyip", I'd like it to report 1.1.1.1, no matter if it is coming from main or remote.

Some questions I have is do I need vlan10 and vlan110 or just make vlan10 in remote? Since "everything" will be going through main, do I need to set DHCP up only in main or let remote act as the DHCP server for the devices there?


r/mikrotik • • 4d ago

[Solved] Having trouble isolating PoE interface on CRS305-1G-4S+

6 Upvotes

Hello,

I am having an issue where I am running into trouble keeping the PoE interface isolated from the rest of the bridge ports on the switch. I really only want to use the PoE port as the management port.

As expected, in its default state, with ether1 assigned to the default bridge, having both the SFP+ cable and the RJ-45 connected creates a network loop, which my Unifi controller handles. I adjusted the STP cost so that this blocks the slower port, not the faster one. However, Unifi loves to endlessly nag you about a simple STP port block.

I went the easy route and just removed ether1 from the bridge. This clears the STP block as expected and I still have management access to the switch. The only issue is this seems to cause some sort of odd link flapping behavior where each port alternates connecting with the management IP.

Any suggestions? I did some looking online and feeling a bit lost at the moment.

Should i set up a secondary bridge interface for the ether1 and assign the management MAC to that? Or should I do something else?

I don't want to cut off my access to the switch management if possible.

Thanks


r/mikrotik • • 4d ago

Running IPv4 over IPv6-only on MikroTik routers or how I avoided avoiding IPv4 charges on free-tier cloud VMs

5 Upvotes

AI disclosure: I used AI coding tools (Claude) to help optimise the code, write the RouterOS scripts and draft docs. I profiled the hot paths myself and found the problematic syscalls, then reduced them. That improved stability, throughput and CPU usage. I tested the changes on my own hardware (MikroTik Chateau 5G). The original TAYGA code and the merged distro patches are by their original authors.

Why this fits a homelab: it lets a home network on an IPv6-only 5G uplink still reach IPv4 sites. It runs on a MikroTik router, OpenWrt, Debian/Ubuntu, FreeBSD, or in a container.

My fixed-line connection here in Germany kept dropping, so I wanted a replacement that didn't rely on the same local copper loop. Starlink raised prices recently, so I ended up going the 5G route with a MikroTik Chateau 5G R17 ax.

I tested three SIMs first. O2 was unstable both in the router and in my iPhone, while Vodafone and Deutsche Telekom were both solid, so the issue was definitely O2's local cell rather than the hardware.
The catch with Telekom is that getting 5G SA requires an IPv6-only APN/PDP context if you leave IPv4 enabled, the modem drops back to 5G NSA. That gives you clean native IPv6, but obviously breaks IPv4-only sites and services unless the router runs CLAT / 464XLAT.

I started from upstream TAYGA (0.9.6, originally Nathan Lutchansky's daemon), pulled together the patches Debian/other distros and FreeBSD have been carrying separately, and added Linux TUN GSO/GRO/checksum offload (IFF_VNET_HDR) so TCP super-packets get translated in-place instead of one MTU-sized packet at a time.

A few details on what's in the fork:

  • TUN offload: Configured via tun-offload off|tcp|auto (defaults to auto), or CLAT_OFFLOAD=auto in the container. You can check whether your kernel/TUN driver supports it with tayga --check-offload.
  • Benchmarks: Included benchmark-clat.sh and benchmark-matrix.sh in the repo. On my Chateau 5G R17 ax running inside a RouterOS container, turning offload on dropped syscalls from ~62k/s to ~2.8k/s and cut translator CPU usage by up to 4x at 300 Mbps. (It doesn't give containers a RouterOS hardware fast-path, so veth/bridge, LTE/MBIM, and firewalling still take their normal CPU share.)
  • Deployment & builds: Added RouterOS scripts and setup notes for running it directly on MikroTik, plus static amd64/arm64 binaries, container images, and packages for Debian/Ubuntu, FreeBSD, RHEL/CentOS, and OpenWrt on the Releases page. There's also a GSO/GRO tuning doc in the repo.

Use in IPv6 Cloud VM

Another use case is running it on an IPv6-only cloud VM, like a free-tier GCP Compute Engine e2-micro instance with no external IPv4 attached (to avoid paying for an IPv4 address or Cloud NAT). Running TAYGA locally as a CLAT daemon pointed at a public NAT64 gateway (such as nat64.net) lets IPv4-only tools, APIs, and package repos on that VM still reach the IPv4 internet while keeping the instance completely free.

If anyone else is running IPv6-only 5G/LTE links on MikroTik, OpenWrt, or FreeBSD, I'd appreciate real-world testing.


r/mikrotik • • 5d ago

O2 otika + Mikrotik RouterOS 7

Thumbnail
gallery
16 Upvotes

Dobrý den,

mám optický internet od O2 a router MikroTik E50UG, který je zapojený hned za krabičkou od CETIN. Router jsem nastavil defaultním nastavením a k přihlašení jsem požil údaje z https://www.o2.cz/podpora/internet/pevny-internet-modemy-nezakoupene-u-o2#nastaveni-modemu-technologie-vdsl-bonding-a-fiber-optika-a362745

Internet jede dobře a jeho rychlost odpovídá nasmlouvané rychlosti.

Přesto mám dva dotazy:

- Proč u PPPoE mám červenou ikonku, jako by se nedokázal přihlásit ke službě?

- Stav DHCP Client stále ukazuje Searching. Je toto správné chování?

Děkuji předem za pomoc.


r/mikrotik • • 5d ago

My experience: RDS Rose with 14mm U.2 NVMe disks

Post image
26 Upvotes

I bought a load of NVMe before the recent spike and I had been struggling to get them to work reliably with the servers I built (something to do with using Minisforum boards with mobile AMD CPUs).

Tired of my Proxmox stalling with PCIe errors I decided to buy the RDS. Knowing full well that my chunky U.2 drives were not going to fit in the 7mm slots, they fit in the rails fine but snag on the connector above.

So, I bought a bag of really short u.2 SFF8639 male to female extenders from AliExpress and used them to stand the drives away from the backplane. The drives now slide in fine, but they're sticking out 25mm from the case and only held in by friction at the moment. I am thinking about using kapton tape to hold them in for extra jank points.

I get 10 drives instead of 20, but that's also exactly how many drives I have. If I was being really janky I could get some long, flexible U.2 extension cables and sit more drives on top of the unit, but I only have 10 drives and I don't plan to buy more at this stage. There's just enough space between the drives to fit a cable past them.

I've made 8 of them into a RAID10 which I will export as NVMeoTCP and hopefully that will keep my Proxmox cluster fed. I believe that multiple hosts can share the same NVMeoTCP if they're aware of each other, so that's the plan.

I also setup the Container/app system, I intend to use the Rose with Technitium as either my primary or secondary DNS in cluster mode. That part was slightly annoying, to enable "container system mode" you have to physically press the reset button on the router. Given it's a server and the container software is installed, it seems odd that container mode is disabled by default.

The rack mounting system is interesting, with weird hanging extenders instead of rails. It's also disappointing that you can only fit the connections at the rear of the unit and SSDs at the front. Or rather the short rack ears only fit at the SSD end and the extenders only at the rear. So, I have the system mounted in reverse and it's set back >4 inches from the two CRS504s above it.


r/mikrotik • • 5d ago

[Pending] 40 routers at retail sites and remote logging is either silent or a firehose

8 Upvotes

We push logs from every store router to one syslog box, but with the default topics it's mostly DHCP noise and the firewall drops we care about get lost in it. I've tried trimming topics per action, but I either lose the drops or keep the noise. Which topics do you send to remote and what are you collecting them in at that scale?


r/mikrotik • • 6d ago

Adding more 2.5g and 10g to my network.

14 Upvotes

I have an RB5009 connected to a CRS310 via SFP+. The second SFP+ on the CRS310 is connected to one of my servers. I have pretty much maxed out my 2.5g ports and i would like to connect a second server via 10g.

What Mikrotik device can I add to give me more 2.5g ethernet ports and a free sfp+ for the second server?


r/mikrotik • • 5d ago

O2 otika + Mikrotik RouterOS 7

Thumbnail gallery
0 Upvotes

Dobrý den,

mám optický internet od O2 a router MikroTik E50UG, který je zapojený hned za krabičkou od CETIN. Router jsem nastavil defaultním nastavením a k přihlašení jsem požil údaje z https://www.o2.cz/podpora/internet/pevny-internet-modemy-nezakoupene-u-o2#nastaveni-modemu-technologie-vdsl-bonding-a-fiber-optika-a362745

Internet jede dobře a jeho rychlost odpovídá nasmlouvané rychlosti.

Přesto mám dva dotazy:

- Proč u PPPoE mám červenou ikonku, jako by se nedokázal přihlásit ke službě?

- Stav DHCP Client stále ukazuje Searching. Je toto správné chování?

Děkuji předem za pomoc.


r/mikrotik • • 6d ago

7.25.1: ACME auto-renewal renews the cert, but www-ssl / api-ssl keep serving the old one

21 Upvotes

Is anyone else seeing this? It looks like a regression in 7.25.1.

2x CRS310-8G+2S+, 1x CRS326-24S+2Q+, 1x CCR2116

Built-in ACME client (/certificate add-acme) against a private ACME CA, HTTP-01, 60-day certs, the cert is assigned to www-ssl and api-ssl. RouterOS auto-renews at 80% of the cert's lifetime.

Monitoring warned me that a switch's cert would expire in 2 days. On the box, /certificate print detail showed the ACME-managed cert had already auto-renewed 10 days earlier: new serial, valid for 50+ more days, acme-status="next update at …". But openssl s_client against :443 and :8729 still returned the old cert. A second device that auto-renewed a few days later had the same problem.

/ip service disable www-ssl,api-ssl then enable: still served the old cert
/ip service set www-ssl,api-ssl certificate=none, then setting it back to the ACME cert: still served the old cert

The cert store only contained the new cert, so the old one seems to be cached somewhere in the service process.

I had to remove the cert, re-enroll it via acme, and put the new cert on the services to get the new cert to be presented.

7.25 has "certificate - refactor certificate internal processes", which might be related, but that's a guess.


r/mikrotik • • 7d ago

[Pending] cAP ax - Random Client Disconnects

4 Upvotes

Let's start this off by saying this cAP ax has been stable for quite some time on an older version. (7.14.3)

I've fought with this once before, then simply rolled back and called it a day... However, I'm not willing to stay on an older version any longer. I'm now on 7.25.1, but this also impacted me on 7.24.6 as well as 7.20.x, and 7.21.x.

The symptom and related details:
- Various clients (on 2.4GHz across three different SSIDs) randomly disconnect. They reconnect quickly thereafter, but this connection hiccup is bothersome depending on the device and timing.
- 5GHz clients don't seem to be impacted.
- The same config on a cAP ac functions fine.
- The same config on an older software/firmware functions fine on the cAP ax.
- The clients all function fine on a similar config on a GrandStream GWN7665.
- Only one AP serves the home.
- 42 clients are generally connected at a time. (almost 40 of them being on 2.4GHz)
- Only Log entry is : xx:xx:xx:xx:xx:xx@wifi_name (SSID) disconnected, connection lost, signal strength xx, channel 2462/xx
- Band N or AX makes no difference to behaviour. (Working cAP ac used 'N', GrandStream used 'AX', the cAP ax tested both.)
- Signal Strength ranges from -40 to -60 for most clients. There are a couple at -70 range. Signal Strength does not seem to correlate with the disconnections, as strong clients still suffer.
- Toggling 802.1k/v and Management Protection makes no difference.
- cAP is powered by a passive PoE Injector. 24V and 48V tested, no difference. Also tested powering the cAP directly, no difference.

If you're still with me, my goal is to resolve the instability... I blame the cAP ax based on the fact it used to work, the cAP ac and GrandStream both work... If there's any suggestions, fixes, related experiences I'd like to know.

# 2026-11-15 20:01:52 by RouterOS 7.25.1
# software id = xxxx-xxxx
#
# model = cAPGi-5HaxD2HaxD
# serial number = xxxxxxxxxxx
/interface list
add comment=defconf name=LAN
/ip neighbor discovery-settings
set discover-interface-list=LAN
/interface wifi channel
add band=2ghz-n disabled=no frequency=2412,2437,2462 name=2_N_DSSS width=20mhz
add band=5ghz-ax disabled=no frequency=5180,5000,5220,5240,5745,5765,5785,5805,5825 name=5_AX_NoDFS skip-dfs-channels=all width=20/40/80mhz
add band=5ghz-ac disabled=no frequency=5180,5000,5220,5240,5745,5765,5785,5805,5825 name=5_AC_NoDFS skip-dfs-channels=all width=20/40/80mhz
add band=2ghz-ax disabled=no frequency=2412,2437,2462 name=2_AX_DSSS width=20mhz
/interface wifi security
add authentication-types=wpa2-psk disabled=no encryption=ccmp group-encryption=ccmp management-protection=disabled name=Sec_iot
add authentication-types=wpa2-psk disabled=no encryption=ccmp group-encryption=ccmp management-protection=disabled name=Sec_ninja
add authentication-types=wpa2-psk disabled=no encryption=ccmp group-encryption=ccmp name=Sec_base
/interface wifi steering
add disabled=no name=disable rrm=no wnm=no
/interface bridge
add comment=defconf frame-types=admit-only-vlan-tagged name=BR0-vLAN vlan-filtering=yes
/interface vlan
add interface=BR0-vLAN name=vlan12 vlan-id=12
/disk settings
set auto-media-interface=BR0-vLAN
/interface list member
add comment=defconf interface=BR0-vLAN list=LAN
add comment=defconf interface=ether1 list=LAN
/interface wifi datapath
add bridge=BR0-vLAN disabled=no name=dp_vlan10 vlan-id=10
add bridge=BR0-vLAN disabled=no name=dp_vlan22 vlan-id=22
add bridge=BR0-vLAN disabled=no name=dp_vlan12 vlan-id=12
/ip dhcp-client
add interface=vlan12 name=client
/system clock
set time-zone-name=America/Vancouver
/system package update
set channel=long-term
/system routerboard mode-button
set enabled=yes on-event=dark-mode
/system script
add comment=defconf dont-require-permissions=no name=dark-mode owner=*sys policy="" source=\
    "\r\
    \n   :if ([system leds settings get all-leds-off] = \"never\") do={\r\
    \n     /system leds settings set all-leds-off=immediate \r\
    \n   } else={\r\
    \n     /system leds settings set all-leds-off=never \r\
    \n   }\r\
    \n "
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN
/interface wifi configuration
add channel=2_N_DSSS country=Canada datapath=dp_vlan12 disabled=no dtim-period=3 mode=ap multicast-enhance=disabled name=CFG_base2 security=Sec_base security.management-protection=disabled .wps=disable ssid=base2SSID steering=disable
add channel=5_AC_NoDFS country=Canada datapath=dp_vlan12 disabled=no dtim-period=3 mode=ap multicast-enhance=disabled name=CFG_base5 security=Sec_base security.management-protection=disabled .wps=disable ssid=base5SSID steering=disable
add datapath=dp_vlan22 disabled=no mode=ap multicast-enhance=disabled name=CFG_ninja5 security=Sec_ninja ssid=Ninja5 steering=disable
add datapath=dp_vlan22 disabled=no mode=ap multicast-enhance=disabled name=CFG_ninja2 security=Sec_ninja ssid=Ninja2 steering=disable
add datapath=dp_vlan10 disabled=no hide-ssid=yes mode=ap multicast-enhance=disabled name=CFG_iot2 security=Sec_iot ssid=iotSSID steering=disable
/interface wifi
set [ find default-name=wifi2 ] configuration=CFG_base2 configuration.mode=ap
set [ find default-name=wifi1 ] configuration=CFG_base5 configuration.mode=ap name=wifi5
add configuration=CFG_iot2 configuration.mode=ap mac-address=00:00:00:00:00:00 master-interface=wifi2 name=wifi_iot2
add configuration=CFG_ninja2 configuration.mode=ap mac-address=00:00:00:00:00:00 master-interface=wifi2 name=wifi_ninja2
add configuration=CFG_ninja5 configuration.mode=ap mac-address=00:00:00:00:00:00 master-interface=wifi5 name=wifi_ninja5
/interface bridge port
add bridge=BR0-vLAN comment=defconf frame-types=admit-only-vlan-tagged interface=ether2 pvid=12
add bridge=BR0-vLAN comment=defconf frame-types=admit-only-vlan-tagged interface=ether1 pvid=12
/interface bridge vlan
add bridge=BR0-vLAN tagged=BR0-vLAN,ether1,ether2 vlan-ids=12
add bridge=BR0-vLAN tagged=ether1,ether2 vlan-ids=10
add bridge=BR0-vLAN tagged=ether1,ether2 vlan-ids=22

r/mikrotik • • 7d ago

MikroTik CRS418 electrical hum?

Thumbnail vocaroo.com
3 Upvotes

Can someone tell me if this is a normal sound for the CRS418 or not? The fans whirring are expected to me but there’s a steady 120hz electrical hum that is quite annoying.

The fan speed is normal around 700rpm, I’ve tried turning off poe and rotating between the psu plugs on the back but I still hear it.


r/mikrotik • • 7d ago

RouterOS x86 - Software queues on 10G WAN causes panic

5 Upvotes

This is going to be a long post, but I've been fighting this for a year now. I blamed my upstream provider for slow long lived TCP connections because they had not shown me anything from their side until recently. They sent info that shows the packet loss I've been seeing is not coming from their equipment. In digging into the issue with the new information, it looks like I have come across the same bug others have reported on the MikroTik forums.

TL;DR: Any queue on a 10G WAN panics my 72 thread x86 RouterOS box in minutes, where an identical 56 thread box never crashes even with prod's traffic replayed at 100x.

Specs:

  • Supermicro X10DRU-i+
  • 2x Xeon E5-2697 v4 w/ 72 threads (HT enabled in BIOS)
  • 64GB DDR4-2133 ECC RAM
  • WAN is onboard Intel 82599 (ixgbe) with an LC optic
  • LAN is an Intel E810 4 port going to two hosts (2 ports each)
  • 4 port 1GbE Realtek card for IPMI to two hosts (1 port each)
  • RouterOS 7.24.6
  • Normal traffic is around 60 Mbit/s (~10k PPS), CPU sits at 0-6%

The original problem:

With the default only-hardware-queue, the WAN port's tx-queue-drop counter goes up (~0.05-0.1% of packets). It does not affect 95% of traffic, as it's short lived TCP connections, but for clients far away (EU or Asia), TCP downloads drop to a crawl and some completely time out. One test from a VM behind the x86 router (in the US) to a UK box was ~2Mbit/s with cubic. MTR through the same path shows 0 loss, it's only long TCP connections that get hit. The Intel 82599 TX ring fills on bursts and there's no software queue in front of it to deal with it.

The normal fix is to put a software queue on the interface. On my router, that causes a panic. multi-queue-ethernet-default panicked it twice in testing, within 3-5 minutes. I tried a plain pfifo with limit 2000 instead, and it went 11 minutes, then panicked. While it was up, the drops stopped completely. Free memory was flat at 60GB the whole time, I sampled every 2 seconds up to the last second. Full debug logging to a remote syslog showed nothing before or after the panic.

Side note: Before even putting this box into production a year ago, I ran Memtest 86 for a day and found no issues.

I have a spare box at home with the same board, same BIOS, same cards in the same slots, same RouterOS build and packages and NAT + queue config imported. Only differences are 56 threads instead of 72, and 256GB with 4 memory channels per CPU instead of 64GB with 2. I could not make it crash. I ran iperf at 9.8Gbit/s, added 90ms delay, pulled the link under load, flipped the queue on and off a bunch of times under load, and captured 6 minutes of prod's real WAN traffic to replay it through the lab at up to 100x speed (1.27 Gbit/s, 320k pps, 24k connections). Nothing. Same with pfifo. So it isn't the traffic or the config.

The only thing that ever shows on the console is "Kernel panic - not syncing: System is deadlocked on memory" with a few "No irq handler for vector" lines above it. The capture never finishes for a dump, no panic log gets written, no autosupout.rif.

I also compared the shipped ixgbe 5.19.9 and ice 1.13.7 against Intel's source built the same way. The TX path, ring sizes and memory allocation are the same as upstream, so I don't think the NIC drivers are the cause. Current stable 7.25.1 and long term 7.24.6 still ship the same 5.6.3 kernel and the same driver versions, so upgrading won't change anything here.

My ticket is SUP-227846, MikroTik replied that it's linked to an existing open bug with no ETA.

Other tickets I found for the same issue: SUP-214471 (x86, 7.22.2, forum post says MikroTik confirmed it), SUP-67221 (x86 7.1 back in 2021) and SUP-189835 (ARM64). There's also the "Really bad queue bug in v7 on x86" forum thread from 2023.

For anyone running RouterOS on x86 with lots of cores:

  • Are you running a software interface queue on a 10G port without problems? What are your specs?
  • Anyone tried the same box with Hyper-Threading off and seen the problem go away?

If you've hit this and logged a ticket, mentioning this ticket number on yours or adding to the existing bug might help. If anyone else has additional insight, I would appreciate any ideas as I'm currently just using BBR on my VMs, which is a band-aid and not a fix.

Edit 11/19: Turning off Hyper-Threading indeed fixed it for me.

After dealing with this for a year, I finally got it to crash outside of prod. Previous lab attempts with virtio NICs never reproduced anything, and it turns out RouterOS's virtio driver only uses 1-2 TX queues, so it was never going to crash. So I passed the Intel 82599 through to a RouterOS 7.24.6 x86 VM with the same 72 thread CPU layout and 64GB RAM as prod, then replayed a capture of my actual WAN traffic plus big TCP downloads.

CPUs / TX queuesqueueresult
72 / 63hardware onlyfine for 30 min, but 655k tx-queue-drops (same as prod)
72 / 63multi-queue-ethernet-defaultdied in 52 seconds
72 / 63multi-queue-ethernet-defaultdied in 39 seconds
36 / 36 (HT off)multi-queue-ethernet-defaultfine for an hour, 0 drops
36 / 36 (HT off)multi-queue-ethernet-defaultfine for an hour, 0 drops

After getting this confirmation and not just running on a theory, I turned HT off on the prod router, let it sit on the hardware queue for an hour and a half, then switched WAN to multi-queue-ethernet-default. Zero new drops since then, including a few minutes of a 500Mbps download, and it's now well past the 3-12 minutes it used to take to panic. I'll update again once it's run for a day.

The box runs at like 0-6% CPU, so losing HT doesn't matter for me.

Still a RouterOS bug as far as I can tell, this is just a workaround.


r/mikrotik • • 8d ago

Is RB5009 router capable if my internet is 1 Gbps and load balance it with CAKE

17 Upvotes

I plan to buy RB5009 and I need an testimony if this router capable enough to handle the CAKE algorithm for load balancing, please share your experience


r/mikrotik • • 7d ago

Huawei MA5671A GPON ONT SFP module in a CRS418

1 Upvotes

Hi,

I've been using a MA5671A GPON on a CRS109 for a couple of months without any issues. I recently upgraded to a CRS418. The device works fine, but as soon as I moved the SFP module into it, it became unstable: hangs at reboot, fault goes on/off, fans spin at full throttle, ...

I tried the default firmware/OS and upgraded to the latest version without any change.

Any idea?