Example: Configuring a Basic RIP Network
This example shows how to configure a basic RIP network.
Requirements
Before you begin:
- Configure network interfaces. See Junos OS Interfaces Configuration Guide for Security Devices.
- Configure security filters. See Junos OS Security Configuration Guide.
Overview
In this example, you configure a basic RIP network, you create RIP group alpha1 and add interface ge-0/0/0 to it. Then you configure a routing policy to advertise directly connected routes using policy statement advertise-rip-routes and term name from-direct. Finally, you define the previous routing policy to advertise routes learned from RIP using term name from-rip.
To use RIP on the device, you must configure RIP on all of the RIP interfaces within the network. See Figure 1.
Figure 11: Typical RIP Network Topology

Configuration
CLI Quick Configuration
To quickly configure a basic RIP network, copy the following commands and paste them into the CLI:
Step-by-Step Procedure
The following example requires you to navigate various levels in the configuration hierarchy. For instructions on how to do that, see Using the CLI Editor in Configuration Mode.
To configure a basic RIP network:
- Configure RIP.[edit]user@host# edit protocols rip
- Create the RIP group and add an interface.[edit protocols rip]user@host# set group alpha1 neighbor ge-0/0/0.0
- Configure a routing policy.
- Configure policy options.[edit]user@host# edit policy-options
- Set the match condition.[edit policy-options]user@host# set policy-statement advertise-rip-routes term from-direct from protocol direct
- Set the match action.[edit policy-options]user@host# set policy-statement advertise-rip-routes term from-direct then accept
- Configure policy options.
- Configure the previous routing policy.
- Set the match condition.[edit policy-options]user@host# set policy-statement advertise-rip-routes term from-rip from protocol rip
- Set the match action.[edit policy-options]user@host# set policy-statement advertise-rip-routes term from-rip then accept
- Set the match condition.
Results
From configuration mode, confirm your configuration by entering the show protocols rip and show policy-options commands. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.
If you are done configuring the device, enter commit from configuration mode.
Verification
To confirm that the configuration is working properly, perform this task:
Verifying the Exchange of RIP Messages
Purpose
Verify that RIP messages are being sent and received on all RIP-enabled interfaces.
Action
From operational mode, enter the show rip statistics command.
Verifying the RIP-Enabled Interfaces
Purpose
Verify that all RIP-enabled Interfaces are available and active.
Action
From operational mode, enter the show rip neighbor command.
Related Topics
- Junos OS Feature Support Reference for SRX Series and J Series Devices
- Understanding Basic RIP Routing
- RIP Overview
- Verifying a RIP Configuration
Hide Navigation Pane
Show Navigation Pane
Download
SHA1