Overview

4 steps to configure RIPv2.

  • Define a RIP group
  • Assign interfaces to the RIP group
  • Define a routing policy to export routes
  • Assign the routing policy to the RIP group

Configuration

Define a RIP group.

cmd
set protocols rip group RIP-GROUP

Assign interfaces to the RIP group.

cmd
set protocols rip group RIP-GROUP neighbor ge-0/0/2.0

Define a routing policy to export routes.

cmd
set policy-options policy-statement EXPORT-RIP term 1 from protocol direct
set policy-options policy-statement EXPORT-RIP term 1 from protocol rip
set policy-options policy-statement EXPORT-RIP term 1 then accept

Assign the routing policy to the RIP group.

cmd
set protocols rip group RIP-GROUP export EXPORT-RIP

Topology

network/topologies/2-router.svg

P1R1

cmd
set protocols rip group RIP-GROUP
set protocols rip group RIP-GROUP neighbor ge-0/0/2.0
set policy-options policy-statement EXPORT-RIP term 1 from protocol direct
set policy-options policy-statement EXPORT-RIP term 1 from protocol rip
set policy-options policy-statement EXPORT-RIP term 1 then accept
set protocols rip group RIP-GROUP export EXPORT-RIP

P1R2

cmd
set protocols rip group RIP-GROUP
set protocols rip group RIP-GROUP neighbor ge-0/0/1.0
set policy-options policy-statement EXPORT-RIP term 1 from protocol direct
set policy-options policy-statement EXPORT-RIP term 1 from protocol rip
set policy-options policy-statement EXPORT-RIP term 1 then accept
set protocols rip group RIP-GROUP export EXPORT-RIP

Verification

Show RIP neighbors.

cmd
show rip neighbor

# output

                  Local  Source          Destination     Send   Receive   In
Neighbor          State  Address         Address         Mode   Mode     Met
--------          -----  -------         -----------     ----   -------  ---
ge-0/0/2.0           Up 10.1.12.1       224.0.0.9       mcast  both       1

Show RIP routing table.

cmd
show route protocol rip

# output

inet.0: 57 destinations, 58 routes (57 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

10.1.23.0/24       *[RIP/100] 00:06:21, metric 2, tag 0
                    > to 10.1.12.2 via ge-0/0/2.0
<snip>
10.255.1.2/32      *[RIP/100] 00:06:21, metric 2, tag 0
                    > to 10.1.12.2 via ge-0/0/2.0
224.0.0.9/32       *[RIP/100] 00:08:35, metric 1
                      MultiRecv

Show advertised RIP routes.

cmd
show route advertising-protocol rip 10.1.12.1

# output

inet.0: 57 destinations, 58 routes (57 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

10.1.13.0/24       *[Direct/0] 05:05:40
                    > via ge-0/0/3.0
<snip>
10.255.1.1/32      *[Direct/0] 05:05:40
                    > via lo0.0

Show received RIP routes.

cmd
show route receive-protocol rip 10.1.12.2

# output

inet.0: 57 destinations, 58 routes (57 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

10.1.23.0/24       *[RIP/100] 00:30:45, metric 2, tag 0
                    > to 10.1.12.2 via ge-0/0/2.0
<snip>
10.255.1.2/32      *[RIP/100] 00:30:45, metric 2, tag 0
                    > to 10.1.12.2 via ge-0/0/2.0

inet6.0: 86 destinations, 86 routes (86 active, 0 holddown, 0 hidden)

Show RIP message exchange.

cmd
show rip statistics

# output

RIPv2 info: port 520; holddown 120s.
    rts learned  rts held down  rqsts dropped  resps dropped
              8              0              0              0

ge-0/0/2.0:  8 routes learned; 8 routes advertised; timeout 180s; update interval 30s
Counter                         Total   Last 5 min  Last minute
-------                   -----------  -----------  -----------
Updates Sent                       59           10            2
Triggered Updates Sent              2            0            0
Responses Sent                      0            0            0
Bad Messages                        0            0            0
RIPv1 Updates Received              0            0            0
RIPv1 Bad Route Entries             0            0            0
RIPv1 Updates Ignored               0            0            0
RIPv2 Updates Received             56           10            2
RIPv2 Bad Route Entries             0            0            0
RIPv2 Updates Ignored               0            0            0
Authentication Failures             0            0            0
RIP Requests Received               1            0            0
RIP Requests Ignored                0            0            0
RIP Update Acks Received            0            0            0