Process to set a static IP address in a Enet router using scripts.
- First you must have the four script files which presently are named resetCEDefaults.rsc, RB3011CeDefaults.rsc, Hex5CeDefaults.rsc and setstatic.rsc. Once you have these files you can connect to the Router using Winbox like normal and once connected you can press the Files button to then get the File List to show. You can then mark and drag over the files or Click the Upload button on the File List window and select the files that way.
PLEASE note where the files need to be placed VARIES on the router. On the 10port unit the main area is find. As shown below.
For the 5 port router you MUST put the files in the flash area. The files circled in RED area will not work but the ones in the Green area will work. This is needed because for the 5 port router ONLY files in the Flash area will be saved over a reboot. The files NOT in the flash area is the ram drive and will be lost on a power cycle or reboot.
- Ok now that the files are on the unit you press the New Terminal button and get a terminal window showing.
- To set the IP address click in the Terminal window and type “import setstatic.rsc”. Note auto completion works so you can just type imp then press tab then type set and press tab and then press enter to run the script. It will then show Enter IP Address: and value: now type in the IP address you want then press enter and then the Subnet Mask and then enter and then the type in the Gateway and the press enter. The script will perform the sets and the Router will now have a Static IP address on Eth1 – the customer network port.
- If for some reason the Router has been set incorrectly and you want to get back to CEDefaults then in the terminal window type “import resetCEDefaults.rsc” (auto completes work) and press enter. It will then run and detect the model of the router and if the files exist. If those tests pass then it will present a choice of do you really want to do the reset. At that point you press y. Note I can change the script so it does not ask the question but instead just does the reset. The unit will reset to as it was shipped originally with Eth1 being set for DHCP and allowing Winbox to connect. PLEASE note it can take up to 50 seconds for the reset to fully complete.
- WARNING for the 5 port routers the newer ones have a password with an Identity Hex5_aa and need a “admin” password to login. If you have an older Hex5 router and run this reset then this older router will now have the Hex5_aa and will require you to use a “admin” password to login.
You can download the required files here
Comments
0 comments
Please sign in to leave a comment.