University of Ain Temouchent Belhadj Bouchaib ATUBB
Faculty of Science and Technology
Department of Mathematics and Technology
Academic Year 2024-2024
PW2 / Networks
Responsible of the matter : Mr A. BENZERBADJ
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 :
Figure 1 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
R1 Fa0/0 [Link] /24 ND
S0/0/0 [Link] /24 ND
R2 Fa0/0 [Link] /24 ND
S0/0/0 [Link] /24 ND
S0/0/1 [Link] /24 ND
R3 Fa0/0 [Link] /24 ND
S0/0/1 [Link] /24 ND
PC1 Carte [Link] /24 [Link]
réseau
PC2 Carte [Link] /24 [Link]
réseau
PC3 Carte [Link] /24 [Link]
réseau
Table 1 Interface addresses of the network devices in Figure 1.
Activate global conguration mode and access router R1 using
the CLI
Enter privileged mode with the command enable
Activate global conguration mode with the command
cong t
Congure the interfaces :
Enter conguration mode for the rst FastEthernet in-
terface with the command interface fa0/0.
Congure the IP address by typing the command ip address
[Link] [Link] and activate the interface with
the command no shutdown.
Enter conguration mode for the rst serial interface
by typing the command interface s0/0/0.
Congure the IP address using the command ip address [Link]
[Link].
Congure the clock rate using the command clock rate 64000,
then activate the interface using the command no shutdown.
Exit conguration mode by pressing Ctrl+Z. Save the congura-
tion by typing the command copy run start or wr.
2. Repeat (a) for the other two routers, R1 and R2.
3. On each of the three routers, check the status of the interfaces by typing
the command show ip interface brief.
4. Consult the IP routing table : Check the IP routing table of each of the
three routers using the command show ip route. Note that the routing
table contains only information about directly connected networks. In-
formation about other networks is provided via static routing (see Lab
1) or dynamic routing, as described below.
5. Congure the RIP protocol on router R1. The choice between RIP v1 or
RIP v2 must be justied.
(a) Using the CLI, enter privileged mode with the command enable.
(b) Activate global conguration mode with the command cong t.
(c) RIP protocol conguration :
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 : [Link]/24
and [Link]/24.
Congure the rst network using the command network [Link]
Congure the second network with the command network [Link]
(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 [Link],
[Link], and [Link], and these networks all participate in
RIP, the RIP routing process creates the summary address [Link]
for these routes. If an additional router is added to the network with
networks [Link] and [Link] and these networks partici-
pate in the RIP protocol, they will also be summarized to [Link].
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 [Link] [Link]
clock rate 2000000
R2 is DTE (Data Terminal Equipment) :
interface Serial0/0/0
ip address [Link] [Link]
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