Home > Articles

RIP Concepts and Configuration

This article goes over the basic concepts of RIP, how it operates as well as how it can be configured to operate on Cisco equipment.
Like this article? We recommend

The Routing Information Protocol (RIP) is an interior routing protocol that has been around for a long time (think the 80’s) that can be used to dynamically route IP inside small-to-medium sized networks. RIP, while not commonly used in production networks anymore, is typically taught to new network engineers to introduce the concepts of dynamic routing. RIP is a simple protocol (in comparison to other dynamic routing protocols) and can easily be configured to work on Cisco equipment. This article goes over the basic concepts of RIP, how it operates, and how it can be configured to operate on Cisco equipment.

RIP Concepts

The first thing to understand is that RIP is a distance vector protocol. What this means is that it learns routes from its neighbors alone, all routing information obtained from neighbors is trusted, and assumed correct; this style of learning is also referred to as “routing by rumor.” The metric (distance) used by RIP is a hop count; each device that a packet crosses on its way to a destination is counted as an additional “hop.” While RIP is not commonly used any more it was always limited to small-to-medium sized networks because it only supports a maximum hop count of 15.

A RIP device sends out a multicast or broadcast message advertising all of the routes that it knows about every 30 seconds. This information is then used by the neighboring router to build its routing table, and the information is then added to the neighboring router’s reachable networks and is resent out its interfaces (also every 30 seconds), and so on; this is how the RIP routing database is built throughout the network. Along with the updates that are sent every 30 seconds, RIP also supports flash updates. A flash update will occur when a router learns of a route reachability change; when this happens it will flood out the change immediately.

There are three different concepts that must be reviewed that are used by RIP to avoid routing loops and maintain a stable network: split horizon, route poisoning, and RIP timers.

Split Horizon

In normal operation, RIP will learn routes from other neighboring routers and add them to its own routing database before sending out a routing update out its RIP interfaces. Split horizon prevents RIP from sending out an advertisement of a network that was also learned on that same interface. So if the 192.168.1.0 network was learned on interface f0/0, it will not be advertised out the f0/0 interface by RIP.

Route Poisoning

Route poisoning occurs when a RIP device learns that a route to a destination has failed. When this happens RIP will advertise the failed destination out ALL of its interfaces with a metric of 16 (which is considered unreachable); this tells all of its neighbors that it no longer has a route to that specific network.

RIP Timers

There are a number of different timers that are used by RIP to maintain operations: update, invalid, flush, and holddown timers. The update timer is used to identify when RIP sends out scheduled updates; by default this is 30 seconds, as referred to above. The invalid timer is used by RIP to determine the validity of a routing entry. By default, if no update has been received about a specific route for 180 seconds, it will be considered invalid and marked with a metric of 16 (see Route Poisoning above). The flush timer is used to determine when a route is removed from the RIP database. By default, if no update has been received about a specific route for 240 seconds, it will be removed from the RIP database. The holddown timer is used to stabilize the RIP routes in the network; after a route has a metric change to the route, the holddown timer is started and no additional updates will happen with that route until the holddown timer expires; by default, the holddown timer is set to 180 seconds.

Another major topic to cover is RIP version; there are two different versions of RIP that differ in their abilities. RIP version 1 sends out updates via broadcast (255.255.255.255) and does not support Variable Length Subnet Masking (VLSM). Version 2 sends out updates via multicast (224.0.0.9), supports VLSM and adds support for authentication. Devices running RIPv2 are backward compatible and individual interfaces can be configured to advertise out only v1 or v2 updates.

RIP Configuration Commands

The configuration of RIP is not all that complex; this section reviews the different commands that can be used to configure RIP.

  • The router rip command is the beginning of any Cisco IOS RIP configuration; it is used to create or modify an existing RIP routing process and enters the user into RIP router configuration mode.
  • The version {1 | 2} command is used to tell the device which version of RIP to run; a RIP version 2 router is able to communicate with version 1 routers. By default, Cisco IOS devices will send out RIP version updates and support the receipt of RIP version 1 and version 2 updates.
  • The network command is used to identify which device interfaces will be included within the RIP process. Unlike some other routing protocol configurations, the network command when used with RIP does not support a mask.
  • The timers basic update invalid holddown flush command is used to change the default RIP timers; the default settings for these timers are covered in the above sections.
  • To dictate when version of RIP updates are allowed to be sent out an interface the ip rip send version {1 | 2} command is used.
  • To dictate when version of RIP updates are allowed to be received on an interface the ip rip receive version {1 | 2} command is used.

RIP Configuration

As stated above, the configuration of RIP is not complex. Table 1 below shows the steps required to configure RIP on a device.

Table 1
RIP Configuration

1

Enter global configuration mode.

router#configure terminal

2

Create an RIP routing process and enter router configuration mode.

router(config)#router rip

3

Configure the interfaces that RIP will be enabled on.

router(config-router)#network network

4

Configure the version of RIP (optional).

router(config-router)#version {1 | 2}

5

Configure the RIP timers (optional).

router(config-router)#timers basic update invalid holddown flush

It is also possible to change the version of RIP that is used on a specific interface. Table 2 below shows the steps required to change the RIP version used on an interface:

Table 2
RIP Interface Configuration

1

Enter global configuration mode.

router#configure terminal

2

Enter interface configuration mode.

router(config)#interface interface

3

Configure the RIP send version.

router(config-if)#ip rip send version {1 | 2}

4

Configure the RIP receive version.

router(config-if)#ip rip receive version {1 | 2}

RIP Configuration Example

The topology shown in Figure 1 below will be used as a basis for the example shown in this section:

Figure 1 RIP Example Topology

The steps required to configure this topology using RIP version 2 are shown in the next few tables; IP address configuration is assumed already complete.

Table 3
R1 RIP Configuration

1

Enter global configuration mode.

R1#configure terminal

2

Enter RIP router configuration mode.

R1(config)#router rip

3

Configure RIP version 2.

R1(config-router)#version 2

4

Configure the 172.16.0.0 networks into RIP.

R1(config-router)#network 172.16.0.0

5

Configure the 192.168.1.0 network into RIP.

R1(config-router)#network 192.168.1.0

Table 4
R2 RIP Configuration

1

Enter global configuration mode.

R2#configure terminal

2

Enter RIP router configuration mode.

R2(config)#router rip

3

Configure RIP version 2.

R2(config-router)#version 2

4

Configure the 172.16.0.0 networks into RIP.

R2(config-router)#network 172.16.0.0

5

Configure the 192.168.2.0 network into RIP.

R2(config-router)#network 192.168.2.0

Table 5
R3 RIP Configuration

1

Enter global configuration mode.

R3#configure terminal

2

Enter RIP router configuration mode.

R3(config)#router rip

3

Configure RIP version 2.

R3(config-router)#version 2

4

Configure the 172.16.0.0 networks into RIP.

R3(config-router)#network 172.16.0.0

5

Configure the 192.168.3.0 network into RIP.

R3(config-router)#network 192.168.3.0

Summary

The learning of RIP is a first step in the education of most network engineers. Because the protocol is such an easy example of distance vector protocols and uses a simple to understand metric (hops), it makes the transition into learning more complex routing protocols easier. Hopefully the content of this article will make the transition into learning routing protocols easier as well and can be used as an easy short review of RIP concepts and configuration.

Pearson IT Certification Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from Pearson IT Certification and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about Pearson IT Certification products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites; develop new products and services; conduct educational research; and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by Adobe Press. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.pearsonitcertification.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020