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

Aditya CN2.4 (1) Sharma

This document outlines a worksheet for configuring a network using the link state routing protocol OSPF in Packet Tracer or NS2. It provides the student name and details, software and hardware requirements, and the method for configuring OSPF between two routers. It also describes how to modify the OSPF cost metric and expected changes to routing tables. The learning outcomes are to gain understanding of OSPF protocol, configure routers using OSPF, observe how OSPF updates routing tables, and develop troubleshooting skills.

Uploaded by

wjhdvhs
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)
47 views4 pages

Aditya CN2.4 (1) Sharma

This document outlines a worksheet for configuring a network using the link state routing protocol OSPF in Packet Tracer or NS2. It provides the student name and details, software and hardware requirements, and the method for configuring OSPF between two routers. It also describes how to modify the OSPF cost metric and expected changes to routing tables. The learning outcomes are to gain understanding of OSPF protocol, configure routers using OSPF, observe how OSPF updates routing tables, and develop troubleshooting skills.

Uploaded by

wjhdvhs
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

DEPARTMENT OF

COMPUTER SCIENCE & ENGINEERING

WORKSHEET 2.4

Student Name: Aditya Sharma UID: 21BCS8396


Branch: CSE Section/Group: 818 B
Semester: 4th Date of Performance: 02-05-23
Subject Name: Computer Networks Subject Code:21CSH-256

1. Aim: - Configure a network using Link State routing Protocol using Packet Tracer or
NS2.

2. Objective: - Understand Routing Mechanism

3. S/W Requirement: - Packet Tracer or NS2

4. H/W Requirements: -
• Processor – Any suitable Processor e.g. Celeron
• Main Memory - 128 MB RAM
• Hard Disk – minimum 20 GB IDE Hard Disk
• Removable Drives–1.44 MB Floppy Disk Drive
–52X IDE CD-ROM Drive
•PS/2 HCL Keyboard and Mouse

5. Method:

Intermediate Systems-to-Intermediate Systems (IS-IS) are examples of Link State routing


protocols. Open Shortest Path First (OSPF) is an open standard protocol developed by IETF
due limitations with the Routing Information Protocol (RIP). OSPF’s major advantages over
RIP and other distance vector routing protocol include fast convergence, support for large
scalable networks etc. OSPF uses cost as the metric which is much more robust then RIP’s
hop count which puts the limit to maximum 16 routes and also allows for equal cost load
balancing for more efficient use of multiple paths.OSPF uses the hello protocol to form and
keep track of neighborships, and it builds adjacencies with neighbors by exchanging link-
state information using link state advertisements.
DEPARTMENT OF
COMPUTER SCIENCE & ENGINEERING

Configuration

OSPF Configuration

RouterA(config)# router ospf 100


RouterA(config-router)# network 10.10.1.0 0.0.0.255 area 0
RouterA(config-router)# network 192.168.1.0 0.0.0.255 area 0
RouterB(config)# router ospf 100
RouterB(config-router)# network 10.10.1.0 0.0.0.255 area 0
RouterB(config-router)# network 192.168.1.0 0.0.0.255 area 0

OSPF configuration is also very simple, we enter the routing protocol configuration mode
by entering the command ‘router ospf 100’, 100 is the OSPF process number, and then we
enable the OSPF process on our links using the network command. OSPF uses the concept
of areas to logically divide the network for scalability.

Modifying OSPF Update

OSPF uses cost as the metric which is based on the interface bandwidth. The formula to
calculate cost is shown below
COST = REFERENCE_BANDWIDTH / INTERFACE_BANDWITDH
Where, REF_ BANDWITDH = 100 Mbps
So Router B will have an OSPF route in its routing table for the prefix 10.10.1.0/24 with a
metric of 2 (1+1) since both links are Fast Ethernet (100 Mbps). This can be confirmed by
viewing the Router B’s routing table.
We can modify the cost of an OSPF enabled interface using the command ‘ip ospf [cost]”

RouterA(config)# interface fastethernet 0/1

RouterA(config-if)# ip ospf cost 10


DEPARTMENT OF
COMPUTER SCIENCE & ENGINEERING

We have modified the cost of Fast Ethernet 0/1 Interface on Router A to 10, and now the
routing table on Router B will have the following information.

6. Screenshot of Outputs:

7. Learning Outcomes:

▪ Gain an understanding of OSPF protocol.


▪ Learn how to configure routers in a network using Packet Tracer.
▪ Learn how to enable OSPF on each router using appropriate commands.
▪ Observe how OSPF updates the routing tables on each router in the network as the
network topology changes.
▪ Develop troubleshooting skills in identifying misconfigurations and network
topology errors that can cause OSPF to fail
DEPARTMENT OF

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