OSPF
OSPF
Experiment No.
Aim: To implement and simulate open short path first algorithm using cisco packet tracer.
Name of Student:
Register Number:
Branch:
1
TCP/IP Networks and Network Management Lab
Objective: To understand the concept for how to find the best path between the source and the
destination.
Aim: To implement and simulate open short path first algorithm using cisco packet tracer.
There are three steps that can explain the working of OSPF:
Step 1: The first step is to become OSPF neighbors. The two connecting routers running OSPF
on the same link creates a neighbor relationship.
Step 2: The second step is to exchange database information. After becoming the neighbors, the
two routers exchange the LSDB information with each other.
Step 3: The third step is to choose the best route. Once the LSDB information has been
exchanged with each other, the router chooses the best route to be added to a routing table based
on the calculation of SPF.
Procedure:
Circuit Diagram:
2
TCP/IP Networks and Network Management Lab
Procedure:
Step 1: First, open the Cisco packet tracer desktop and select the devices and create a network
topology as shown in the image. Use an Automatic connecting cable to connect the devices
with others.
Step 2: Configure the PCs (hosts) with IPv4 address, subnet mask and default gateway.
• To assign an IP address in PC0, click on PC0.
• Then, go to desktop and then IP configuration and there you will get IPv4 configuration.
• Fill IPv4 address, subnet mask and default gateway.
• Repeat the same procedure with other PCs to configure them thoroughly.
Step 3: Configure router with IP address and Subnet mask.
• To assign an IP address in router0, click on router0.
• Then, go to config and then Interfaces.
• Make sure to turn on the ports.
• Then, configure the IP address in FastEthernet.
• Fill IPv4 address and subnet mask.
• Repeat the same procedure with other routers to configure them thoroughly.
Step 4: Configure OSPF on the routers.
• Enable OSPF on a router using the router ospf PROCESS_ID in the global configuration
mode.
• Define on which interfaces OSPF will run and what networks will be advertised using
network IP_ADDRESS WILCARD_MASK AREA command in the OSPF configuration
mode.
Step 5: Simulate by sending a packet from PC0 to PC1.
Output:
Router0 to CLI:
Router1 to CLI:
Simulation:
Conclusion:
3
TCP/IP Networks and Network Management Lab
Viva Questions: