Getting the Most from Examples
At Juniper Networks, we provide best-in-class examples that support the tasks that you need to get done, whether it be planning a broad network implementation or configuring a feature on your device.
We focus on providing a standard example format to ensure that you have a consistent, predictable, and usable experience across Juniper Networks products. For example, if you access a Network Configuration Example (NCE) that shows you how to configure a large multiplatform network, or a smaller example that shows how to set up a feature, we provide the same standard content, such as a topology diagram and step-by-step procedures.
Want to know more? We have included some tips and tricks for getting the most out of examples.
Before using an example, we recommend that you check the Requirements section of the example to see the software and hardware components used in the example.
Use the Feature Explorer application to explore feature information about software releases and hardware platforms, including prerequisites.
Did you know that one of the standard features of a step-by-step procedure in an example is the CLI Quick Configuration section? It enables you to quickly implement the configuration you see in the example on your device.
For example, in Junos OS, you can copy the set statements from this section into your own configuration file for customization in a text editor, or directly from the example into the terminal window for the device. You can copy set statements into the terminal window while in configuration mode.
When customizing the set statements in a text editor, be sure to remove any noticeable line breaks before you copy them into the terminal window. Applications like Microsoft Word have hidden characters that you inadvertently paste into the terminal window, causing issues when you commit the configuration. We recommend that you copy from Microsoft Word into Notepad or any other text editor prior to copying into the terminal window.
You can globally replace patterns in a configuration. For example, you might have learned from a Network Configuration Example (NCE) that there is a certain term that best optimizes your policy framework, but it requires that you modify one of your existing terms. In Junos OS, you can find all instances of the term that you want to change in your configuration using the show | match parameter | display set command in configuration mode. It is then possible to use the replace pattern command to replace one term with the other.
This is a powerful tool, so be absolutely sure before committing the configuration.
Sometimes, you modify a few parameters in one configuration, and you want to copy them to another. Junos OS enables you to use the show | compare command to identify differences in two configurations. Plus (+) signs denote the differences.
You can then use the load patch terminal command to “patch” the new parameters into the new configuration.
Verifying the Configuration
When you have finished the configuration, our examples provide the show commands that you can use to verify the configuration on the device.
For Junos OS examples, did you know that you can copy the output shown in a show command, and use that to create a configuration?