Cisco® CCENT Exam Cram Notes : RIPv1 And RIPv2


Go to latest CCNA Exam Cram

3.Routing Fundamentals

7. RIPv1 and RIPv2

Routing Information Protocol Version 1 (RIPv1) : This is a simple distance vector protocol. It has been enhanced with various techniques, including Split Horizon and Poison Reverse in order to enable it to perform better in somewhat complicated networks.

Features of RIPv1

  • RIPv1 is a Distance-Vector Routing protocol.
  • RIPv1 is a Classful routing protocol. Classful routing protocols support only the networks which are not subnetted. Classful routing protocols do not send subnet mask information with their routing updates. In other words, if you have a subnetted network in your RIPv1 routing domain, RIPv1 will announce that network to other as unsubnetted network.
  • RIPv1 does not support VLSM (Variable Length Subnet Masking).
  • RIPv1 support maximum metric (hop count) value of 15. Any router farther than 15 hops away is considered as unreachable.
  • RIPv1 send routing updates periodically every 30 seconds as broadcasts using destination IP address as limited broadcast IP adddress Since the updates are sent using the destination IP address of limited broadcast IP adddress, every router need to process the routing update messages (whether they are running RIPv1 or not).
  • RIPv1 does not support authentication of update messages (plain-text or MD5).

Routing Information Protocol Version 2 (RIPv2) : RIPv2 is a Hybrid Routing Protocol. A Hybrid Routing Protocol is basically a Distance-Vector protocol which some characteristics of Link State routing protocols.

RIPv2 is classless routing, which allows us to use subnetted networks also. RIPv2 has the option for sending network mask in the update to allow classless routing.

RIP Message

Data link Frame

  • MAC Source Address
  • MAC Destination Address = Broadcast

IP Packet

  • IP Source Address
  • IP Destination Address = Broadcast :
  • Protocol field = 17 for UDP

UDP Segment

  • Source Port number field = 520 for RIP Message

RIP Message (Data portion of IP Packet)

  • Routes: Network IP Address
  • Hops (metric)

RIP Header divided into 3 fields

  • command field
  • version field
  • must be zero
  • Route entry composed of 3 fields
  • Address family identifier
  • IP address
  • Metric

RIP Header format is as show in the below fig

RIP Header format

Features of RIPv2 :

  • RIPv2 support VLSM (Variable Length Subnet Masking).
  • RIPv2 support maximum metric (hop count) value of 15. Any router farther than 15 hops away is considered as unreachable.
  • RIPv2 supports triggered updates.
  • RIPv2 routing updates are sent as Multicast traffic at destination multicast address of Multicast updates reduce the network traffic. The Multicast routing updates also helps in reducing routing update message processing overhead in routers which are not running RIPv2. Only the routers running RIPv2 join to the multicast group Other routers which are not running RIPv2 can simply filter the routing update packet at Layer 2.
  • RIPv2 support authentication of RIPv2 update messages (plain-text or MD5). Authentication helps in confirming that the updates are coming from authorized sources
  • The router rip command selects RIP as the routing protocol. The network command assigns a major network number that the router is directly connected to. The RIP routing process associates interface addresses with the advertised network number and begins RIP packet processing on the specified interfaces.

Configuration of Routing Information Protocol version 1 (RIPv1)

The necessary configuration steps for doing the same are as given below:

Step1 : Enter into Global Configuration Mode

R1#configure terminal

Step2 : Enable RIP routing on the router

R1(config)#router rip

Step3: Associate network in the RIP routing process


The command "no router rip" is used for removing all rip entries from the router. Once this is cleared, you must reconfigure RIP again using the "router rip" command.

Example: hostname(config)#router rip

This starts the RIP routing process and places you in router configuration mode

hostname(config)#no router rip

The above command removes the entire RIP configuration you have enabled on the router.

Configuration of Routing Information Protocol version 2 (RIPv2)

The command syntax for configuring RIPv2 on a router is:

router rip
version 2
<network number>


router rip
version 2

RIP (v1 and v2) and EIGRP are examples of routing protocols that use distance vector. In RIP, the maximum hop count allowed is 15 hops. A hop count of 16 is considered as unreachable. An RIP router determines the path to the destination based on the amount of hops it takes to reach the destination. If it had two different ways to reach the destination, it will simply send the packet via the shortest path (minimum hop count), regardless of the connection speed. This is commonly known as pinhole congestion.

Maximum hop count supported by RIP is 15. A hop count of 16 or greater is considered unreachable. As soon as RIP is enabled, it will start sending and receiving updates on interfaces. Many situations require you to stop RIP from sending updates out an interface. An example of such a situation is when an interface connects to the Internet. You do not want your routing updates to go out to the Internet. In such situations, you can use the passive-interface interface command in the routing configuration mode to stop RIP from sending updates out that interface. This command stop RIP from sending updates but it will continue to receive updates on that interface.

The (config-router)#passive-interface <interface> command stops updates from being sent out an interface, but route updates are still received.

Distance vector protocol depends only on Hop count to determine the nearest next hop for forwarding a packet. One obvious disadvantage is that, if you have a destination connected through two hops via T1 lines, and if the same destination is also connected through a single hop through a 64KBPS line, RIP assumes that the link through 64KBPS is the best path.

Various timers in RIP are given below:

Update-30 sec, Interval between route update advertisements

Hold-Down-90 sec, Period a route is withdrawn from the table to prevent a routing loop.

Timeout-180 sec, Interval a route should stay 'live' in the routing table. This counter is reset every time the router hears an update for this route.

Flush-120 sec, How long to wait to delete a route after it has timed out.

Split horizon : is a method of preventing a routing loop in a network. The basic principle is simple: Information about the routing for a particular packet is never sent back in the direction from which it was received.

Normally, routers that are connected to broadcast-type IP networks and that use distance-vector routing protocols employ the split horizon mechanism to reduce the possibility of routing loops. Split horizon blocks information about routes from being advertised by a router out of any interface from which that information originated. This behavior usually optimizes communications among multiple routers, particularly when links are broken. If an interface is configured with secondary IP addresses and split horizon is enabled, updates might not be sourced by every secondary address. One routing update is sourced per network number unless split horizon is disabled.

To enable or disable split horizon, use the following commands in interface configuration mode, as needed:

Router(config-if)#ip split-horizon - Enables split horizon.

Router(config-if)#no ip split-horizon - Disables split horizon.

Previous   Contents   Next

CCENT Cram Notes Contents
certexams ad

simulationexams ad