0% found this document useful (0 votes)
23 views

Lab-03 Dynamic Routing

Computer Networks Lab 03

Uploaded by

shefat2002
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

Lab-03 Dynamic Routing

Computer Networks Lab 03

Uploaded by

shefat2002
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

Lab Report

Course Code: CSE314


Course Name: Computer Networks

Lab No: 03
Lab Task: Dynamic Routing.

Submission Date: 16-08-2023

Submitted to Submitted By
Mr. Narayan Ranjan Chakraborty Name: Asma Akter Mitu
Associate Professor ID: 201-15-3134
Department of CSE Section: 60_B
Daffodil International University Department of CSE
Daffodil International University
Lab Task: 03
Title: Dynamic Routing.

Equipment:

No Name Model/Type Quantity


1. Router Generic (PT) 03
2. End PC 08
Device
3. Cable i) Cross Over 12
ii) Serial DCE 02
4. Switch 2950-24 04

Configuration:
Connecting End Default
Switch IP Address Subnet Mask
Device Device Gateway
PC0 192.168.10.2
Switch00 192.168.10.1
PC1 192.168.10.3
Router1
PC2 192.168.20.2
Switch01 192.168.20.1
PC3 192.168.20.3
255.255.255.255
PC4 192.168.50.2
Switch10 192.168.50.1
PC5 192.168.50.3
Router2
PC6 192.168.30.2
Switch11 192.168.30.1
PC7 192.168.30.3
Router0 -

S2/0 S3/0
Router1 192.168.40.1 -
Router2 192.168.60.2 -
Router0 192.168.40.2 192.168.60.3

Diagram:
Command: (Router CLI)

Router: 0
Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int s2/0
Router(config-if)#ip add 192.168.40.2 255.255.255.0
Router(config-if)#no shut
Router(config-if)#
%LINK-5-CHANGED: Interface Serial2/0, changed state to up
Router(config-if)#int s3/0
Router(config-if)#ip add 192.168.60.2 255.255.255.0
Router(config-if)#no shut
%LINK-5-CHANGED: Interface Serial3/0, changed state to up

Router(config-if)#ex
Router(config)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial3/0, changed
state to up
Router(config)#router rip
Router(config-router)#network 192.168.40.2
Router(config-router)#network 192.168.60.2
Router#
%SYS-5-CONFIG_I: Configured from console by console
Router#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
Router: 01
Router>enable
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config-if)#int f1/0
Router(config-if)#ip add 192.168.50.1 255.255.255.0
Router(config-if)#no shut
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet1/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0,
changed state to up
Router(config-if)#int f0/0
Router(config-if)#ip add 192.168.10.1 255.255.255.0
Router(config-if)#no shut
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0,


changed state to up

Router(config-if)#int s2/0
Router(config-if)#ip add 192.168.40.1 255.255.255.0
Router(config-if)#no shut

%LINK-5-CHANGED: Interface Serial2/0, changed state to down


Router(config-if)#ex
Router(config)#ex
Router#
%SYS-5-CONFIG_I: Configured from console by console
copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
Router#en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#router rip
Router(config-router)#network 192.168.10.1
Router(config-router)#network 192.168.40.1
Router(config-router)#network 192.168.50.1
Router: 02
Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int f0/1
%Invalid interface type and number
Router(config)#int f0/0
Router(config-if)#ip add 192.168.20.1 255.255.255.0
Router(config-if)#no shut
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0,


changed state to up

Router(config-if)#int f1/0
Router(config-if)#ip add 192.168.60.1 255.255.255.0
Router(config-if)#ip add 192.168.30.1 255.255.255.0
Router(config-if)#no shut

Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet1/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0,


changed state to up

Router(config-if)#int s2/0
Router(config-if)#ip add 192.168.60.1 255.255.255.0
Router(config-if)#no shut

%LINK-5-CHANGED: Interface Serial2/0, changed state to down


Router(config-if)#ex
Router(config)#ex
Router#
%SYS-5-CONFIG_I: Configured from console by console
copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#router rip
Router(config-router)#network 192.168.20.1
Router(config-router)#network 192.168.60.1
Router(config-router)#network 192.168.30.1
Result: (Command Prompt)
PC0

Packet Tracer PC Command Line 1.0


PC>ping 192.168.50.2
Pinging 192.168.50.2 with 32 bytes of data:

Reply from 192.168.50.2: bytes=32 time=0ms TTL=127


Reply from 192.168.50.2: bytes=32 time=0ms TTL=127
Reply from 192.168.50.2: bytes=32 time=3ms TTL=127
Reply from 192.168.50.2: bytes=32 time=0ms TTL=127

Ping statistics for 192.168.50.2:


Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 3ms, Average = 0ms

PC>ping 192.168.30.3

Pinging 192.168.30.3 with 32 bytes of data:

Reply from 192.168.30.3: bytes=32 time=6ms TTL=125


Reply from 192.168.30.3: bytes=32 time=7ms TTL=125
Reply from 192.168.30.3: bytes=32 time=10ms TTL=125
Reply from 192.168.30.3: bytes=32 time=7ms TTL=125
Ping statistics for 192.168.30.3:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 6ms, Maximum = 10ms, Average =
PC3
Packet Tracer PC Command Line 1
C>ping 192.168.50.2

Pinging 192.168.50.2 with 32 bytes of data:


Reply from 192.168.50.2: bytes=32 time=2ms TTL=125
Reply from 192.168.50.2: bytes=32 time=6ms TTL=125
Reply from 192.168.50.2: bytes=32 time=7ms TTL=125
Reply from 192.168.50.2: bytes=32 time=8ms TTL=125
Ping statistics for 192.168.50.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 2ms, Maximum = 8ms, Average = 5msMinimum = 8ms,
Maximum = 21ms, Average = 14ms

PC7
Packet Tracer PC Command Line 1.0
PC>ping 192.168.10.3

Pinging 192.168.10.3 with 32 bytes of data:

Reply from 192.168.10.3: bytes=32 time=2ms TTL=125


Reply from 192.168.10.3: bytes=32 time=8ms TTL=125
Reply from 192.168.10.3: bytes=32 time=7ms TTL=125
Reply from 192.168.10.3: bytes=32 time=5ms TTL=125
Ping statistics for 192.168.10.3:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 2ms, Maximum = 8ms, Average = 5ms

Comment:
We successfully implemented Dynamic routing across a
network of three routers connected by serial DCE cables in this
experiment. Each router was smoothly connected to a different
PC, each with its own IP address. We developed effective
communication paths between the routers utilizing RIP (Router
Information Protocol) through painstaking configuration. This
experiment highlighted how static routing can be used to
provide predefined routes for data packets within a network.
Overall, the lab gave useful information about setting and
administering Dynamic routes, emphasizing their importance in
optimizing network traffic flow.

You might also like