Example: Configuring a Basic Set of Static Routes
This example shows how to configure a basic set of static routes.
Requirements
Before you begin:
- Configure network interfaces. See the Junos OS Interfaces Configuration Guide for Security Devices.
Overview
Customer routes that are connected to stub networks are often configured as static routes. Figure 1 on page 12 shows a sample network.
In this example, you configure the static route as 192.168.47.5/32 and define the next-hop address as 10.10.10.10.
Figure 5: Customer Routes Connected to a Stub Network

Configuration
Step-by-Step Procedure
To configure basic static routes:
- Create a static route and set the next-hop address.[edit]user@host# set routing-options static route 192.168.47.5 next-hop 10.10.10.10
- If you are done configuring the device,
commit the configuration.[edit]user@host# commit
Verification
To verify the configuration is working properly, enter the show routing-options static command.
Related Topics
- Junos OS Feature Support Reference for SRX Series and J Series Devices
- Understanding Basic Static Routing
- Static Routing Configuration Overview
- Verifying the Static Route Configuration
Hide Navigation Pane
Show Navigation Pane
Download
SHA1