Page 1 of 1

Edit saved configuration file to make a widespread change?

Posted: 19 Feb 2018 21:44
by Douglas
I’m thinking of changing my internal network IP range. As CG is my DHCP server, would I be safe in running a “find and replace” on the latest saved CG.conf file, replacing say "10.0.10" with say "10.0.12" and loading the new.conf? I appreciate I may break many other things outside CG, but would such an edit, using say Windows Notepad, be okay?

Re: Edit saved configuration file to make a widespread change?

Posted: 20 Feb 2018 07:28
by david
Hi Douglas,

Yes of course you can directly modify the textual configuration file and then import (load) it into your CG appliance. A CG configuration file is a textual human readable file containing a set of CG commands. The main reason to have a clear text file is to be able to modify it using the text editor of your choice.

If you plan to replace the network 10.0.10.0/255.255.255.0 by 10.0.11.0/255.255.255.0 it's safer to proceed with the replacement of 10.0.10. by 10.0.11. (please note the final point at the end of those string). Otherwise you may have side effects such as the replacement of 10.0.101.23 by 10.0.111.23.

BR,

Re: Edit saved configuration file to make a widespread change?

Posted: 20 Feb 2018 08:12
by Douglas
That's great, thanks.