CN 8 EXP
CN 8 EXP
Aim:
To simulate and understand how Distance Vector Routing works using a dynamic routing
protocol (RIP - Routing Information Protocol) in Cisco Packet Tracer.
Procedure
1. Setup Network Topology:
Open Cisco Packet Tracer.
Drag and drop the following devices:
o 3 Routers (e.g., Router0, Router1, Router2).
o 3 PCs (e.g., PC0, PC1, PC2) to represent end devices.
o Use copper straight-through cables to connect the PCs to the respective
routers:
PC0 to Router0 (FastEthernet 0/0)
PC1 to Router1 (FastEthernet 0/0)
PC2 to Router2 (FastEthernet 0/0).
o Use serial cables or crossover cables to connect the routers:
Router0 to Router1 (Serial 0/1/0 on both routers).
Router1 to Router2 (Serial 0/1/1 on both routers).
2. Configure IP Addresses:
Router0:
o For the PC0-facing interface (FastEthernet 0/0):
IP Address: 192.168.1.1
Subnet Mask: 255.255.255.0
o For the Router1-facing interface (Serial 0/1/0):
IP Address: 10.0.0.1
Subnet Mask: 255.255.255.252
Router1:
o For the PC1-facing interface (FastEthernet 0/0):
IP Address: 192.168.2.1
Subnet Mask: 255.255.255.0
o For the Router0-facing interface (Serial 0/1/0):
IP Address: 10.0.0.2
Subnet Mask: 255.255.255.252
o For the Router2-facing interface (Serial 0/1/1):
IP Address: 10.0.1.1
Subnet Mask: 255.255.255.252
Router2:
o For the PC2-facing interface (FastEthernet 0/0):
IP Address: 192.168.3.1
Subnet Mask: 255.255.255.0
o For the Router1-facing interface (Serial 0/1/1):
IP Address: 10.0.1.2
Subnet Mask: 255.255.255.252
3. Configure PCs:
PC0:
o IP Address: 192.168.1.2
o Subnet Mask: 255.255.255.0
o Default Gateway: 192.168.1.1
PC1:
o IP Address: 192.168.2.2
o Subnet Mask: 255.255.255.0
o Default Gateway: 192.168.2.1
PC2:
o IP Address: 192.168.3.2
o Subnet Mask: 255.255.255.0
o Default Gateway: 192.168.3.1
4. Configure RIP on Routers (Dynamic Distance Vector Routing Protocol):
Go to Router0:
1. Enter global configuration mode:
4. Exit:
o Check if Router0 has learned about the networks 192.168.2.0 and 192.168.3.0 through
RIP.
Similarly, check the routing tables on Router1 and Router2 to ensure they have
learned routes from the other routers.
6. Test Connectivity:
Ping from PC0 (192.168.1.2) to PC2 (192.168.3.2):
o Go to PC0:
o If the ping is successful, the dynamic routing via RIP is working as expected.
Similarly, try pinging from PC1 to PC0 or PC2 to confirm the end-to-end
communication is working.
7. Use Simulation Mode (Optional):
You can use Simulation Mode in Cisco Packet Tracer to see how routing updates and
data packets are forwarded between the routers using RIP.
OUTPUT:
The routers dynamically exchange routes using RIP.
The routing tables are updated as new routes are discovered.
End devices can communicate through routers due to the established dynamic routes.
RESULT:
Thus the Distance Vector Routing using RIP was successfully verified and it
demonstrates how routers share information with their neighbours to build a complete routing
table, allowing efficient packet forwarding.