Dynamic Routing RIP-tp
Dynamic Routing RIP-tp
Objective
The purpose of this lab is to learn how to congure the RIP dynamic routing
protocol on a Cisco router using the Packet Tracer network simulator.
Reminder
To reach networks that are not directly connected, additional entries are
needed in the IP routing table. These entries can be congured by the network
administrator (static routing - see Lab 1 -) or dynamically learned from other
routers. The Routing Information Protocol (RIP) can be congured to allow
routers to exchange information and discover remote networks.
Exercise
Consider the following network topology :
1. Create the network shown in Figure 1 using Packet Tracer. Make the
necessary congurations using the information provided in Table 1.
(a) Congure the IP information on the router R1 :
1
Device Interface IPv4 Subnet Mask Default
gateway
2
Enter router conguration mode by typing the command rou-
ter rip. In this mode, specify the networks directly connected
to the router to start the routing process for these networks. Two
networks are directly connected to router R1 : 192.168.1.0/24
and 192.168.2.0/24.
Congure the rst network using the command network 192.168.1.0
Congure the second network with the command network 192.168.2.0
(d) Save the conguration : Exit conguration mode by pressing Ctrl+Z.
Save the conguration by typing the command copy run start or
wr.
6. Examine the RIP parameters on router R1 by typing the command show
ip protocols in privileged mode CLI (Enter privileged mode by
typing the command enable).
7. Type the command debug ip rip in privileged mode on router R1 and
observe what happens.
8. Stop the debug mode on router R1 by typing the command undebug
all. You can test the debug ip rip command on the other routers (R2,
R3) when they have been congured.
9. Congure interface FastEthernet Fa0/0 on router R1 as passive in-
terface. To do this (Question for Master 1 only) :
(a) Activate global conguration mode by typing the command cong
t.
(b) Enter router conguration mode by typing the command router
rip.
(c) Then execute the command passive-interface Fa0/0.
(d) Exit conguration mode by typing Ctrl+Z.
(e) Save the conguration by typing copy run start or wr.
10. Repeat steps (5) through (8) for R1 and R2.
11. Check the RIP parameters for each of the three routers (R1, R2) by
typing the command show ip protocols.
12. Type the command show ip route to check the IP routing table of each
router. The routing table should contain an entry for each of the ve 5
networks.
13. Verify connectivity by pinging from each computer to the other two. Each
ping request should be successful.
Useful Information
1. Disabling route summarization under RIPv2
RIP V1 : Route summarization is always enabled. You cannot disable
it. RIP V1 automatically summarizes routes at network boundaries
(classful routing).
RIP V2 : Route summarization is enabled by default, but you can
disable it if needed. RIP V2 supports both classful and classless rou-
ting, which allows for more exibility in complex or non-contiguous
networks.
3
For example, if you have a router connected to networks 192.168.1.0,
192.168.2.0, and 192.168.3.0, and these networks all participate in
RIP, the RIP routing process creates the summary address 192.168.0.0
for these routes. If an additional router is added to the network with
networks 192.168.10.0 and 192.168.11.0 and these networks partici-
pate in the RIP protocol, they will also be summarized to 192.168.0.0.
To avoid any possibility of routing trac to the wrong location, di-
sable automatic summarization on routers creating conicting sum-
mary addresses.
To disable route summarization under RIPv2, enter the command no
auto-summary in the RIP protocol conguration mode.
2. Changing the Basic Timers of the RIP protocol using the following
command :
Router(cong-router)# timers basic 30 40 10 90
The default values of the basic timers are :
Update : 30 seconds
Invalid : 180 seconds
Hold Down : 180 seconds
Flush : 240 seconds
3. DCE and DTE :
DCE stands for data circuit-terminating, data communications, or
data carrier equipment - this is a modem or more generally, a line
adapter.
DTE stands for data terminal equipment which generally is a terminal
or a computer.
Basically, these two are the dierent ends of a serial line.
One side of the link (DCE), has to transmit the clock signal, which
controls the data rate, and the other side (DTE) receives the clock
signal. For example :
R1 is a DCE (circuit-terminating, data communications, or data
carrier equipment) :
interface Serial0/0/0
ip address 10.0.0.1 255.255.255.252
clock rate 2000000
R2 is DTE (Data Terminal Equipment) :
interface Serial0/0/0
ip address 10.0.0.2 255.255.255.252
The dierence between the two cables in packet tracer is just which
side you click rst :
With the DCE cable, (red zigzag with clock) the side you click
rst will be the DCE, the second will be DTE
With the DTE cable (red zigzag no clock) the side you click rst
will be DTE, the second will be DCE
Whichever way you do it, you'll see one side of the cable shows
the clock symbol : this is the DCE.
4
5