You can create a configuration file on your local system, copy the file to the EX Series switch and then load the file into the CLI. After you have loaded the configuration file, you can commit it to activate the configuration on the switch. You can also edit the configuration interactively using the CLI and commit it at a later time.
To upload a configuration file from your local system:
Table 1: Options for the load command
| Options | Description |
|---|---|
merge | Combines the current active configuration and the configuration in filename or the one that you type at the terminal. A merge operation is useful when you are adding a new section to an existing configuration. If the active configuration and the incoming configuration contain conflicting statements, the statements in the incoming configuration override those in the active configuration. |
override | Discards the current candidate configuration and loads the configuration in filename or the one that you type at the terminal. When you use the override option and commit the configuration, all system processes reparse the configuration. You can use the override option at any level of the hierarchy. |
replace | Searches for the replace tags, deletes the existing statements of the same name, if any, and replaces them with the incoming configuration. If there is no existing statement of the same name, the replace operation adds the statements marked with the replace tag to the active configuration. Note: For this operation to work, you must include replace tags in the text file or in the configuration you type at the terminal. |
You will see this output, with the hash or pound mark indicating
configuration mode.
Entering
configuration mode
[edit]
user@switch#
To view results of the configuration steps before committing the configuration, type the show command at the user prompt.
To commit these changes to the active configuration, type the commit command at the user prompt.You can also edit the configuration interactively using the CLI and commit it at a later time.