Vyatta NOS documentation

Learn how to install, configure, and operate Vyatta Network Operating System (Vyatta NOS), which helps to drive our virtual networking and physical platforms portfolio.

Replace the contents of the default configuration file

An example that shows how to use the load and save commands to replace the contents of the default configuration file with the contents of a custom configuration file.

The default file is always config.boot. However, you can quickly replace its contents with the contents of another saved file. You just need to use both the load and the save commands.

  1. Load a previously saved configuration file that you specify.
    user@system# load testconfig
    Loading configuration file /config/testconfig...
    Load complete.  Use 'commit' to make changes active.
  2. Overwrite the default configuration file with the data that you loaded.
    user@system# save
    Saving configuration to '/config/config.boot'...
The configurations in the testconfig and config.boot files are now identical. The currently active configuration is the same as the configuration that the system uses at boot time — the running configuration.