Community discussions

MikroTik App
 
marthin
just joined
Topic Author
Posts: 4
Joined: Tue Sep 14, 2010 2:41 pm

Replace default configuration in RB750, ROS version 4.11

Wed Sep 15, 2010 12:20 pm

Hi,

Been doing reading into this subject and have tried the following, as suggested in the wiki and other posts in the forums.

1. Flashfig utility does apply the config script selected, however when "/system default-configuration print" is called the original config (ether1 192.168.88.1 etc.) still shows.
2. Using netinstall reformats, partitions and installs the new ROS (routeros-mipsbe-4.11.npk) image and applies the config script selected, however the default config is still the original (ether1 192.168.88.1 etc.).

Question:
What would be required to replace the factory shipped default config with a script of my own? When "/system reset-configuration" is executed I want my new custom script to be executed.

Many thanks for your assistance.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Replace default configuration in RB750, ROS version 4.11

Wed Sep 22, 2010 5:59 pm

play with
system reset-configuration run-after-reset=
 
marthin
just joined
Topic Author
Posts: 4
Joined: Tue Sep 14, 2010 2:41 pm

Re: Replace default configuration in RB750, ROS version 4.11

Wed Sep 22, 2010 9:24 pm

hi Chupaka,

Thanks. Yes, it runs the selected script as instructed.

The scenario that I need to cater for is when the reset button is pressed and the default script that is then executed. Perhaps this provides some clarity.

Rgds
 
User avatar
jgellis
Member Candidate
Member Candidate
Posts: 139
Joined: Wed May 30, 2007 10:57 am
Location: USA

Re: Replace default configuration in RB750, ROS version 4.11

Mon Mar 04, 2013 5:39 pm

Use NetInstall with custom configuration script. ANytime the reset button (or /system reset-configuration) is used, it will revert to the last configuration applied during NetInstall.
 
marthin
just joined
Topic Author
Posts: 4
Joined: Tue Sep 14, 2010 2:41 pm

Re: Replace default configuration in RB750, ROS version 4.11

Mon Mar 04, 2013 8:04 pm

Awesome thanks man! I do not recall testing that ... it was a while ago, but will definitely give that a go.

rgds
Marthin

Who is online

Users browsing this forum: fenix24865, Gomo, roburb and 44 guests