SlideShare a Scribd company logo
Routing Information Protocol & RIP Configuration
Introduction to Routing Information Protocol (RIP)
IP RIP (Routing Information Protocol) comes in two different versions: 1 and 2. Version 1
is a distance vector protocol (RFC 1058) and Version 2 is a hybrid protocol (RFCs 1721
and 1722).
Routing Information Protocol Version 1 (RIPv1)
RIPv1 uses local broadcasts to share routing information. These updates are periodic in
nature, occurring, by default, every 30 seconds. To prevent packets from circling around
a loop forever, both versions of RIP solve counting to infinity by placing a hop count limit
of 15 hops on packets. Any packet that reaches the sixteenth hop will be dropped. RIPv1
is a classful protocol. RIP supports up to six equal-cost paths to a single destination.
Equal-cost path are the paths where the metric is same (Hop count).
Routing Information Protocol (RIPv2)
RIPv2 is a distance vector protocol with routing enhancements built into it, and it is based
on RIPV1. Therefore, it is commonly called a hybrid protocol.
RIPv2 uses multicasts instead of broadcasts. RIPv2 supports triggered updates. When a
change occurs, a RIPv2 router will immediately propagate its routing information to its
connected neighbors. RIPv2 is a classless protocol and it supports variable-length subnet
masking (VLSM).
Both RIPv1 and RIPv2 uses hop count as the metric.
Differences between RIPv1 and RIPv2
RIPv1
Supports only classful routing (Does not support VLSM).
• No authentication.
• RIPv1 uses Broadcast.
RIPv2
•Supports classless routing (Supports VLSM).
RIPv2 incorporates the addition of the network mask in the update to allow classless
routing advertisements.
• Authentication is available.
1
• RIPv2 uses multi-cast instead of broadcast. Multicast communication reduces the
burden on the network devices that do not need to listen to RIP updates.
Routing Information Protocol (RIP) Configuration
Routing Information Protocol (RIP) can be configured in a router using the following IOS
commands. The “version 2″ IOS command specifies that we are using RIPv2.
Router>enable
Router#configure terminal
Router(config)# router rip
Router(config-router)# version 2
Router(config-router)# network network_id
Routing Information Protocol (RIP) – Lab Practice
The following diagram shows our lab setup. We have three routers, three switches and
three hosts connected as below. The host names, IP addresses and the interfaces of the
routers are shown in diagram. The IP addresses of the hosts are also shown in the
diagram.

Hostname and IP address configuration in Router01
2
Connect to Router01 console and use the following IOS commands to configure host
name as Router01.
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname Router01
Router01(config)#
Use the following IOS commands to open the fast ethernet interface Fa0/0 configuration
mode on Router01 and configure IP address as 172.16.0.1/16.
Router01>enable
Router01#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router01(config)#interface fa0/0
Router01(config-if)#ip address 172.16.0.1 255.255.0.0
Router01(config-if)#no shutdown
Use the following IOS commands to open the serial interface S0/0 configuration mode on
Router01 and configure IP addressas 172.17.0.1/16. You have to set a clock rate also
using the “clock rate” command on S0/0 interface, since this is the DCE side.
Router01>enable
Router01#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router01(config)#interface s0/0
Router01(config-if)#clock rate 64000
Router01(config-if)#ip address 172.17.0.1 255.255.0.0
Router01(config-if)#no shutdown
Do remember to run the “copy running-config startup-config” command from enable
mode, if you want to save the changes you have made in the router.
Hostname and IP address configuration in Router02
Connect to Router02 console and use the following IOS commands to configure host
name as Router02.
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname Router02
3
Router02(config)#
Use the following IOS commands to open the fast ethernet interface Fa0/0 configuration
mode on Router02 and configure IP address as 172.18.0.1/16.
Router02>enable
Router02#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router02(config)#interface fa0/0
Router02(config-if)#ip address 172.18.0.1 255.255.0.0
Router02(config-if)#no shutdown
Use the following IOS commands to open the serial interface S0/0 configuration mode on
Router02 and configure IP addressas 172.17.0.2/16.
Router02>enable
Router02#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router02(config)#interface s0/0
Router02(config-if)#ip address 172.17.0.2 255.255.0.0
Router02(config-if)#no shutdown
Use the following IOS commands to open the serial interface S0/1 configuration mode on
Router02 and configure IP addressas 172.19.0.1/16. You have to set a clock rate also
using the “clock rate” command on S0/1 interface, since this is the DCE side.
Router02>enable
Router02#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router02(config)#interface s0/1
Router02(config-if)#clock rate 64000
Router02(config-if)#ip address 172.19.0.1 255.255.0.0
Router02(config-if)#no shutdown
Do remember to run the “copy running-config startup-config” command from enable
mode, if you want to save the changes you have made in the router.
Hostname and IP address configuration in Router03
Connect to Router03 console and use the following IOS commands to configure host
name as Router03.
Router>enable
4
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname Router03
Router03(config)#
Use the following IOS commands to open the fast ethernet interface Fa0/0 configuration
mode on Router03 and configure IP address as 172.20.0.1/16.
Router03>enable
Router03#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router03(config)#interface fa0/0
Router03(config-if)#ip address 172.20.0.1 255.255.0.0
Router03(config-if)#no shutdown
Use the following IOS commands to open the serial interface S0/1 configuration mode on
Router03 and configure IP addressas 172.19.0.2/16.
Router03>enable
Router03#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router03(config)#interface s0/1
Router03(config-if)#ip address 172.19.0.2 255.255.0.0
Router03(config-if)#no shutdown
Do remember to run the “copy running-config startup-config” command from enable
mode, if you want to save the changes you have made in the router.
Routing Information Protocol Version 2 (RIPv2) configuration in Router01
Connect to Router01 console and use the following IOS commands to configure Routing
Information Protocol Version 2 (RIPv2) in Router01. Please refer the beginning of this
lesson to view the Routing Information Protocol Version 2 (RIPv2) configuration IOS
commands.
Using the IOS “network” command, as shown below, we specify only the directly
connected networks of this router.
Router01>enable
Router01#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router01(config)#router rip
Router01(config-router)#version 2
5
Router01(config-router)#network 172.16.0.0
Router01(config-router)#network 172.17.0.0
Router01(config-router)#exit
Router01(config)#exit
Router01#
Do remember to run the “copy running-config startup-config” command from enable
mode, if you want to save the changes you have made in the router.
Routing Information Protocol Version 2 (RIPv2) configuration in Router02
Connect to Router02 console and use the following IOS commands to configure Routing
Information Protocol Version 2 (RIPv2) in Router02. Please refer the beginning of this
lesson to view the Routing Information Protocol Version 2 (RIPv2) configurationIOS
commands.
Using the IOS “network” command, as shown below, we specify only the directly
connected networks of this router.
Router02>enable
Router02#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router02(config)#router rip
Router02(config-router)#version 2
Router02(config-router)#network 172.17.0.0
Router02(config-router)#network 172.18.0.0
Router02(config-router)#network 172.19.0.0
Router02(config-router)#exit
Router02(config)#exit
Router02#
Do remember to run the “copy running-config startup-config” command from enable
mode, if you want to save the changes you have made in the router.
Routing Information Protocol Version 2 (RIPv2) configuration in Router03
Connect to Router03 console and use the following IOS commands to configure Routing
Information Protocol Version 2 (RIPv2) in Router03. Please refer the beginning of this
lesson to view the Routing Information Protocol Version 2 (RIPv2) configurationIOS
commands.
Using the IOS “network” command, as shown below, we specify only the directly
connected networks of this router.
6
Router03>enable
Router03#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router03(config)#router rip
Router03(config-router)#version 2
Router03(config-router)#network 172.19.0.0
Router03(config-router)#network 172.20.0.0
Router03(config-router)#exit
Router03(config)#exit
Router03#
Do remember to run the “copy running-config startup-config” command from enable
mode, if you want to save the changes you have made in the router.
How to View the Routing Table in Router01
After the network is converged after the initial configuration and Routing Information
Protocol Version 2 (RIPv2) configuration, we can use the “show ip route” to view the
routing table in Router01, as shown below.
Router01>enable
Router01#show ip route
Codes: C – connected, S – static, I – IGRP, R – RIP, M – mobile, B – BGP
D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area
N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2
E1 – OSPF external type 1, E2 – OSPF external type 2, E – EGP
i – IS-IS, L1 – IS-IS level-1, L2 – IS-IS level-2, ia – IS-IS inter area
* – candidate default, U – per-user static route, o – ODR
P – periodic downloaded static route
Gateway of last resort is not set
C 172.16.0.0/16 is directly connected, FastEthernet0/0
C 172.17.0.0/16 is directly connected, Serial0/0
R 172.18.0.0/16 [120/1] via 172.17.0.2, 00:00:22, Serial0/0
R 172.19.0.0/16 [120/1] via 172.17.0.2, 00:00:22, Serial0/0
R 172.20.0.0/16 [120/2] via 172.17.0.2, 00:00:22, Serial0/0
The “R” character at the beginning of a line in routing table shows that it is a route
discovered by Routing Information Protocol Version 2 (RIPv2) and “C” character shows
that it is a directly connected network.
7
How to view the routing table in Router02
When the network is converged after the initial configuration and Routing Information
Protocol Version 2 (RIPv2) configuration, we can use the “show ip route” to view the
routing table in Router02, as shown below.
Router02>enable
Router02#show ip route
Codes: C – connected, S – static, I – IGRP, R – RIP, M – mobile, B – BGP
D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area
N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2
E1 – OSPF external type 1, E2 – OSPF external type 2, E – EGP
i – IS-IS, L1 – IS-IS level-1, L2 – IS-IS level-2, ia – IS-IS inter area
* – candidate default, U – per-user static route, o – ODR
P – periodic downloaded static route
Gateway of last resort is not set
R 172.16.0.0/16 [120/1] via 172.17.0.1, 00:00:07, Serial0/0
C 172.17.0.0/16 is directly connected, Serial0/0
C 172.18.0.0/16 is directly connected, FastEthernet0/0
C 172.19.0.0/16 is directly connected, Serial0/1
R 172.20.0.0/16 [120/1] via 172.19.0.2, 00:00:20, Serial0/1
The “R” character at the beginning of a line in routing table shows that it is a route
discovered by Routing Information Protocol Version 2 (RIPv2) and “C” character shows
that it is a directly connected network.
How to View the Routing Table in Router03
When the network is converged after the initial configuration and Routing Information
Protocol Version 2 (RIPv2) configuration, we can use the “show ip route” to view the
routing table in Router03, as shown below.
Router03>enable
Router03#show ip route
Codes: C – connected, S – static, I – IGRP, R – RIP, M – mobile, B – BGP
D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area
N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2
E1 – OSPF external type 1, E2 – OSPF external type 2, E – EGP
i – IS-IS, L1 – IS-IS level-1, L2 – IS-IS level-2, ia – IS-IS inter area
* – candidate default, U – per-user static route, o – ODR
P – periodic downloaded static route
8
Gateway of last resort is not set
R 172.16.0.0/16 [120/2] via 172.19.0.1, 00:00:02, Serial0/1
R 172.17.0.0/16 [120/1] via 172.19.0.1, 00:00:02, Serial0/1
R 172.18.0.0/16 [120/1] via 172.19.0.1, 00:00:02, Serial0/1
C 172.19.0.0/16 is directly connected, Serial0/1
C 172.20.0.0/16 is directly connected, FastEthernet0/0
The “R” character at the beginning of a line in routing table shows that it is a route
discovered by Routing Information Protocol Version 2 (RIPv2) and “C” character shows
that it is a directly connected network.
Verify the Connectivity between Networks Using the Ping Command
To verify the Routing Information Protocol Version 2 (RIPv2) routes and the connectivity
between networks, run the ping command from Host01 (IP address: 172.16.0.10/16) to
Host03 (IP address: 172.20.0.10/16).
C:>ping 172.20.0.10
Pinging 172.20.0.10 with 32 bytes of data:
Reply from 172.20.0.10: bytes=32 time=172ms TTL=125
Reply from 172.20.0.10: bytes=32 time=188ms TTL=125
Reply from 172.20.0.10: bytes=32 time=157ms TTL=125
Reply from 172.20.0.10: bytes=32 time=188ms TTL=125
Ping statistics for 172.20.0.10:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 157ms, Maximum = 188ms, Average = 176ms
The ping reply from Host03 (IP address: 172.20.0.10/16) shows that the Routing
Information Protocol Version 2 (RIPv2) is configured well in three routers and there is
network connectivity between different networks.
Reference from http://www.omnisecu.com/cisco-certified-network-associate-ccna/how-toconfigure-routing-information-protocol-rip.htm

9
3Anetwork.com is a world leading Cisco networking products wholesaler, we wholesale
original new Cisco networking equipments, including Cisco Catalyst switches, Cisco
routers, Cisco firewalls, Cisco wireless products, Cisco modules and interface cards
products at competitive price and ship to worldwide.
Our website: http://www.3anetwork.com
Telephone: +852-3069-7733
Email: info@3Anetwork.com
Address: 23/F Lucky Plaza, 315-321 Lockhart Road, Wanchai, Hongkong

10

More Related Content

PPTX
Rip presentation
PPTX
Rip 1 rip 2
DOCX
How to Configure Routing Information Protocol (RIP)
PPT
RIP Routing Information Protocol Extreme Networks
PPT
Routing Information Protocol (RIP)
PPTX
Routing Information Protocol
PPTX
Router Information Protocol
Rip presentation
Rip 1 rip 2
How to Configure Routing Information Protocol (RIP)
RIP Routing Information Protocol Extreme Networks
Routing Information Protocol (RIP)
Routing Information Protocol
Router Information Protocol

What's hot (20)

PDF
RIP (routing information protocol)
PPTX
Routing information protocol
PPT
PPTX
network convergence problem and solutions
PPT
Day 10 rip (2)
PPT
Rip protocol
PPTX
#RIPv1 vs #RIPv2
PPTX
RIP Overview
PPTX
RIP Loop Prevention
PDF
Routing Information Protocol (RIP)
PPT
Static Routing
PPTX
Open Shortest Path First
PPSX
RIP - Routing Information Protocol
PDF
IGRP and EIGRP
PPT
PDF
Day 2 IP ROUTING
DOC
E routing final exam ccna 2 46
PPT
Chapter6ccna
PDF
Examen final ccna2
RIP (routing information protocol)
Routing information protocol
network convergence problem and solutions
Day 10 rip (2)
Rip protocol
#RIPv1 vs #RIPv2
RIP Overview
RIP Loop Prevention
Routing Information Protocol (RIP)
Static Routing
Open Shortest Path First
RIP - Routing Information Protocol
IGRP and EIGRP
Day 2 IP ROUTING
E routing final exam ccna 2 46
Chapter6ccna
Examen final ccna2
Ad

Viewers also liked (18)

PPTX
Routing Information Protocol
PDF
Protocol data unit (pdu) a simulation
PPTX
Routing protocols
PPTX
Performance Analysis of Dynamic Routing Protocols using OPNET
PDF
ENRM 1001 newsletter, Group 9
DOCX
Routing Information Protocol
PPT
CCNA PPT
PPT
PPTX
Networking Project(FINAL)
PDF
Creating a Simple, Accessible On/Off Switch
PPT
Dynamic Routing RIP
PPTX
Routing Protocols and Concepts: Ch5 - Routing Information Protocol (RIP v1)
PPT
Switch: How to Change Things When Change is Hard
PPTX
CCNP Route EIGRP Overview
PDF
CCNAv5 - S3: Chapter 7 EIGRP
PDF
Routing Protocol EIGRP
PPT
Stitch, seam ppt
PDF
PERFORMANCE EVALUATION OF RIP AND OSPF IN IPV6 USING OPNET 14.5 SIMULATOR
Routing Information Protocol
Protocol data unit (pdu) a simulation
Routing protocols
Performance Analysis of Dynamic Routing Protocols using OPNET
ENRM 1001 newsletter, Group 9
Routing Information Protocol
CCNA PPT
Networking Project(FINAL)
Creating a Simple, Accessible On/Off Switch
Dynamic Routing RIP
Routing Protocols and Concepts: Ch5 - Routing Information Protocol (RIP v1)
Switch: How to Change Things When Change is Hard
CCNP Route EIGRP Overview
CCNAv5 - S3: Chapter 7 EIGRP
Routing Protocol EIGRP
Stitch, seam ppt
PERFORMANCE EVALUATION OF RIP AND OSPF IN IPV6 USING OPNET 14.5 SIMULATOR
Ad

Similar to Routing information protocol & rip configuration (20)

DOCX
How to configure interior gateway routing protocol (igrp)
PDF
Routing protocol commands list
PPTX
ccna project on topic company infrastructure
DOC
Ccna commands
DOC
Ccna commands
PDF
Ccna Commands In 10 Minutes
PPT
Intro to router_config
PPTX
ccna summer training ppt ( Cisco certified network analysis) ppt. by Traun k...
PPTX
Introduction 140318015826-phpapp01
PPTX
PPTX
Router configuration in packet tracer
PDF
CCNA - Routing & Switching Commands
PPT
Intro to router_config
PPTX
Router configuration in packet tracer
PDF
General lab documentation~cisco router configuration
PDF
Cisco Internetworking Operating System (ios)
PPT
Introduction to-cisco-routers
PPTX
INTRODUCTION TO IOS AND CISCO ROUTERS
DOCX
Ccna command
How to configure interior gateway routing protocol (igrp)
Routing protocol commands list
ccna project on topic company infrastructure
Ccna commands
Ccna commands
Ccna Commands In 10 Minutes
Intro to router_config
ccna summer training ppt ( Cisco certified network analysis) ppt. by Traun k...
Introduction 140318015826-phpapp01
Router configuration in packet tracer
CCNA - Routing & Switching Commands
Intro to router_config
Router configuration in packet tracer
General lab documentation~cisco router configuration
Cisco Internetworking Operating System (ios)
Introduction to-cisco-routers
INTRODUCTION TO IOS AND CISCO ROUTERS
Ccna command

More from 3Anetwork com (20)

DOC
Cisco sfp modules
DOC
Cisco 3900 and cisco 2900 series routers
DOC
Cisco catalyst 2960 x series
DOC
Cisco catalyst 3750 x series switches
DOC
Cisco switches for small business
DOC
How to recover the password for cisco 2900 integrated services router
DOC
Cisco 4 and 8-port gigabit ethernet ehwi cs
DOC
Configuring the cisco switch with the cli based setup program
DOC
Cisco 2960 basic configuration – vlan configuration
DOC
Configuring a Cisco Router as a PPPoE Client for DSL Connectivity
DOC
Cisco catalyst 3850 series switches datasheet
DOC
Cisco catalyst 2960 series switches overview
DOC
Enterprise Network Manager: the Router-On-A-stick
DOC
Cisco Catalyst 2960-X Datasheet
DOC
How to configure a catalyst 3750 x
DOC
Hubs vs switches vs routers
DOC
Installing and removing sfp and sfp+ transceiver modules
DOC
Dmvpn with configuration example
DOC
Cisco unified access from vision to reality
DOC
How to use time domain reflectometer (tdr)
Cisco sfp modules
Cisco 3900 and cisco 2900 series routers
Cisco catalyst 2960 x series
Cisco catalyst 3750 x series switches
Cisco switches for small business
How to recover the password for cisco 2900 integrated services router
Cisco 4 and 8-port gigabit ethernet ehwi cs
Configuring the cisco switch with the cli based setup program
Cisco 2960 basic configuration – vlan configuration
Configuring a Cisco Router as a PPPoE Client for DSL Connectivity
Cisco catalyst 3850 series switches datasheet
Cisco catalyst 2960 series switches overview
Enterprise Network Manager: the Router-On-A-stick
Cisco Catalyst 2960-X Datasheet
How to configure a catalyst 3750 x
Hubs vs switches vs routers
Installing and removing sfp and sfp+ transceiver modules
Dmvpn with configuration example
Cisco unified access from vision to reality
How to use time domain reflectometer (tdr)

Recently uploaded (20)

PDF
Roadmap Map-digital Banking feature MB,IB,AB
PDF
Training And Development of Employee .pdf
PPTX
Probability Distribution, binomial distribution, poisson distribution
PPTX
job Avenue by vinith.pptxvnbvnvnvbnvbnbmnbmbh
PPTX
Business Ethics - An introduction and its overview.pptx
PDF
20250805_A. Stotz All Weather Strategy - Performance review July 2025.pdf
PDF
Reconciliation AND MEMORANDUM RECONCILATION
PPTX
5 Stages of group development guide.pptx
PDF
Deliverable file - Regulatory guideline analysis.pdf
PPT
Chapter four Project-Preparation material
PDF
Unit 1 Cost Accounting - Cost sheet
PPT
Data mining for business intelligence ch04 sharda
PPTX
The Marketing Journey - Tracey Phillips - Marketing Matters 7-2025.pptx
PPTX
HR Introduction Slide (1).pptx on hr intro
PDF
BsN 7th Sem Course GridNNNNNNNN CCN.pdf
PDF
Chapter 5_Foreign Exchange Market in .pdf
PDF
How to Get Funding for Your Trucking Business
PPTX
Belch_12e_PPT_Ch18_Accessible_university.pptx
PDF
DOC-20250806-WA0002._20250806_112011_0000.pdf
DOCX
Euro SEO Services 1st 3 General Updates.docx
Roadmap Map-digital Banking feature MB,IB,AB
Training And Development of Employee .pdf
Probability Distribution, binomial distribution, poisson distribution
job Avenue by vinith.pptxvnbvnvnvbnvbnbmnbmbh
Business Ethics - An introduction and its overview.pptx
20250805_A. Stotz All Weather Strategy - Performance review July 2025.pdf
Reconciliation AND MEMORANDUM RECONCILATION
5 Stages of group development guide.pptx
Deliverable file - Regulatory guideline analysis.pdf
Chapter four Project-Preparation material
Unit 1 Cost Accounting - Cost sheet
Data mining for business intelligence ch04 sharda
The Marketing Journey - Tracey Phillips - Marketing Matters 7-2025.pptx
HR Introduction Slide (1).pptx on hr intro
BsN 7th Sem Course GridNNNNNNNN CCN.pdf
Chapter 5_Foreign Exchange Market in .pdf
How to Get Funding for Your Trucking Business
Belch_12e_PPT_Ch18_Accessible_university.pptx
DOC-20250806-WA0002._20250806_112011_0000.pdf
Euro SEO Services 1st 3 General Updates.docx

Routing information protocol & rip configuration

  • 1. Routing Information Protocol & RIP Configuration Introduction to Routing Information Protocol (RIP) IP RIP (Routing Information Protocol) comes in two different versions: 1 and 2. Version 1 is a distance vector protocol (RFC 1058) and Version 2 is a hybrid protocol (RFCs 1721 and 1722). Routing Information Protocol Version 1 (RIPv1) RIPv1 uses local broadcasts to share routing information. These updates are periodic in nature, occurring, by default, every 30 seconds. To prevent packets from circling around a loop forever, both versions of RIP solve counting to infinity by placing a hop count limit of 15 hops on packets. Any packet that reaches the sixteenth hop will be dropped. RIPv1 is a classful protocol. RIP supports up to six equal-cost paths to a single destination. Equal-cost path are the paths where the metric is same (Hop count). Routing Information Protocol (RIPv2) RIPv2 is a distance vector protocol with routing enhancements built into it, and it is based on RIPV1. Therefore, it is commonly called a hybrid protocol. RIPv2 uses multicasts instead of broadcasts. RIPv2 supports triggered updates. When a change occurs, a RIPv2 router will immediately propagate its routing information to its connected neighbors. RIPv2 is a classless protocol and it supports variable-length subnet masking (VLSM). Both RIPv1 and RIPv2 uses hop count as the metric. Differences between RIPv1 and RIPv2 RIPv1 Supports only classful routing (Does not support VLSM). • No authentication. • RIPv1 uses Broadcast. RIPv2 •Supports classless routing (Supports VLSM). RIPv2 incorporates the addition of the network mask in the update to allow classless routing advertisements. • Authentication is available. 1
  • 2. • RIPv2 uses multi-cast instead of broadcast. Multicast communication reduces the burden on the network devices that do not need to listen to RIP updates. Routing Information Protocol (RIP) Configuration Routing Information Protocol (RIP) can be configured in a router using the following IOS commands. The “version 2″ IOS command specifies that we are using RIPv2. Router>enable Router#configure terminal Router(config)# router rip Router(config-router)# version 2 Router(config-router)# network network_id Routing Information Protocol (RIP) – Lab Practice The following diagram shows our lab setup. We have three routers, three switches and three hosts connected as below. The host names, IP addresses and the interfaces of the routers are shown in diagram. The IP addresses of the hosts are also shown in the diagram. Hostname and IP address configuration in Router01 2
  • 3. Connect to Router01 console and use the following IOS commands to configure host name as Router01. Router>enable Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname Router01 Router01(config)# Use the following IOS commands to open the fast ethernet interface Fa0/0 configuration mode on Router01 and configure IP address as 172.16.0.1/16. Router01>enable Router01#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router01(config)#interface fa0/0 Router01(config-if)#ip address 172.16.0.1 255.255.0.0 Router01(config-if)#no shutdown Use the following IOS commands to open the serial interface S0/0 configuration mode on Router01 and configure IP addressas 172.17.0.1/16. You have to set a clock rate also using the “clock rate” command on S0/0 interface, since this is the DCE side. Router01>enable Router01#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router01(config)#interface s0/0 Router01(config-if)#clock rate 64000 Router01(config-if)#ip address 172.17.0.1 255.255.0.0 Router01(config-if)#no shutdown Do remember to run the “copy running-config startup-config” command from enable mode, if you want to save the changes you have made in the router. Hostname and IP address configuration in Router02 Connect to Router02 console and use the following IOS commands to configure host name as Router02. Router>enable Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname Router02 3
  • 4. Router02(config)# Use the following IOS commands to open the fast ethernet interface Fa0/0 configuration mode on Router02 and configure IP address as 172.18.0.1/16. Router02>enable Router02#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router02(config)#interface fa0/0 Router02(config-if)#ip address 172.18.0.1 255.255.0.0 Router02(config-if)#no shutdown Use the following IOS commands to open the serial interface S0/0 configuration mode on Router02 and configure IP addressas 172.17.0.2/16. Router02>enable Router02#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router02(config)#interface s0/0 Router02(config-if)#ip address 172.17.0.2 255.255.0.0 Router02(config-if)#no shutdown Use the following IOS commands to open the serial interface S0/1 configuration mode on Router02 and configure IP addressas 172.19.0.1/16. You have to set a clock rate also using the “clock rate” command on S0/1 interface, since this is the DCE side. Router02>enable Router02#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router02(config)#interface s0/1 Router02(config-if)#clock rate 64000 Router02(config-if)#ip address 172.19.0.1 255.255.0.0 Router02(config-if)#no shutdown Do remember to run the “copy running-config startup-config” command from enable mode, if you want to save the changes you have made in the router. Hostname and IP address configuration in Router03 Connect to Router03 console and use the following IOS commands to configure host name as Router03. Router>enable 4
  • 5. Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname Router03 Router03(config)# Use the following IOS commands to open the fast ethernet interface Fa0/0 configuration mode on Router03 and configure IP address as 172.20.0.1/16. Router03>enable Router03#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router03(config)#interface fa0/0 Router03(config-if)#ip address 172.20.0.1 255.255.0.0 Router03(config-if)#no shutdown Use the following IOS commands to open the serial interface S0/1 configuration mode on Router03 and configure IP addressas 172.19.0.2/16. Router03>enable Router03#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router03(config)#interface s0/1 Router03(config-if)#ip address 172.19.0.2 255.255.0.0 Router03(config-if)#no shutdown Do remember to run the “copy running-config startup-config” command from enable mode, if you want to save the changes you have made in the router. Routing Information Protocol Version 2 (RIPv2) configuration in Router01 Connect to Router01 console and use the following IOS commands to configure Routing Information Protocol Version 2 (RIPv2) in Router01. Please refer the beginning of this lesson to view the Routing Information Protocol Version 2 (RIPv2) configuration IOS commands. Using the IOS “network” command, as shown below, we specify only the directly connected networks of this router. Router01>enable Router01#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router01(config)#router rip Router01(config-router)#version 2 5
  • 6. Router01(config-router)#network 172.16.0.0 Router01(config-router)#network 172.17.0.0 Router01(config-router)#exit Router01(config)#exit Router01# Do remember to run the “copy running-config startup-config” command from enable mode, if you want to save the changes you have made in the router. Routing Information Protocol Version 2 (RIPv2) configuration in Router02 Connect to Router02 console and use the following IOS commands to configure Routing Information Protocol Version 2 (RIPv2) in Router02. Please refer the beginning of this lesson to view the Routing Information Protocol Version 2 (RIPv2) configurationIOS commands. Using the IOS “network” command, as shown below, we specify only the directly connected networks of this router. Router02>enable Router02#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router02(config)#router rip Router02(config-router)#version 2 Router02(config-router)#network 172.17.0.0 Router02(config-router)#network 172.18.0.0 Router02(config-router)#network 172.19.0.0 Router02(config-router)#exit Router02(config)#exit Router02# Do remember to run the “copy running-config startup-config” command from enable mode, if you want to save the changes you have made in the router. Routing Information Protocol Version 2 (RIPv2) configuration in Router03 Connect to Router03 console and use the following IOS commands to configure Routing Information Protocol Version 2 (RIPv2) in Router03. Please refer the beginning of this lesson to view the Routing Information Protocol Version 2 (RIPv2) configurationIOS commands. Using the IOS “network” command, as shown below, we specify only the directly connected networks of this router. 6
  • 7. Router03>enable Router03#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router03(config)#router rip Router03(config-router)#version 2 Router03(config-router)#network 172.19.0.0 Router03(config-router)#network 172.20.0.0 Router03(config-router)#exit Router03(config)#exit Router03# Do remember to run the “copy running-config startup-config” command from enable mode, if you want to save the changes you have made in the router. How to View the Routing Table in Router01 After the network is converged after the initial configuration and Routing Information Protocol Version 2 (RIPv2) configuration, we can use the “show ip route” to view the routing table in Router01, as shown below. Router01>enable Router01#show ip route Codes: C – connected, S – static, I – IGRP, R – RIP, M – mobile, B – BGP D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2 E1 – OSPF external type 1, E2 – OSPF external type 2, E – EGP i – IS-IS, L1 – IS-IS level-1, L2 – IS-IS level-2, ia – IS-IS inter area * – candidate default, U – per-user static route, o – ODR P – periodic downloaded static route Gateway of last resort is not set C 172.16.0.0/16 is directly connected, FastEthernet0/0 C 172.17.0.0/16 is directly connected, Serial0/0 R 172.18.0.0/16 [120/1] via 172.17.0.2, 00:00:22, Serial0/0 R 172.19.0.0/16 [120/1] via 172.17.0.2, 00:00:22, Serial0/0 R 172.20.0.0/16 [120/2] via 172.17.0.2, 00:00:22, Serial0/0 The “R” character at the beginning of a line in routing table shows that it is a route discovered by Routing Information Protocol Version 2 (RIPv2) and “C” character shows that it is a directly connected network. 7
  • 8. How to view the routing table in Router02 When the network is converged after the initial configuration and Routing Information Protocol Version 2 (RIPv2) configuration, we can use the “show ip route” to view the routing table in Router02, as shown below. Router02>enable Router02#show ip route Codes: C – connected, S – static, I – IGRP, R – RIP, M – mobile, B – BGP D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2 E1 – OSPF external type 1, E2 – OSPF external type 2, E – EGP i – IS-IS, L1 – IS-IS level-1, L2 – IS-IS level-2, ia – IS-IS inter area * – candidate default, U – per-user static route, o – ODR P – periodic downloaded static route Gateway of last resort is not set R 172.16.0.0/16 [120/1] via 172.17.0.1, 00:00:07, Serial0/0 C 172.17.0.0/16 is directly connected, Serial0/0 C 172.18.0.0/16 is directly connected, FastEthernet0/0 C 172.19.0.0/16 is directly connected, Serial0/1 R 172.20.0.0/16 [120/1] via 172.19.0.2, 00:00:20, Serial0/1 The “R” character at the beginning of a line in routing table shows that it is a route discovered by Routing Information Protocol Version 2 (RIPv2) and “C” character shows that it is a directly connected network. How to View the Routing Table in Router03 When the network is converged after the initial configuration and Routing Information Protocol Version 2 (RIPv2) configuration, we can use the “show ip route” to view the routing table in Router03, as shown below. Router03>enable Router03#show ip route Codes: C – connected, S – static, I – IGRP, R – RIP, M – mobile, B – BGP D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2 E1 – OSPF external type 1, E2 – OSPF external type 2, E – EGP i – IS-IS, L1 – IS-IS level-1, L2 – IS-IS level-2, ia – IS-IS inter area * – candidate default, U – per-user static route, o – ODR P – periodic downloaded static route 8
  • 9. Gateway of last resort is not set R 172.16.0.0/16 [120/2] via 172.19.0.1, 00:00:02, Serial0/1 R 172.17.0.0/16 [120/1] via 172.19.0.1, 00:00:02, Serial0/1 R 172.18.0.0/16 [120/1] via 172.19.0.1, 00:00:02, Serial0/1 C 172.19.0.0/16 is directly connected, Serial0/1 C 172.20.0.0/16 is directly connected, FastEthernet0/0 The “R” character at the beginning of a line in routing table shows that it is a route discovered by Routing Information Protocol Version 2 (RIPv2) and “C” character shows that it is a directly connected network. Verify the Connectivity between Networks Using the Ping Command To verify the Routing Information Protocol Version 2 (RIPv2) routes and the connectivity between networks, run the ping command from Host01 (IP address: 172.16.0.10/16) to Host03 (IP address: 172.20.0.10/16). C:>ping 172.20.0.10 Pinging 172.20.0.10 with 32 bytes of data: Reply from 172.20.0.10: bytes=32 time=172ms TTL=125 Reply from 172.20.0.10: bytes=32 time=188ms TTL=125 Reply from 172.20.0.10: bytes=32 time=157ms TTL=125 Reply from 172.20.0.10: bytes=32 time=188ms TTL=125 Ping statistics for 172.20.0.10: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 157ms, Maximum = 188ms, Average = 176ms The ping reply from Host03 (IP address: 172.20.0.10/16) shows that the Routing Information Protocol Version 2 (RIPv2) is configured well in three routers and there is network connectivity between different networks. Reference from http://www.omnisecu.com/cisco-certified-network-associate-ccna/how-toconfigure-routing-information-protocol-rip.htm 9
  • 10. 3Anetwork.com is a world leading Cisco networking products wholesaler, we wholesale original new Cisco networking equipments, including Cisco Catalyst switches, Cisco routers, Cisco firewalls, Cisco wireless products, Cisco modules and interface cards products at competitive price and ship to worldwide. Our website: http://www.3anetwork.com Telephone: +852-3069-7733 Email: info@3Anetwork.com Address: 23/F Lucky Plaza, 315-321 Lockhart Road, Wanchai, Hongkong 10