[an error occurred while processing this directive] [an error occurred while processing this directive]

Uploading a Configuration File (CLI Procedure)

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:

  1. Create the configuration file using a text editor such as Notepad, making sure that the syntax of the configuration file is correct. For more information about testing the syntax of a configuration file see JUNOS Software System Basics and Services Command Reference at https://www.juniper.net/techpubs/software/junos/.
  2. In the configuration text file, use an option to perform the required action when the file is loaded. Table 1 lists and describes some options for the load command.

    Table 1: Options for the load command

    OptionsDescription

    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.

  3. Press Ctrl+A to select all the text in the configuration file.
  4. Press Ctrl+C to copy the contents of the configuration text file to the Clipboard.
  5. Log in to the switch using your username and password.
  6. To enter configuration mode:
    user@switch> configure

    You will see this output, with the hash or pound mark indicating configuration mode.
    Entering configuration mode
    [edit]
    user@switch#

  7. Load the configuration file:
    [edit]
    user@switch# load merge terminal
  8. At the cursor, paste the contents of the Clipboard using the mouse and the Paste icon:
    [edit]
    user@switch# load merge terminal
    [Type ^D at a new line to end input]
    >Cursor is here. Paste the contents of the clipboard here<
  9. Press Enter.
  10. Press Ctrl+D to set the end-of-file marker.

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.

[an error occurred while processing this directive]