Community discussions

MikroTik App
 
klam69
just joined
Topic Author
Posts: 3
Joined: Tue Oct 05, 2021 5:29 pm

Error while importing configuration

Tue Oct 05, 2021 5:44 pm

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)

Please advise!
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 3297
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

Re: Error while importing configuration

Wed Oct 06, 2021 10:32 am

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.
 
klam69
just joined
Topic Author
Posts: 3
Joined: Tue Oct 05, 2021 5:29 pm

Re: Error while importing configuration

Wed Oct 06, 2021 5:04 pm

Thank you for your response!

According to:
https://help.mikrotik.com/docs/display/ ... g+RouterOS
"Yes, you can downgrade RouterOS, but only until the factory installed version, which you can check with this command: /system/routerboard/print"

routerboard: yes
model: RB2011iLS
revision: r3
serial-number: D5290C0D2F6C
firmware-type: ar9344
factory-firmware: 6.47.1
current-firmware: 6.47.1
upgrade-firmware: 6.48.4

Does this mean I already have the oldest possible RouterOS version?
 
klam69
just joined
Topic Author
Posts: 3
Joined: Tue Oct 05, 2021 5:29 pm

Re: Error while importing configuration

Wed Oct 06, 2021 8:42 pm

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.

Source: https://wiki.mikrotik.com/wiki/Manual:Master-port

"...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!

~~~ OLD SCRIPT ~~~
/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
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 3297
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

Re: Error while importing configuration

Wed Oct 06, 2021 9:31 pm

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.

Who is online

Users browsing this forum: malks and 18 guests