SOURCECODEBD.NET

Live Experience

Juniper Configuring RIP
 
You want network devices running RIP Version 2 to be able to communicate with the rest of your network.
You configure basic RIP functionality on your router:
 
[edit protocols]
source@RouterA# set rip group RIP-GROUP neighbor fe-0/0/0
source@RouterA# show
protocols {
   rip {
       group RIP-GROUP {
             neighbor fe-0/0/0.0;
        }
    }
}
 
To have your RIP systems communicate with the rest of your network, you enable RIP on each interface that is directly connected to a RIP neighbor. You do this by defining a group in which you identify each RIP device by the name of the interface that is directly connected to the RIP device. In this example, the Fast Ethernet interface fe-0/0/0 is the connection to your RIP device.
 
For the connection to the RIP neighbor to work, you must configure an IPv4 address on the interface that is connected to the neighbor.
 
We said that we were configuring RIP Version 2, but nowhere in this configuration is there any mention of the RIP version. By default, the JUNOS software configures both versions of RIP when you enable RIP. Most modern devices support and run RIP Version 2, so this shouldn't be an issue.
 
If you have a number of RIP devices, you configure each interface that is connected to a RIP neighbor:
 
[edit protocols]
source@RouterA# set rip group alpha-rip-group neighbor fe-0/0/1
source@RouterA# set rip group alpha-rip-group neighbor se-0/0/3
protocols {
    rip {
        group alpha-rip-group {
             neighbor se-0/0/3.0;
             neighbor fe-0/0/0.0;
             neighbor fe-0/0/1.0;
        }
    }
}
 
After you have configured RIP, you can see that the connections to the RIP neighbors are active:
 
source@RouterA> show rip neighbor
                       Source        
Destination   Send  Receive   In
Neighbor          State  Address      Address       Mode  Mode     Met
--------          -----  -------      -----------    ---- -------  ---
fe-0/0/1.0           Up 10.0.15.2     224.0.0.9     mcast both      1
fe-0/0/0.0           Up 10.0.16.1     224.0.0.9     mcast both      1
se-0/0/3.0           Up 10.0.21.1     224.0.0.9     mcast both      1
 
You see the three RIP neighbors that you configured. The first column shows the interface that is directly connected to the RIP neighbor. The second column shows that the interface to the neighbor is operational, or Up, and is listening to RIP traffic. The source address is the IPv4 address of the interface, and the destination address is the address of the neighbor's RIP interface. Here, the destination address is the well-known multicast group assigned to RIP Version 2, which is 224.0.0.9.
 
The Send Mode column tells how the router's RIP update packets are sent and received. The JUNOS implementation of RIP can multicast or broadcast both Version 1 and Version 2 packets (multicast is the default) or can broadcast only Version 1 packets. You should always use the default multicast mode to reduce the amount of RIP protocol update packets traveling on your network. The Receive Mode column indicates which type of RIP update packets the router can receive: Version 1, Version 2, or both (the default).
 
The last column shows the inbound metric, which is how many hops away the neighbor is. Here, each neighbor is directly connected and is one hop away, so the inbound metrics are 1. The metric value is included in the RIP route to the neighbor that is placed in the routing table.
 
After RIP is running on the local router, you can check whether it is learning routes from its neighbors:
 
[edit]
source@RouterA# run show rip statistics
 
You can find out which routes RIP learned by looking in the unicast routing table:
 
source@RouterA> show route table inet.0
 
You are here: Home / RIP / Juniper Configuring RIP