I'm going to configure 200 RouterBOARD RB912UAG-2HPnD with a R11e-5HacD card in the expantion slot.
I've set up a template router and exported the config to a rsc-file.
Importing this rsc-file to the same machine with blank config works as intended.
But running the same script through flashfig it does not, everything seems to get set except the settings for wlan2 (wich is the R11e-5HacD).
My guess is that this card is not yet initialized when the import set by flashfig runs (documentation doesn't specify, but my best guess is that this happens during the first boot after flashfig).
Tried two workarounds
1. added a delay of 10 seconds with
as the first line in the script, no change.
Code: Select all
2. Re-wrote the rsc-file to just add the hole config as a script, and scheduled it to run it during the next boot and then delete the script and the scheduled task. Also this with a 10 second delay after boot. Didn't seem to work at all.
worked on my test without flashfig, but no script or schedule seemed to be added through flashfig
This would also be a bit dirty workaround , but was worth a try
I don't know if my theory is correct, and/or how to solve it. When configuring this amount of boards, the difference of just flashfiging and boot - reset - paste config gets pretty time consuming (and boring )
This is the config
Edit: Corrected spelling mistake
Code: Select all
# mar/26/2015 16:35:02 by RouterOS 6.22 # software id = 05J1-5RVQ # /interface wireless security-profiles add authentication-types=wpa-psk,wpa2-psk,wpa-eap,wpa2-eap eap-methods="" \ group-ciphers=tkip,aes-ccm management-protection=allowed mode=\ dynamic-keys name=CO-key supplicant-identity="" unicast-ciphers=\ tkip,aes-ccm wpa-pre-shared-key=V3ryS3cret wpa2-pre-shared-key=V3ryS3cret add authentication-types=wpa-psk,wpa2-psk eap-methods="" \ management-protection=allowed mode=dynamic-keys name="Some WiFi" \ supplicant-identity="" wpa-pre-shared-key=B0gusP@ass \ wpa2-pre-shared-key=B0gusP@ass /interface wireless set [ find default-name=wlan1 ] band=2ghz-b/g/n country=sweden disabled=no \ distance=indoors frequency=2417 frequency-mode=regulatory-domain \ hw-protection-mode=cts-to-self l2mtu=1600 mode=ap-bridge rx-chains=0,1 \ security-profile="Some WiFi" ssid="Some WiFi" tx-chains=0,1 \ wireless-protocol=802.11 set [ find default-name=wlan2 ] country=sweden disabled=no distance=indoors \ frequency=5320 frequency-mode=regulatory-domain l2mtu=1600 rx-chains=0,1 \ security-profile=CO-key ssid=1918-Visitor tx-chains=0,1 \ wireless-protocol=802.11 /ip pool add name=dhcp_pool1 ranges=10.18.0.2-10.18.0.254 /ip dhcp-server add address-pool=dhcp_pool1 disabled=no interface=wlan1 lease-time=8h name=\ dhcp1 /system logging action set 2 remember=yes /ip address add address=10.18.0.1/24 interface=wlan1 network=10.18.0.0 /ip dhcp-client add default-route-distance=0 dhcp-options=hostname,clientid disabled=no \ interface=wlan2 use-peer-ntp=no /ip dhcp-server network add address=10.18.0.0/24 dns-server=220.127.116.11,18.104.22.168 gateway=10.18.0.1 /ip firewall nat add action=masquerade chain=srcnat out-interface=wlan2 /ip upnp set allow-disable-external-interface=no enabled=yes /ip upnp interfaces add interface=wlan2 type=external add interface=wlan1 type=internal /snmp set trap-community=public /system identity set name=TheRouterName /system leds set 0 interface=wlan2 /system ntp client set enabled=yes primary-ntp=22.214.171.124 secondary-ntp=126.96.36.199 /system routerboard settings set cpu-frequency=600MHz /user set admin password=N0tTh3RealP@ass