Copying and Pasting a Configuration Section to Another Configuration
If you have a section of a configuration that you want include in another configuration, you can use theload merge terminal relative
command to copy the configuration section from a file or an application
window (for example, a Web browser) and paste the section in the CLI of
the terminal window that you are using to configure a device.To copy and paste a section of a configuration to another configuration:
- In the terminal window, navigate to the specific hierarchy where the data will be pasted (in this example, the system hierarchy).
- Enter the
load merge terminal relative
command: - Copy the section of the configuration from a file or an application window.
- Paste the copied text into the CLI of the terminal window that you are using to configure the device.
- Press
Enter
once. Make sure that you perform this step before proceeding. - Press
Ctrl+d
to indicate that the end of the pasted text. You see "load complete" in the terminal window. - To verify the configuration but not activate it, use the
show
command. You can also use thecommit check
command to verify the correctness of the syntax for the commands that have been entered. - If the validation is successful, go to the next step. Otherwise, review any error messages and use the CLI to change the configuration and resolve errors.
- Commit the configuration to activate it:
user@host#
edit system
[edit system]
user@host#
load merge terminal relative
[Type ^D at a new line to end input]
user@host
# load merge terminal relative
[Type ^D at a new line to end input]
location building 2;
ntp server 78.46.194.186 version 4
;user@host#
commit
commit complete
No comments:
Post a Comment