0% found this document useful (0 votes)
14 views4 pages

4.11 Lab Manual 11 CN

Uploaded by

Ahmad Abduhu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views4 pages

4.11 Lab Manual 11 CN

Uploaded by

Ahmad Abduhu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Lab Manual /CN-5th/ BSSE / SE Dept.

/ UMT Lahore

Lab Manual # 11

Dynamic Routing: OSPF:


Open Shortest Path First (OSPF) is a routing protocol for Internet Protocol (IP) networks. It
uses a *link state routing (LSR) algorithm and falls into the group of interior gateway
protocols (IGPs).
*The basic concept of link-state routing is that every node constructs a map of the
connectivity to the network, in the form of a graph, showing which nodes are connected to
which other nodes.
Each node then independently calculates the next best logical path from it to every possible
destination in the network. Each collection of best paths will then form each node's routing
table. This contrasts with distance-vector routing protocols, which work by having each
node share its routing table with its neighbors.
Ad value (Each routing protocol has its own Administrative Distance (AD), which is a value
representing the trustworthiness of the specific routing protocol. If a router learns a
destination route from two or more routing protocols, it selects the route from the protocol
having the smallest Administrative Distance.) is 110 better than Routing Internet protocol
(RIP) but less good than Enhanced Interior Gateway Routing Protocol EIGRP, which will be
discussed in next lab. As in RIP you have to configure network which are directly connected to
router, same as in OSPF.

The first command, router ospf 1, enables the OSPF process. The “1” indicates the OSPF
process ID, and can be unique on each router. The process ID allows multiple OSPF
processes to run on the same router. In OSPF subnet mask is compulsory and in OSPF we
also assign area, while routing directed connected networks.

What the logic behind choosing area?


An OSPF network can be divided into sub-domains called areas. An area is a logical
collection of OSPF networks, routers, and links that have the same area identification. A
router within an area must maintain a topological database for the area to which it belongs

Page 1 of 4
Lab Manual /CN-5th/ BSSE / SE Dept./ UMT Lahore

OSPF Scenario to implement:

Step01: Assign IP addresses, default gateways, statically to all PCs in both LANs
as shown in topology.
Step02: Assign IP addresses to all interfaces connected to both routers as shown
in topology.
Step03:

Commands:
- Open router CLI (Command line interface)
- Show ip route (Show the IP of routers that you have assigned them, this
should be written on second mode “# mode”)
- Configure terminal (Third mode)
Here comes the steps for OSPF;
- Router ospf 1 (here ‘1’ indicates the process ID as I discussed before,
this can different in different routers).
Now, suppose routing configuration of 2 networks
- Network 10.0.0.0 255.0.0.0 area 1 (here subnet mask is must, and we
have to assign an area)

Page 2 of 4
Lab Manual /CN-5th/ BSSE / SE Dept./ UMT Lahore

- Network 120.20.0.0 255.0.0.0 area 1 (here subnet mask is must, and we


have to assign an area)
- Exit (exit from the OSPF configuration)
- Control + Z (To come back to second mode)
- Write (To save what have you done)

Use these commands and configure every routers e.g. RouterA, RouterB.

RouterA# configure terminal


RouterA(config)# router ospf 1
RouterA(config-router)# network 10.0.0.0 255.0.0.0 area 1
RouterA(config-router)# network 120.20.0.0 255.0.0.0 area 1
RouterA(config-router)# exit

Scenario 2: For OSPF ( Do yourself !)

Page 3 of 4
Lab Manual /CN-5th/ BSSE / SE Dept./ UMT Lahore

End Of Lab # 11

Page 4 of 4

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy