Vyatta documentation

Learn how to install, configure, and operate the Vyatta Network Operating System (Vyatta NOS) and Orchestrator, which help 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.
    [edit]
    user@system#
  2. Overwrite the default configuration file with the data that you loaded.
    user@system# save
    Saving configuration to '/config/config.boot'...
    Done
    [edit]
    user@system#
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.