0% found this document useful (0 votes)
2 views3 pages

Tissemsilt University Faculty of Science and Technologie Department of Mathematics and Computer Science Practical Work (TP4) : Static and Routing

Uploaded by

mohameddz284848
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views3 pages

Tissemsilt University Faculty of Science and Technologie Department of Mathematics and Computer Science Practical Work (TP4) : Static and Routing

Uploaded by

mohameddz284848
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

L2/Computer Science/S4 Module :Networks 2024/2025

Tissemsilt University
Faculty of science and Technologie
Department of Mathematics and Computer Science

Practical Work(TP4): Static and Dynamic Routing

I. Objective : The objective of this practical work is to learn how to configure static and dynamic routes for a
Cisco router.
II. Static Routing Configuration :
Here is the network to configure:

• How many networks are there ? Provide the address of each network.
• Configure the interfaces of each router and the PCs of each network.
• Test ping between the PCs of different networks A, B, and C. What do you notice?
• Enter the CLI of Router0 (respectively on Router1) and then type the command:
• show ip route to display the routing table. What do you notice?
#show ip route (or sh ip route): This command displays the routing table to choose the best path to reach the
destination networks.
Lines starting with:
S: indicate static routes.
C: indicate that the networks are directly connected to the router.
S*: default route.
• Configuration of Static Routes
Adding a static route: There are two ways to add a static route:
o #ip route [@IP of the destination network] [destination network mask] [@IP of the next hop device]
o #ip route [@IP of the destination network] [destination network mask] [outgoing interface]
Adding a default route:
o #ip route 0.0.0.0 0.0.0.0 [@IP of the next hop device]
o #ip route 0.0.0.0 0.0.0.0 [outgoing interface]
Deleting a route:
o #no ip route [@IP of the destination network] [destination network mask] [@IP of the next hop device]
o #no ip route [@IP of the destination network] [destination network mask] [outgoing interface]

Z .Leila 1
L2/Computer Science/S4 Module :Networks 2024/2025

• Double-click on Router0, click on the CLI tab. Press Enter then type:
• enable // enter privileged mode (or simply)
# config terminal // open configuration session (or config t)
# ip route 192.168.3.0 255.255.255.0 e0/0/0 or
# ip route 192.168.3.0 255.255.255.0 10.0.0.2
# exit // close configuration session
# ctrl+z
• # show ip route // display Router0's routing table
• Double-click on Router1, click on the CLI tab. Press Enter then type:
• > enable // enter privileged mode
# config terminal // open configuration session
# ip route 192.168.1.0 255.255.255.0 fa0/1 or
# ip route 192.168.1.0 255.255.255.0 10.0.0.1
# ip route 192.168.2.0 255.255.255.0 fa0/1 or
# ip route 192.168.2.0 255.255.255.0 10.0.0.1
# exit // close configuration session
# ctrl+z
• # show ip route // display Router1's routing table
• Ping between the PCs of different networks A, B, and C to check for responses.
• Use the traceroute command to display the network nodes traversed.
Example: on PC2, type the command: tracert 192.168.3.3 to see the path between PC2 and PC8.
III. Dynamic Routing Configuration
The disadvantage of static routing is that it does not automatically adapt to changes in topology during an incident,
such as a route failure. Therefore, dynamic routing is used. In the following, we configure dynamic routing for the
same previous network. First, we clear the routing tables, and to do this, we delete the routes one by one as follows:
Router# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#no ip route 192.168.1.0 255.255.255.0 10.0.0.1
Router(config)#exit
We do this for all routes on both routers.

• Routing Algorithm:
There are several routing algorithms that differ in their operating principles, as well as the metric used to choose
a path between the source and destination. One class is called "Distance Vector". Algorithms in this class use the
number of hops as the metric for choosing the best path between two devices. The representative algorithm of
this class is the Routing Information Protocol (RIP).
This is the algorithm we will use to implement dynamic routing in the network. Note that this algorithm is
installed by default on Cisco routers.
• RIP Configuration:
For each router, we configure dynamic routing using the RIP algorithm using the "router rip" command. Then, for
each router interface, we add the route to the LAN network connected to that interface using the "network"
command.
Z .Leila 2
L2/Computer Science/S4 Module :Networks 2024/2025

o For Router 0:
Router# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#router rip
Router(config-router) # network 192.168.1.0
Router(config-router) # network 192.168.2.0
Router(config-router) # network 10.0.0.0
Router(config)#exit
Router#
o For Router 1:
Router# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#router rip
Router(config-router) # network 10.0.0.0
Router(config-router) # network 192.168.3.0
Router(config)#exit
Router#
o Display the routing table for each router
IV. Work required:

Questions:
1. Configure the different interfaces (Routers/PCs) according to the given networks.
2. Configure static routing.
3. Test ping between different PCs to verify the network.
4. Use the tracert command to display the paths between 2 PCs.
5. If Router R0 fails, and there is no possibility to replace it, propose a solution to keep the network operational

Z .Leila 3

You might also like