Community discussions

MikroTik App
 
Freman
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 76
Joined: Thu Jul 01, 2004 8:49 am

Cloneing Configuration

Thu Oct 07, 2004 5:12 am

G'day there...

I've got a situation where a router in the field is failing and I want to replace it, I have another one with exact same hardware configuration (well, exact in except mac addresses).

How can I copy the configuration from the device in the field, to the device here in the office so it can be rushed out and replaced in seconds?

I've tried "backup/copy/restore" but that does NOT work, all the interfaces get renamed and all the fields requireing interfaces from the original configuration become "(unknown)"

I've tried "export/copy/import" but it gives me errors, and further investigation has shown me that the exported data isn't in sequence, IE: things that require a non-default profile are created before the profile is and it fails to import.

Anyone have any other ideas?

Thanks
 
User avatar
mag
Member
Member
Posts: 378
Joined: Thu Jul 01, 2004 12:32 pm
Location: Cologne, NRW, Germany
Contact:

Re: Cloneing Configuration

Thu Oct 07, 2004 8:59 am

just a proposal:
i made a configuration text file (export file=config) and changed it a bit to give the interfaces always the same name. this depends on a quite similar hardware configuration, but changes are easily done with a text editor.
example:
...
/ interface ethernet 
print
set 0 name="ether1-lan" disabled=no 
set 1 name="ether2-dmz" disabled=no 
set 2 name="ether3-wan" disabled=no 
...
/ ip address 
add address=192.168.255.1/24 network=192.168.255.0 broadcast=192.168.255.255 interface=ether1-lan  disabled=no 
...
and so on. later config-commands can use the interface names.

regards.
matthias

Who is online

Users browsing this forum: spr41178 and 83 guests