Community discussions

MikroTik App
 
mblfone
newbie
Topic Author
Posts: 36
Joined: Sun Feb 02, 2014 2:22 am

Update config from 6 to 7

Mon May 29, 2023 2:04 am

Hello,
I am trying to upgrade a router from 6 to 7. I had hopes that I could simply copy and paste the configuration in sections. As an example, when I open a terminal in V7, go to /ip firewall filter and paste the following config:

add action=drop chain=input dst-port=22 protocol=tcp src-address-list=\ssh_blacklist

the terminal responds as follows:

/ip/firewall/filter> add action=drop chain=input dst-port=22 protocol=tcp src-address-list=\ssh_blacklis
[Safe Mode taken]
line 3 of 3> MCPA( B/A

I don't know why it is hammering the end of my text, but this will make a very long process if I have to type all the code in on every router by hand and troubleshoot all of the syntax errors that will certainly ensue.

Does anyone have an easier way?

Thanks,

Scott
 
holvoetn
Forum Guru
Forum Guru
Posts: 6759
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: Update config from 6 to 7

Mon May 29, 2023 2:09 am

Usually it is as simple as upgrade to ROS7 and that's it.
Config is being upgraded automagically for most parts.

So start from a working ROS6 config.
Upgrade your device.
Check config for missing parts (which normally should not be the case, except maybe for some fancy routing stuff).
Last edited by holvoetn on Mon May 29, 2023 2:10 am, edited 1 time in total.
 
User avatar
own3r1138
Forum Veteran
Forum Veteran
Posts: 727
Joined: Sun Feb 14, 2021 12:33 am
Location: Pleiades
Contact:

Re: Update config from 6 to 7

Mon May 29, 2023 2:10 am

What is src-address-list=\ssh_blacklist in you command? A brake line from your export?

Maybe you could use the import by file command.
import file-name=file.rsc
 
mblfone
newbie
Topic Author
Posts: 36
Joined: Sun Feb 02, 2014 2:22 am

Re: Update config from 6 to 7

Mon May 29, 2023 2:18 am

The text IS from the V6 .rsc file. The router is out of the box V7. I don't think I want to try moving it back to V6 then upgrade.

Does my thought train seem logical?
 
holvoetn
Forum Guru
Forum Guru
Posts: 6759
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: Update config from 6 to 7

Mon May 29, 2023 2:22 am

That's not what you said in the first post.
You said you were upgrading a router from 6 to 7.
So I conclude now you are moving config from ROS6 router to another ROS7 router ?
That's something else.

If the new device came with ROS7, you cannot go back to 6.

Some things have changed from ROS6 to ROS7 on command line but not that much.
But obviously you need to start with a clean export from ROS6.
How did you do that ?
"Export terse" should take care of the line breaks. Otherwise you need to pre-process the script first with a txt editor.
 
mblfone
newbie
Topic Author
Posts: 36
Joined: Sun Feb 02, 2014 2:22 am

Re: Update config from 6 to 7

Mon May 29, 2023 2:29 am

Yup! I am upgrading from a V6 router to v7 router. Sorry for the confusion. I will try the terse recommendation and report back.

Thanks for the help!

BTW, I am not expecting this to all be pasted especially the much reworked BGP.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12557
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Update config from 6 to 7

Mon May 29, 2023 3:04 am

/ip/firewall/filter> add action=drop chain=input dst-port=22 protocol=tcp src-address-list=\ssh_blacklis
[Safe Mode taken]
line 3 of 3> MCPA( B/A
Something tells me you're using that new notepad shit in the new windows 11...
 
mblfone
newbie
Topic Author
Posts: 36
Joined: Sun Feb 02, 2014 2:22 am

Re: Update config from 6 to 7

Mon May 29, 2023 3:33 am

I am!
 
mblfone
newbie
Topic Author
Posts: 36
Joined: Sun Feb 02, 2014 2:22 am

Re: Update config from 6 to 7

Mon May 29, 2023 3:35 am

Wordpad?
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12557
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Update config from 6 to 7  [SOLVED]

Mon May 29, 2023 3:49 am

The "new" shitpad on windows 11 when copy text on memory transform the text in something.... different...
When you paste that shit on terminal, all is ruined...

Use another text editor...
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 21897
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Update config from 6 to 7

Mon May 29, 2023 4:08 am

There can only be ONE........
Notepad ++

"This is the way"
 
holvoetn
Forum Guru
Forum Guru
Posts: 6759
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: Update config from 6 to 7

Mon May 29, 2023 10:03 am

Amen to that !
 
mblfone
newbie
Topic Author
Posts: 36
Joined: Sun Feb 02, 2014 2:22 am

Re: Update config from 6 to 7

Mon May 29, 2023 6:03 pm

Thanks Rextended!

It WAS Windows 11 notepad. Notepad ++ has no issues. I haven't seen that before but will keep it in my mind from here forward.

Thanks!
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12557
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Update config from 6 to 7

Mon May 29, 2023 6:10 pm

Thanks Rextended!

It WAS Windows 11 notepad. Notepad ++ has no issues. I haven't seen that before but will keep it in my mind from here forward.

Thanks!
The others thought I was joking... :lol:
 
mblfone
newbie
Topic Author
Posts: 36
Joined: Sun Feb 02, 2014 2:22 am

Re: Update config from 6 to 7

Mon May 29, 2023 8:07 pm

It blows my mind how Microsoft can screw up such a simple program.

Ah well, this is what happens sometimes when you have genius level intelligence I guess!
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 12979
Joined: Thu Mar 03, 2016 10:23 pm

Re: Update config from 6 to 7

Mon May 29, 2023 8:09 pm

One could guess that MS used ChatGPT to design functionality of their software.
 
holvoetn
Forum Guru
Forum Guru
Posts: 6759
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: Update config from 6 to 7

Mon May 29, 2023 8:10 pm

The others thought I was joking... :lol:

Not at all. I always use Notepad++ on all my computers.

Who is online

Users browsing this forum: sindy and 34 guests