Free CCNA | OSPF Part 2 | Day 27 | CCNA 200-301 Complete Course

3 min read 5 months ago
Published on Nov 25, 2025 This response is partially generated with the help of AI. It may contain inaccuracies.

Table of Contents

Introduction

In this tutorial, we will explore the Open Shortest Path First (OSPF) protocol, a key concept in the CCNA 200-301 course. OSPF is a dynamic routing protocol that utilizes a link-state method, providing advantages over distance vector protocols like RIP and EIGRP. This guide will cover OSPF costs, neighbor adjacencies, and configuration, which are crucial for understanding OSPF's functionality in networks.

Step 1: Understand OSPF Cost

  • OSPF uses a cost metric to determine the best path for data packets.
  • The cost is based on the bandwidth of the interface.
  • Higher bandwidth results in a lower cost. For example:
    • 100 Mbps = 1
    • 10 Mbps = 10
    • 1 Mbps = 100

Practical Tip

  • Adjust the reference bandwidth to influence OSPF cost calculations. The default reference bandwidth is 100 Mbps, but you can change it to reflect your network's actual bandwidth.

Step 2: Change the Reference Bandwidth

  • To change the OSPF reference bandwidth, access the router's configuration mode and use the following command:
    router ospf [process-id]
    auto-cost reference-bandwidth [value in Mbps]
    
  • Replace [process-id] with your OSPF process ID and [value in Mbps] with your desired reference bandwidth.

Common Pitfall

  • Ensure that all routers in the OSPF area have the same reference bandwidth to avoid inconsistent cost calculations.

Step 3: OSPF Neighbor Relationships

  • OSPF routers form adjacencies with neighbors to share routing information.
  • Neighbor states progress through several stages:
    • Down: No hello packets received.
    • Init: Hello packets received but not reciprocated.
    • 2-Way: Hello packets exchanged.
    • Exstart: Initiating database exchange.
    • Exchange: Sharing database descriptions.
    • Loading: Sending link-state requests.
    • Full: Fully established adjacency.

Step 4: Monitor OSPF Neighbor States

  • Use the command below to check OSPF neighbors and their states:
    show ip ospf neighbor
    
  • This command provides details about each neighbor, including their state, address, and timer values.

Step 5: OSPF Message Types

  • Familiarize yourself with OSPF message types:
    • Hello: Establish and maintain neighbor relationships.
    • Database Description (DBD): Exchange summaries of link-state information.
    • Link-State Request: Request detailed link-state information.
    • Link-State Update: Send detailed link-state information.
    • Link-State Acknowledgment: Acknowledge receipt of updates.

Step 6: Basic OSPF Configuration

  • To configure OSPF on a router, use the following steps:
    1. Enter global configuration mode:
      configure terminal
      
    2. Enable OSPF with a process ID:
      router ospf [process-id]
      
    3. Specify networks to be included in OSPF:
      network [network-address] [wildcard-mask] area [area-id]
      

Example Configuration

router ospf 1
network 192.168.1.0 0.0.0.255 area 0

Conclusion

In this tutorial, we covered the essentials of the OSPF protocol, including cost metrics, neighbor states, and basic configuration steps. Understanding OSPF is vital for effective network routing and management. As a next step, consider practicing OSPF configurations in a lab environment to reinforce your learning and prepare for the CCNA exam.