To run commands in a batch for function configuration on a device that is properly running, load a configuration file to the device.
To load the configuration file on the remote server or local configuration file to the running configuration database, perform the following steps:
This function is supported only in the two-phase configuration validation mode.
The system view is displayed.
Manually constructing a configuration file is not recommended. If the format of a manually constructed configuration file is incorrect, the configuration restoration may fail or an error may occur during the configuration restoration.
The configuration file can contain only configuration commands, view switching commands, and pound signs (#). If you load other types of commands, such as display commands used for query, reset/save/ping commands used for maintenance, quit, commit, return, upgrade-compatible commands, and one-phase configuration validation commands, the device reports an error and continues to load follow-up commands.
The interactive commands in the configuration file support only Y/N automatic interaction.
The configuration file name extension must be *.zip, *.cfg, *.txt, *.dat, or *.bat, or name of text file without suffix. FTP or SFTP also supports the file names with a server directory. The file name does not support special characters "~" "?" "*" "/" "\" ":" """ "|" "<" ">" "[" "]".
The configuration is committed.