MikroTik Solutions

Files in defconf/ of tip
Login

Files in defconf/ of tip

Files in directory /defconf from the latest check-in


I’ve collected many default configuration files here, pulled from a variety of RouterOS devices. There is no pattern to the ones available; they’re archived haphazardly, as I come across them or they’re sent to me.

The intent is to host an archive taken from a wide range of RouterOS device types, presented here for educational and reference value.

If you have configuration files you want me to include, you can send them to this repository’s forum. I want fully-stock files, ideally produced via

/export show-sensitive terse file=MODEL-OF-DEVICE.rsc

I like terse mode for this type of thing because it reduces the number of pointless whitespace differences when comparing two configurations. This lets you “diff” two different files to get a sense of the true distinctions in the configurations without being overwhelmed by all of the defconf values that are identical between them.

I remove any local identifiers before posting configs here. The stock version should have few such details:

  1. The MAC used by the bridge under the default auto-mac=no setting.
  2. The software ID and hardware serial numbers in the header comment.
  3. The time zone set for the NTP client during Quick Set configuration.
  4. Country settings applied in Quick Set for WiFi radios.

I also remove things like the “/system note” setting since it’s a change between defconf and the moments shortly after first boot where it asks if you want it to not show that note ever again.

Where I have two or more configurations for a given device, it is generally either to show off multiple Quick Set modes or hand-modified variations to the same end. For example, RB960PGS-router is the out-of-the-box configuration, which I then hacked by removing all “router” configuration elements to produce the -switch variant.

This archive is an alternative to what you get from:

/system/default-configuration print file=MODEL-OF-DEVICE.rsc

MikroTik have provided essentially the same text here, in the inline file links from that documentation page.

The primary problem with these versions is that they’re laced through with RouterOS scripting code. It’s largely conditional constructs to select among available alternatives and loops to handle a sequence of directives that differ in some small detail, as with the interface numbers. While you can produce the above file set from these, you need to mentally run the code, selecting branches and unrolling the loops. I find that less helpful than the above versions in general, especially when comparing to “flattened” /export output.