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:
- 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/.
- 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
- Press Ctrl+A to select all the text in the configuration file.
- Press Ctrl+C to copy the contents of the configuration text file to the Clipboard.
- Log in to the switch using your username and password.
- 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# - Load the configuration file:
[edit]
user@switch# load merge terminal - 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< - Press Enter.
- 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.