Miigrate from 951G-2HnD to RB962UiGS-5HacT2HnT

Hi,

I’ve been using 951G-2HnD for several years now, excellent product. Recently I got my hand on the newer RB962UiGS-5HacT2HnT.
Question is simple. Is there an “easy” way to migrate all config from old to new mikrotik?

I tried export on old

export verbose file=export_20210808
export verbose file=export_compact_20210808 compact

Both files are identical (checked with notepad++).

and in new:

import file-name=export_20210808.rsc verbose=yes

But I immediately receive error:

#line 6
/interface bridge
#line 7..10
add ageing-time=5m arp=enabled arp-timeout=auto auto-mac=yes dhcp-snooping=no \
    disabled=no fast-forward=yes forward-delay=15s igmp-snooping=yes \
    igmp-version=2 last-member-interval=1s last-member-query-count=2 \
    max-message-age=20s membership-interval=4m20s mld-version=1 mtu=1500 \
expected end of command (line 4 column 51)

Both RouterOS are on the same version - 6.48.3 (stable).

Is there a better approach recommended? Maybe export section by section to be sure everything is as it should be?

What are your experiences/approaches?

Thank you and best regards,
Mario

Specifying both verbose and compact makes no sense. The default for the last couple of years has been compact so /export file=somename should be sufficient.

Make sure the target device has no configuration at all or the import will likely fail due to conflicts. With different models there may be some incompatible differences - if this is the case you can either fix the offending statement in the export and import the file again starting at the failed line, or remove the problematic statements and fix the configuration after the remainder of the configuration has been imported.

Start with a blank router.
Open config in an editor.
Cut/past line by line.

Post line that fails here.

Or better yet: start configuring the new device from defaults and only change or add settings needed. And try to stick to new way of configuring it. Chances are that RB951 setup still contains remains of ancient defaults which were very likely far worse than current ones. Or contains some unnecessary bloat which used to be recomended here and there.

That’s it. I am doing the similar thing. Export verbose and then copy paste only wanted parts by blocks to the new device without any configuration.

Caro Mario,
per fare una migrazione “adeguata”…
ops, sorry…

for do a “adequate” migration, reply first to this questions:

  1. Old device RouterOS version?

  2. New device RouterOS version?

  3. Certificates inside?

  4. User-Manager Database inside?

  5. The Dude Database inside?

  6. SSH host key used?

  7. HotSpot files inside?
    :sunglasses: Users inside?

  8. and 2) you already say 6.48.3
    for 3) 4) 5) 6) 7) and :sunglasses: I assume you have nothing to keep between the RouterBOARDs

open terminal and create file mario.rsc with this command, do not add any other parameters:

/export file=mario

Copy the file from old to new RouterBOARD inside FLASH folder, not on the root,
and paste this command on new device terminal:

/system reset-configuration skip-backup=yes keep-users=no no-defaults=yes run-after-reset=flash/mario.rsc

After that, the only parts you have to config are the 5GHz not present on previous device.