×

Verifying OSPF Configuration

There are several ways to verify OSPF configuration and operations, which are:

  • show ip route command
  • show ip ospf command
  • show ip ospf database command
  • show ip ospf interface command
  • show ip protocol command
  • show ip ospf neighbor command
  • debugging ospf

Consider the following topology –We have used the below topology to explain the above commands:

Verifying OSPF Configuration

show ip route command

The “show ip route” command is used to show the routing table. In the routing table, if there is an entry of “O”, then it will indicate that OSPF is configured in the router. Consider the below image:

Verifying OSPF Configuration 1

show ip ospf command

The show ip ospf is used to display the OSPF information like all processes which are running on the router, router ID, area information, Shortest Path First (STF) statistics, and LSA timers information.

Verifying OSPF Configuration 2

show ip ospf database command

The show ip ospf database displays the information about the number of routers in the network and the neighbor router IDs.

Verifying OSPF Configuration 3

show ip ospf interface command

The show ip ospf interface displays the following information:

  • Area assignment
  • Interface IP address
  • Process ID
  • Router ID
  • Network type
  • Cost
  • Priority
  • DR/BDR election information and dead timer intervals
  • Adjacent neighbor information
Verifying OSPF Configuration 4

show ip protocol command

The show ip protocol is used to verify the type of protocols running on the router and the network. It displays the process ID, OSPF router ID, type of OSPF area, networks and area configured for OSPF neighboring router’s ID, etc.

Verifying OSPF Configuration 5

show ip ospf neighbor command

The show ip ospf neighbor displays the summary of ospf information regarding the adjacency state. It is also used for the production network.

Verifying OSPF Configuration 6

debugging ospf

debugging command is divided into the following types –

  1. debug ip ospf packet: This command displays the hello packets being sent and received on the router.
  2. debug ip ospf hello: This command displays hello packets being sent and received on the router. It also displays more pieces of information than the debug ip ospf packet.
  3. The debug ip ospf adj: This command displays information about the OSPF adjacencies and authentication, including Designated Router (DR) and Backup Designated Router (BDR) elections.

Related Topics

EIGRP Basics

EIGRP stands for Enhanced Interior Gateway Routing Protocol. It is also called as the Hybrid routing protocol. It contains the features of both distance vector and link-state routing protocols. Characteristics of EIGRP There are the...

5 minutes read.

Configuring EIGRP

Consider the topology given below – The initial IP configuration table is given below: Devices Interface IP address Router1 ...

2 minutes read.

Routing Basics

Routing is the process of delivering a message across one or more networks by choosing the most appropriate path.It is performed by many kinds of networks like telephone network (Circuit Switching), electronic data networks...

2 minutes read.

Routing Information Protocol

Routing Information Protocol (RIP) Routing Information Protocol is a distance-vector routing protocol. It uses hop count to determine the best way for the remote network. By default, it has a maximum hop count 15. In...

5 minutes read.

Configuring IP Routing in Our Network

There are 3 types of IP routing that we can configure in our network. Default RoutingStatic RoutingDynamic Routing Default Routing Default Routing is used to configure unknown destination networks.It is used on stub networks. Stub networks are...

3 minutes read.

Checking Network Connectivity and Troubleshooting

As a Network Engineer, you must know that how to check network connectivity and troubleshoot a network. There are following commands are used in the network to check and troubleshoot the network connectivity – 1)...

3 minutes read.

Configure DHCP

 DHCP DHCP stands for Dynamic Host Configuration Protocol.It is a client server-based architecture which involves DHCP client and DHCP server.It is a messaging system for the communication between the DHCP server and DHCP client.It...

3 minutes read.

Ethernet Networks in Review

Ethernet Networks in Review Today, Ethernet is the most used technology for the LANs. It is described as IEEE 802.3 standard. Ethernet is a connection-based media access method i.e., Carrier Sense...

2 minutes read.

Open Shortest Path First (OSPF) Basics

Open Shortest Path First(OSPF) is a classless routing protocol. It uses a link-state routing protocol, which means that the routers exchange topology information with their nearest neighbors. The OSPF maintains three separate tables that...

3 minutes read.

Banner config

Banner config The banner is a little pool which is used in Cisco systems and also in other systems like Unix, Linux and so no.It permits a text that is displayed when you log in a...

1 minute read.

The OSI Reference Model

OSI Reference Model OSI stands for Open System Interconnection. OSI provides a framework for creating and implementing networking standards, devices, and internetworking schemes. The following devices operate at the OSI model: Network...

6 minutes read.

Spanning Tree Protocol (STP)

Spanning Tree Protocol (STP) is a Data link layer (layer 2) protocol that is used to discover and maintain a valid loop-free path for the switched network. It is also used to analyze...

4 minutes read.

Configure Password

Password configuration is an in-built feature of Cisco devices.Each Cisco device uses a password to authenticate users for accessing the device and also provides security to the Cisco devices. There are five types of the...

2 minutes read.

Classes of IP Addresses

Classes of IP Addresses There are following five classes of IP Addresses: Class A – It is used for allocating an IP address.Class B - It is used for allocating an IP address.Class C – It...

6 minutes read.

VLAN Basics

VLAN stands for Virtual Local Area Network. It is a logical group of networking devices that allows a single extended LAN to be partitioned into several separate LANs. The important feature of...

4 minutes read.

Getting familiar with the IOS modes

  There are following primary modes of operation in IOS. Setup ModeUser Exec ModePrivileged Exec ModeGlobal Configuration ModeInterface Configuration ModeRommon Mode Setup Mode In router or switches, all configurations are saved in NVRAM.If there is no...

3 minutes read.

TCP/IP and DoD Model

Introduction to TCP/IP Model TCP/IP model was introduced in 1974. TCP/IP stands for Transmission Control Protocol/Internet Protocol. TCP/IP is an underlying communication protocol used by internet and commercial networks. The Transmission Control Protocol (TCP)...

10 minutes read.

CCNA Tutorial

What is CCNA? CCNA stands for Cisco Certified Network Associate. It is a certification course offered by Cisco. CCNA improves your understanding of the internet working and how different network topologies work...

3 minutes read.

Configure Hostname

Configure a hostname on a router A hostname is a unique name given to a device (router or switch) on a network and is used to identify one device from another on a specific...

1 minute read.

Cisco IOS Overview

Cisco IOS Overview Cisco Internetwork Operating System (IOS) is a multitasking operating system which controls all functions of Cisco routers and switches. Willaim Yeager wrote the first IOS in 1986.It is used to allocate resources and manages...

2 minutes read.