Ex.
No: 8 SIMULATION OF DISTANCE VECTOR ROUTING
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: [Link]
Subnet Mask: [Link]
o For the Router1-facing interface (Serial 0/1/0):
IP Address: [Link]
Subnet Mask: [Link]
Router1:
o For the PC1-facing interface (FastEthernet 0/0):
IP Address: [Link]
Subnet Mask: [Link]
o For the Router0-facing interface (Serial 0/1/0):
IP Address: [Link]
Subnet Mask: [Link]
o For the Router2-facing interface (Serial 0/1/1):
IP Address: [Link]
Subnet Mask: [Link]
Router2:
o For the PC2-facing interface (FastEthernet 0/0):
IP Address: [Link]
Subnet Mask: [Link]
o For the Router1-facing interface (Serial 0/1/1):
IP Address: [Link]
Subnet Mask: [Link]
3. Configure PCs:
PC0:
o IP Address: [Link]
o Subnet Mask: [Link]
o Default Gateway: [Link]
PC1:
o IP Address: [Link]
o Subnet Mask: [Link]
o Default Gateway: [Link]
PC2:
o IP Address: [Link]
o Subnet Mask: [Link]
o Default Gateway: [Link]
4. Configure RIP on Routers (Dynamic Distance Vector Routing Protocol):
Go to Router0:
1. Enter global configuration mode:
2. Enable RIP (v2):
3. Add the connected networks:
4. Exit:
Repeat similar steps for Router1 and Router2:
Router1:
Router2:
5. Verify RIP Configuration:
After configuring RIP on all routers, you can verify the routing tables:
o Go to Router0 and run:
o Check if Router0 has learned about the networks [Link] and [Link] 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 ([Link]) to PC2 ([Link]):
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.