I have two RB2011 units both running the same OS version v6.39. On one unit I used Quick set to configure the router (so nothing fancy).
I then went to terminal and did a export file=testconfig ( I also tried a export compact file=testconfig2 but still had import issues)
On my other unit I then upload the file to the device and then did a
import file=testconfig verbose=yes
and get errors on the import
I can start deleting lines but am unsure if I delete all of the lines it complains about then how does anything get loaded?
For example on this line
“add name=dhcp ranges=192.168.20.10-192.168.20.99”
I get and error of “failure: pool with such name exists”
If I run "system reset-configuration no-defaults=yes " as suggested in another post
and then do the import then that works but it forces you to use Winbox to talk to the device after the reset.
So is there some simpler method to do this export/import stuff and not have to totally reset the unit?
I read the Manual:Configuration Management page on the wiki and the section "Configuration parts to watch out for in exported .rsc files " but that does not seem to cover all of the sections I am having problems importing.
Can I put something in the start of the script that clears it all out and then have it do a load from there on so I do not have to use Winbox?
So I need some guidance on how to know what to change in the .rsc file so I can load it in or is there some other save/load process I should be using.
Just for reference here is what is in my .rsc file with no deletes
"# may/02/2017 14:04:27 by RouterOS 6.39
software id = APBM-IF7K
/interface bridge
add admin-mac=6C:3B:6B:73:4C:EF auto-mac=no comment=defconf fast-forward=no
name=bridge
/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
/ip neighbor discovery
set ether1 discover=no
/ip pool
add name=dhcp ranges=192.168.20.10-192.168.20.99
/ip dhcp-server
add address-pool=dhcp authoritative=after-2sec-delay disabled=no interface=
bridge name=defconf
/interface bridge port
add bridge=bridge comment=defconf interface=ether2-master
add bridge=bridge comment=defconf interface=ether6-master
add bridge=bridge comment=defconf interface=sfp1
/interface l2tp-server server
set caller-id-type=ip-address
/ip address
add address=192.168.1.1/19 comment=defconf interface=ether2-master network=
192.168.0.0
/ip dhcp-client
add comment=defconf dhcp-options=hostname,clientid disabled=no interface=
ether1
/ip dhcp-server network
add address=192.168.0.0/19 comment=defconf gateway=192.168.1.1 netmask=19
/ip dns
set allow-remote-requests=yes
/ip dns static
add address=192.168.1.1 name=router
/ip firewall filter
add action=accept chain=input comment=“defconf: accept ICMP” protocol=icmp
add action=accept chain=input comment=“defconf: accept established,related”
connection-state=established,related
add action=drop chain=input comment=“defconf: drop all from WAN”
in-interface=ether1
add action=fasttrack-connection chain=forward comment=“defconf: fasttrack”
connection-state=established,related
add action=accept chain=forward comment=“defconf: accept established,related”
connection-state=established,related
add action=drop chain=forward comment=“defconf: drop invalid”
connection-state=invalid
add action=drop chain=forward comment=
“defconf: drop all from WAN not DSTNATed” connection-nat-state=!dstnat
connection-state=new in-interface=ether1
/ip firewall nat
add action=masquerade chain=srcnat comment=“defconf: masquerade”
out-interface=ether1
/lcd
set time-interval=hour
/system clock
set time-zone-name=America/New_York
/tool mac-server
set [ find default=yes ] disabled=yes
add interface=bridge
/tool mac-server mac-winbox
set [ find default=yes ] disabled=yes
add interface=bridge "
Thanks
Tom