Skip to main content

Configuring Open Shortest Path First (OSPF) Protocol

Open Shortest Path First (OSPF) Protocol
OSPF is a Link State protocol that’s considered may be the most famous protocol among the Interior Gateway Protocol (IGP) family, developed in the mid 1980’s by the OSPF working group of the IETF.
When configured, OSPF will listen to neighbors and gather all link state data available to build a topology map of all available paths in its network and then save the information in its topology  database, also known as its Link-State Database (LSDB). Using the information from its topology database. From the information gathered, it will calculate the best shortest path to each reachable subnet/network using an algorithm called Shortest Path First (SFP) that was developed by the computer scientist Edsger W. Dijkstra in 1956. OSPF will then construct three tables to store the following information:
  • Neighbor Table: Contains all discovered OSPF neighbors  with whom routing information will be interchanged
  • Topology Table: Contains the entire road map of the network with all available OSPF routers and calculated best and alternative paths.
  • Routing Table: Contain the current working best paths that will be used to forward data traffic between neighbors.

ospf configuration packet tracer example


Steps:

1) Initially connect all three PCs with routers and switches. Then connect all the routers with      each other. Make all the necessary connections.
2) Assign IP Addresses, Subnet Mask and Gateway as follows:-

Network-1
    Router-1     192.168.2.2     255.255.255.0             ---
    PC-1           192.168.2.1     255.255.255.0      192.168.2.2
Network-2
    Router-2     192.168.3.2     255.255.255.0             ---
    PC-2           192.168.3.1     255.255.255.0      192.168.3.2
Network-3
    Router-3     192.168.6.2     255.255.255.0             ---
    PC-3           192.168.6.1     255.255.255.0      192.168.6.2
Network-4
    Router-1     192.168.4.1     255.255.255.0             ---
    Router-2     192.168.4.2     255.255.255.0             ---
Network-5
    Router-2     192.168.5.1     255.255.255.0             ---
    Router-3     192.168.5.2     255.255.255.0             ---
Network-6
    Router-1     192.168.1.1     255.255.255.0             ---
    Router-3     192.168.1.2     255.255.255.0             ---

3) Now after all the connections and configuring the IPs, Subnet and Gateways of the                connecting device, go to the CLI of the routers and type the command-
    #router ospf 10
    Here 10 is the process ID of the OSPF protocol. 
4) Now type network Networkid_ip wildcard mask area no.
e.g: network 192.168.1.0   0.010.255   area 0. 
5) Now Ping to check.

Router Commands
Router(Config-if) #ip address 192.168.3.2    255.255.255.0
Router(Config-if) #exit
Router(Config) #interface Serial 0/0/0
Router(Config-if) #if address 192.168.1.2    255.255.255.0
Router(Config) #interface gigabit ethernet 0/0
Router(Config-if) #no shut exit
Router(Config) #router
Router(Config-router) #network   192.168.1.0   0.0.0.255   area0
Router(Config-router) #network   192.168.3.0   0.0.0.255   area0
Router(Config-router) #exit

Comments

Popular posts from this blog

Generate Traffic in Simulation Mode

Objectives Part 1: Generate Network Traffic in Simulation Mode Part 2: Examine the Functionality of the TCP and UDP Protocols Background This simulation activity is intended to provide a foundation for understanding the TCP and UDP in detail. Simulation mode provides the ability to view the functionality of the different protocols. As data moves through the network, it is broken down into smaller pieces and identified in some fashion so that the pieces can be put back together. Each of these pieces is assigned a specific name (protocol data unit [PDU]) and associated with a specific layer. Packet Tracer Simulation mode enables the user to view each of the protocols and the associated PDU. The steps outlined below lead the user through the process of requesting services using various applications available on a client PC.  This activity provides an opportunity to explore the functionality of the TCP and UDP protocols, multiplexing and the function of port numbers in ...