Monday 18 November 2013

Junos : Copy/Paste Configuration

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 the load 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:
  1. In the terminal window, navigate to the specific hierarchy where the data will be pasted (in this example, the system hierarchy).

  2. user@host# edit system
    [edit system]


  3. Enter the load merge terminal relative command:

  4. user@host# load merge terminal relative
    [Type ^D at a new line to end input]


  5. Copy the section of the configuration from a file or an application window.

  6. Paste the copied text into the CLI of the terminal window that you are using to configure the device.
  7. 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;
  8. Press Enter once. Make sure that you perform this step before proceeding.

  9. Press Ctrl+d to indicate that the end of the pasted text. You see "load complete" in the terminal window.

  10. To verify the configuration but not activate it, use the show command. You can also use the commit check command to verify the correctness of the syntax for the commands that have been entered.

  11. 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.

  12. Commit the configuration to activate it:

  13. user@host# commit
    commit complete

No comments:

Post a Comment

loading...