I am trying to import a configuration from a broken mikrotik router to a new/replacement mikrotik router. Both routers are the same model, mikrotik rb2011ils-in. I tried to import the config without making any edits but it did not work. Now I am trying to enter the import config line by line and get the following error at this point:
set [ find default-name=ether3 ] master-port=ether2-master
expected end of command (line 1 column 34)
Sounds like you have config from older routerOS (Think this was changed in 6.41), were master port was used, and you have a newer software that do not use master port longer
You can try to downgrade the router to some below 6.41, restore config, then upgrade.
During my attempt to manually configure the router via WinBox, following the configuration commands, I have stumbled upon a potential cause for the error I am receiving.
“…but prior to RouterOS v6.41 port switching had to be done using a property called master-port.”
“To solve these issues, the master-port property had to be REPLACED with a more robust and convenient concept - a bridge.”
The page also mentions a script that will automatically convert old configurations to newer ones. If anyone could help me locate the auto-converter or show me how to reformat the old config, I would be eternally greatful!
/interface ethernet
set [ find default-name=ether2 ] name=ether2-master
set [ find default-name=ether3 ] master-port=ether2-master
set [ find default-name=ether4 ] master-port=ether2-master
set [ find default-name=ether5 ] master-port=ether2-master
set [ find default-name=ether6 ] name=ether6-master
set [ find default-name=ether7 ] master-port=ether6-master
set [ find default-name=ether8 ] master-port=ether6-master
set [ find default-name=ether9 ] master-port=ether6-master
set [ find default-name=ether10 ] master-port=ether6-master
It looks that you then try to import a config from an older other router to a new router.
The new router can not be downgraded to lower than 6.47.1 so my suggestion will not help (only if you find an older router with <6.41)
You can manually convert the config. Post it here and some one may be able to help you.
Also upgrade your router to latest 6.47.x is a good idea.
You need to make a bridge and connects ports/IP/DHCP config etc to the bridge. So there are more to do than just fix the error show above.