SlideShare a Scribd company logo
How to Configure Routing Information Protocol (RIP)?
If you are not familiar with Routing Information Protocol (RIP), click the following link
to view an introduction to Routing Information Protocol (RIP).

Routing Information Protocol (RIP) Configuration
Routing Information Protocol (RIP) can be configured in a router using the
following IOS commands. The "version 2" IOScommand 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.




Notes: If you are not familiar with a router console connection, click the following link
to learn how to connect the serial port of your computer to router console port.

Click the following link to learn how to connect to the console port of the router if
there is no serial port in your computer.



http://blog.router-switch.com/
Click the following links to learn how to use HyperTerminal                   terminal
emulator and PuTTY terminal emulator to configure router.

Hostname and IP address configuration in Router01
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
Router02(config)#



http://blog.router-switch.com/
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
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

http://blog.router-switch.com/
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
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)

http://blog.router-switch.com/
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.
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

http://blog.router-switch.com/
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.

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.

http://blog.router-switch.com/
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
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.
More Related Routing Protocol Tips:

http://blog.router-switch.com/
How to Configure IGRP (Interior Gateway Routing Protocol)?




http://blog.router-switch.com/
Ad

Recommended

Day 10 rip (2)
Day 10 rip (2)
CYBERINTELLIGENTS
 
Routing information protocol & rip configuration
Routing information protocol & rip configuration
3Anetwork com
 
RIP Routing Information Protocol Extreme Networks
RIP Routing Information Protocol Extreme Networks
Dani Royman Simanjuntak
 
Routing Information Protocol (RIP)
Routing Information Protocol (RIP)
waqasahmad1995
 
Rip presentation
Rip presentation
Ebrahim AlRahawe
 
Ripv2
Ripv2
Vivek Singh
 
Rip 1 rip 2
Rip 1 rip 2
CYBERINTELLIGENTS
 
Rip
Rip
Brijesh Madaan
 
Routing Information Protocol
Routing Information Protocol
Kashif Latif
 
Rip protocol
Rip protocol
r123027
 
Router Information Protocol
Router Information Protocol
raysoumik
 
network convergence problem and solutions
network convergence problem and solutions
Siddhi Viradiya
 
Routing information protocol
Routing information protocol
Saranya Parthasarathy
 
RIP (routing information protocol)
RIP (routing information protocol)
Netwax Lab
 
Static Routing
Static Routing
Sachii Dosti
 
Ch13
Ch13
tejindershami
 
Examen final ccna2
Examen final ccna2
Juli Yaret
 
Eigrp
Eigrp
Juan Zambrano Burgos
 
E routing final exam ccna 2 46
E routing final exam ccna 2 46
lslsc
 
Dynamic Routing RIP
Dynamic Routing RIP
Kishore Kumar
 
Open Shortest Path First
Open Shortest Path First
Kashif Latif
 
#RIPv1 vs #RIPv2
#RIPv1 vs #RIPv2
NetProtocol Xpert
 
RIP - Routing Information Protocol
RIP - Routing Information Protocol
selvakumar_b1985
 
Day 2 IP ROUTING
Day 2 IP ROUTING
anilinvns
 
IGRP and EIGRP
IGRP and EIGRP
IT Tech
 
Chapter 08
Chapter 08
guest35417d
 
Day 10 loops+ rip+ igrp
Day 10 loops+ rip+ igrp
CYBERINTELLIGENTS
 
Eigrp
Eigrp
thwayyib
 
How to configure interior gateway routing protocol (igrp)
How to configure interior gateway routing protocol (igrp)
IT Tech
 
Routing protocol commands list
Routing protocol commands list
actsupport .com
 

More Related Content

What's hot (20)

Routing Information Protocol
Routing Information Protocol
Kashif Latif
 
Rip protocol
Rip protocol
r123027
 
Router Information Protocol
Router Information Protocol
raysoumik
 
network convergence problem and solutions
network convergence problem and solutions
Siddhi Viradiya
 
Routing information protocol
Routing information protocol
Saranya Parthasarathy
 
RIP (routing information protocol)
RIP (routing information protocol)
Netwax Lab
 
Static Routing
Static Routing
Sachii Dosti
 
Ch13
Ch13
tejindershami
 
Examen final ccna2
Examen final ccna2
Juli Yaret
 
Eigrp
Eigrp
Juan Zambrano Burgos
 
E routing final exam ccna 2 46
E routing final exam ccna 2 46
lslsc
 
Dynamic Routing RIP
Dynamic Routing RIP
Kishore Kumar
 
Open Shortest Path First
Open Shortest Path First
Kashif Latif
 
#RIPv1 vs #RIPv2
#RIPv1 vs #RIPv2
NetProtocol Xpert
 
RIP - Routing Information Protocol
RIP - Routing Information Protocol
selvakumar_b1985
 
Day 2 IP ROUTING
Day 2 IP ROUTING
anilinvns
 
IGRP and EIGRP
IGRP and EIGRP
IT Tech
 
Chapter 08
Chapter 08
guest35417d
 
Day 10 loops+ rip+ igrp
Day 10 loops+ rip+ igrp
CYBERINTELLIGENTS
 
Eigrp
Eigrp
thwayyib
 
Routing Information Protocol
Routing Information Protocol
Kashif Latif
 
Rip protocol
Rip protocol
r123027
 
Router Information Protocol
Router Information Protocol
raysoumik
 
network convergence problem and solutions
network convergence problem and solutions
Siddhi Viradiya
 
RIP (routing information protocol)
RIP (routing information protocol)
Netwax Lab
 
Examen final ccna2
Examen final ccna2
Juli Yaret
 
E routing final exam ccna 2 46
E routing final exam ccna 2 46
lslsc
 
Open Shortest Path First
Open Shortest Path First
Kashif Latif
 
RIP - Routing Information Protocol
RIP - Routing Information Protocol
selvakumar_b1985
 
Day 2 IP ROUTING
Day 2 IP ROUTING
anilinvns
 
IGRP and EIGRP
IGRP and EIGRP
IT Tech
 

Similar to How to Configure Routing Information Protocol (RIP) (20)

How to configure interior gateway routing protocol (igrp)
How to configure interior gateway routing protocol (igrp)
IT Tech
 
Routing protocol commands list
Routing protocol commands list
actsupport .com
 
Ccna Commands In 10 Minutes
Ccna Commands In 10 Minutes
CCNAResources
 
Ccna commands
Ccna commands
Hajji Mboowa Yahaya
 
Ccna commands
Ccna commands
Hajji Mboowa Yahaya
 
ccna project on topic company infrastructure
ccna project on topic company infrastructure
Prince Gautam
 
Intro to router_config
Intro to router_config
arjuntrk
 
1
1
saman kumara
 
CCNA - Routing & Switching Commands
CCNA - Routing & Switching Commands
Eng. Emad Al-Atoum
 
Intro to router_config
Intro to router_config
97148881557
 
CCNA ALL IN ONE
CCNA ALL IN ONE
Sripati Mahapatra
 
Router configuration in packet tracer
Router configuration in packet tracer
Anabia Anabia
 
CCNA : Intro to Cisco IOS - Part 2
CCNA : Intro to Cisco IOS - Part 2
GLC Networks
 
Ccna command
Ccna command
Siddhartha Rajbhatt
 
Introduction to-cisco-routers
Introduction to-cisco-routers
97148881557
 
Router configuration in packet tracer
Router configuration in packet tracer
Anabia Anabia
 
General lab documentation~cisco router configuration
General lab documentation~cisco router configuration
sayedatif
 
Cisco router configuration tutorial
Cisco router configuration tutorial
IT Tech
 
Ccnacommand 140205001152-phpapp01
Ccnacommand 140205001152-phpapp01
A.S.M Shmimul Islam.
 
Cisco config
Cisco config
Ayas Tincem
 
How to configure interior gateway routing protocol (igrp)
How to configure interior gateway routing protocol (igrp)
IT Tech
 
Routing protocol commands list
Routing protocol commands list
actsupport .com
 
Ccna Commands In 10 Minutes
Ccna Commands In 10 Minutes
CCNAResources
 
ccna project on topic company infrastructure
ccna project on topic company infrastructure
Prince Gautam
 
Intro to router_config
Intro to router_config
arjuntrk
 
CCNA - Routing & Switching Commands
CCNA - Routing & Switching Commands
Eng. Emad Al-Atoum
 
Intro to router_config
Intro to router_config
97148881557
 
Router configuration in packet tracer
Router configuration in packet tracer
Anabia Anabia
 
CCNA : Intro to Cisco IOS - Part 2
CCNA : Intro to Cisco IOS - Part 2
GLC Networks
 
Introduction to-cisco-routers
Introduction to-cisco-routers
97148881557
 
Router configuration in packet tracer
Router configuration in packet tracer
Anabia Anabia
 
General lab documentation~cisco router configuration
General lab documentation~cisco router configuration
sayedatif
 
Cisco router configuration tutorial
Cisco router configuration tutorial
IT Tech
 
Ad

More from IT Tech (20)

Cisco ip phone key expansion module setup
Cisco ip phone key expansion module setup
IT Tech
 
Cisco catalyst 9200 series platform spec, licenses, transition guide
Cisco catalyst 9200 series platform spec, licenses, transition guide
IT Tech
 
Cisco isr 900 series highlights, platform specs, licenses, transition guide
Cisco isr 900 series highlights, platform specs, licenses, transition guide
IT Tech
 
Hpe pro liant gen9 to gen10 server transition guide
Hpe pro liant gen9 to gen10 server transition guide
IT Tech
 
The new cisco isr 4461 faq
The new cisco isr 4461 faq
IT Tech
 
New nexus 400 gigabit ethernet (400 g) switches
New nexus 400 gigabit ethernet (400 g) switches
IT Tech
 
Tested cisco isr 1100 delivers the richest set of wi-fi features
Tested cisco isr 1100 delivers the richest set of wi-fi features
IT Tech
 
Aruba campus and branch switching solution
Aruba campus and branch switching solution
IT Tech
 
Cisco transceiver module for compatible catalyst switches
Cisco transceiver module for compatible catalyst switches
IT Tech
 
Cisco ios on cisco catalyst switches
Cisco ios on cisco catalyst switches
IT Tech
 
Cisco's wireless solutions deployment modes
Cisco's wireless solutions deployment modes
IT Tech
 
Competitive switching comparison cisco vs. hpe aruba vs. huawei vs. dell
Competitive switching comparison cisco vs. hpe aruba vs. huawei vs. dell
IT Tech
 
Four reasons to consider the all in-one isr 1000
Four reasons to consider the all in-one isr 1000
IT Tech
 
The difference between yellow and white labeled ports on a nexus 2300 series fex
The difference between yellow and white labeled ports on a nexus 2300 series fex
IT Tech
 
Cisco transceiver modules for compatible cisco switches series
Cisco transceiver modules for compatible cisco switches series
IT Tech
 
Guide to the new cisco firepower 2100 series
Guide to the new cisco firepower 2100 series
IT Tech
 
892 f sfp configuration example
892 f sfp configuration example
IT Tech
 
Cisco nexus 7000 and nexus 7700
Cisco nexus 7000 and nexus 7700
IT Tech
 
Cisco firepower ngips series migration options
Cisco firepower ngips series migration options
IT Tech
 
Eol transceiver to replacement model
Eol transceiver to replacement model
IT Tech
 
Cisco ip phone key expansion module setup
Cisco ip phone key expansion module setup
IT Tech
 
Cisco catalyst 9200 series platform spec, licenses, transition guide
Cisco catalyst 9200 series platform spec, licenses, transition guide
IT Tech
 
Cisco isr 900 series highlights, platform specs, licenses, transition guide
Cisco isr 900 series highlights, platform specs, licenses, transition guide
IT Tech
 
Hpe pro liant gen9 to gen10 server transition guide
Hpe pro liant gen9 to gen10 server transition guide
IT Tech
 
The new cisco isr 4461 faq
The new cisco isr 4461 faq
IT Tech
 
New nexus 400 gigabit ethernet (400 g) switches
New nexus 400 gigabit ethernet (400 g) switches
IT Tech
 
Tested cisco isr 1100 delivers the richest set of wi-fi features
Tested cisco isr 1100 delivers the richest set of wi-fi features
IT Tech
 
Aruba campus and branch switching solution
Aruba campus and branch switching solution
IT Tech
 
Cisco transceiver module for compatible catalyst switches
Cisco transceiver module for compatible catalyst switches
IT Tech
 
Cisco ios on cisco catalyst switches
Cisco ios on cisco catalyst switches
IT Tech
 
Cisco's wireless solutions deployment modes
Cisco's wireless solutions deployment modes
IT Tech
 
Competitive switching comparison cisco vs. hpe aruba vs. huawei vs. dell
Competitive switching comparison cisco vs. hpe aruba vs. huawei vs. dell
IT Tech
 
Four reasons to consider the all in-one isr 1000
Four reasons to consider the all in-one isr 1000
IT Tech
 
The difference between yellow and white labeled ports on a nexus 2300 series fex
The difference between yellow and white labeled ports on a nexus 2300 series fex
IT Tech
 
Cisco transceiver modules for compatible cisco switches series
Cisco transceiver modules for compatible cisco switches series
IT Tech
 
Guide to the new cisco firepower 2100 series
Guide to the new cisco firepower 2100 series
IT Tech
 
892 f sfp configuration example
892 f sfp configuration example
IT Tech
 
Cisco nexus 7000 and nexus 7700
Cisco nexus 7000 and nexus 7700
IT Tech
 
Cisco firepower ngips series migration options
Cisco firepower ngips series migration options
IT Tech
 
Eol transceiver to replacement model
Eol transceiver to replacement model
IT Tech
 
Ad

How to Configure Routing Information Protocol (RIP)

  • 1. How to Configure Routing Information Protocol (RIP)? If you are not familiar with Routing Information Protocol (RIP), click the following link to view an introduction to Routing Information Protocol (RIP). Routing Information Protocol (RIP) Configuration Routing Information Protocol (RIP) can be configured in a router using the following IOS commands. The "version 2" IOScommand 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. Notes: If you are not familiar with a router console connection, click the following link to learn how to connect the serial port of your computer to router console port. Click the following link to learn how to connect to the console port of the router if there is no serial port in your computer. http://blog.router-switch.com/
  • 2. Click the following links to learn how to use HyperTerminal terminal emulator and PuTTY terminal emulator to configure router. Hostname and IP address configuration in Router01 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 Router02(config)# http://blog.router-switch.com/
  • 3. 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 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 http://blog.router-switch.com/
  • 4. 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 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) http://blog.router-switch.com/
  • 5. 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. 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 http://blog.router-switch.com/
  • 6. 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. 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. http://blog.router-switch.com/
  • 7. 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 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. More Related Routing Protocol Tips: http://blog.router-switch.com/
  • 8. How to Configure IGRP (Interior Gateway Routing Protocol)? http://blog.router-switch.com/