Example: Configuring a Basic RIP Network

This example shows how to configure a basic RIP network.

Requirements

Before you begin:

  1. Configure network interfaces. See Junos OS Interfaces Configuration Guide for Security Devices.
  2. 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

Image g015025.gif

Configuration

CLI Quick Configuration

To quickly configure a basic RIP network, copy the following commands and paste them into the CLI:

[edit] set protocols rip group alpha1 neighbor ge-0/0/0 set policy-options policy-statement advertise-rip-routes term from-direct from protocol direct set policy-options policy-statement advertise-rip-routes term from-direct then accept set policy-options policy-statement advertise-rip-routes term from-rip from protocol rip set policy-options policy-statement advertise-rip-routes term from-rip then accept

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:

  1. Configure RIP.
    [edit]user@host# edit protocols rip
  2. Create the RIP group and add an interface.
    [edit protocols rip]user@host# set group alpha1 neighbor ge-0/0/0.0
  3. Configure a routing policy.
    1. Configure policy options.
      [edit]user@host# edit policy-options
    2. Set the match condition.
      [edit policy-options]user@host# set policy-statement advertise-rip-routes term from-direct from protocol direct
    3. Set the match action.
      [edit policy-options]user@host# set policy-statement advertise-rip-routes term from-direct then accept
  4. Configure the previous routing policy.
    1. Set the match condition.
      [edit policy-options]user@host# set policy-statement advertise-rip-routes term from-rip from protocol rip
    2. Set the match action.
      [edit policy-options]user@host# set policy-statement advertise-rip-routes term from-rip then accept

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.

[edit]user@host# show protocols ripgroup alpha1 {neighbor ge-0/0/0.0;}
[edit]user@host# show policy-optionspolicy-statement advertise-rip-routes {term from-direct {from protocol direct;then accept;}term from-rip {from protocol rip;then accept; }}

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