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

Socket Programming

SOCKET PROGRAMMING TCP Python provides two levels of access to network services. At a low level, you can access the basic socket support in the underlying operating system, which allows you to implement clients and servers for both connection-oriented and connectionless protocols. Python also has libraries that provide higher-level access to specific application-level network protocols, such as FTP, HTTP, and so on. What is Sockets? Sockets are the endpoints of a bidirectional communications channel. Sockets may communicate within a process, between processes on the same machine, or between processes on different continents. Sockets may be implemented over a number of different channel types: Unix domain sockets, TCP, UDP, and so on. The socket library provides specific classes for handling the common transports as well as a generic interface for handling the rest. Sockets have their own vocabulary − Term & Description 1 Domain  The family of pr...

Implementation of DHCP Protocol

Dynamic Host Configuration Protocol(DHCP)  is an application layer protocol which is used to provide: Subnet Mask (Option 1 – e.g., 255.255.255.0) Router Address (Option 3 – e.g., 192.168.1.1) DNS Address (Option 6 – e.g., 8.8.8.8) Vendor Class Identifier (Option 43 – e.g., ‘unifi’ = 192.168.1.9 ##where unifi = controller) DHCP is based on a client-server model and based on discovery, offer, request, and ACK. DHCP  port number  for server is 67 and for the client is 68. It is a Client server protocol which uses UDP services. IP address is assigned from a pool of addresses. In DHCP, the client and the server exchange mainly 4 DHCP messages in order to make a connection, also called DORA process, but there are 8 DHCP messages in the process. Steps: 1) Create a network topology of a PC, a switch and a router. 2) The client is connected to Router-1, which acts like a DHCP server whose configuration         is discussed. When a cl...

Star Topology using Hub & Switch

Star Topology Alternatively referred to as a  star network ,  star topology  is one of the most common network setups. In this configuration, every  node  connects to a central network device, like a hu b , switch , or computer. The central network device acts as a  server  and the peripheral devices act as  clients . Depending on the type of  network card  used in each computer of the star topology, a  coaxial cable  or an  RJ-45  network cable is used to connect computers together. Steps: 1) Create a network topology. 2) Assign IPs to the PCs. 3) Configure Router using CLI :-      Router>enter Router>enable Router(Config)#int gig 0/1 Router(Config)#ip address 192.168.1.1  255.255.255.0 Router(Config)#exit Router(Config)#line console 0 Router(Config-line)#password CISCO Router(Config-line)#login Router(Config-line)#exit Router(Config)#enable p...