Page 1 of 1

how to move setting from one Mirotik router to another one

Posted: Mon Oct 03, 2011 5:27 pm
by namo
I have a Mikrotik router that has certain setting and I want to move all the setting of this router to another one.

Before I used the backup file but in this method I have to check all the setting that involve Ethernet interfaces because the each router interfaces has different mac addresses so it doesn't recognize any interface and set it as unknown.

what should I do?

Re: how to move setting from one Mirotik router to another o

Posted: Mon Oct 03, 2011 5:29 pm
by fewi
http://wiki.mikrotik.com/wiki/Manual:Co ... Management

Use "/export" and then edit out all unique settings, such as MAC addresses.

Re: how to move setting from one Mirotik router to another o

Posted: Mon Oct 03, 2011 5:37 pm
by namo
what about if I change the mac address of two router so they become mached, and then backup the first router and use the backup file in the second router?

Re: how to move setting from one Mirotik router to another o

Posted: Mon Oct 03, 2011 8:37 pm
by fewi
From the very link I posted:
The configuration backup can be used for backing up MikroTik RouterOS configuration to a binary file, which can be stored on the router or downloaded from it using FTP for future use. The configuration restore can be used for restoring the router's configuration, exactly as it was at the backup creation moment, from a backup file. The restoration procedure assumes the cofiguration is restored on the same router, where the backup file was originally created, so it will create partially broken configuration if the hardware has been changed.
So no, using a backup file on anything that isn't the router the backup was created on is not officially supported.

Re: how to move setting from one Mirotik router to another o

Posted: Thu Oct 06, 2011 4:57 pm
by namo
From the very link I posted:
The configuration backup can be used for backing up MikroTik RouterOS configuration to a binary file, which can be stored on the router or downloaded from it using FTP for future use. The configuration restore can be used for restoring the router's configuration, exactly as it was at the backup creation moment, from a backup file. The restoration procedure assumes the cofiguration is restored on the same router, where the backup file was originally created, so it will create partially broken configuration if the hardware has been changed.
So no, using a backup file on anything that isn't the router the backup was created on is not officially supported.
It would be easier to change the mac address in the new router, then use the export file. How can I change the mac address of certain Ethernet port?

Re: how to move setting from one Mirotik router to another o

Posted: Thu Oct 06, 2011 6:49 pm
by cbrown
You have to modify it from the CLI.

/interface ethernet set ehter1 mac-address=XX:XX:XX:XX:XX:XX

But if you set it then overwrite it with the export you are back to square one.

Re: how to move setting from one Mirotik router to another o

Posted: Thu Oct 06, 2011 6:54 pm
by fewi
Don't import binary backups on other devices than the one it was taken on. The manual specifically says not to. How does "it's easier" overrule "don't do it, the manual says so"? Being lazy warrants knowingly breaking stuff?

Re: how to move setting from one Mirotik router to another o

Posted: Thu Oct 06, 2011 7:02 pm
by cbrown
How does "it's easier" overrule "don't do it, the manual says so"? Being lazy warrants knowingly breaking stuff?
He's right and he already told you how to do it. Export the config and then remove the mac address from the export.

It is not that hard and only takes a minute to do.

Re: how to move setting from one Mirotik router to another o

Posted: Sat Oct 15, 2011 12:28 am
by namo
I see.
So it is the best that do export to file and and change all to the mac address to the one in the new device.

Re: how to move setting from one Mirotik router to another o

Posted: Sat Oct 15, 2011 2:11 am
by fewi
No. Just delete all references to MAC addresses, so that the default stays: what the MAC of the current router is. Much easier, and less error prone.