0% found this document useful (0 votes)
14 views1 page

OSPF Ref en

This document provides an example configuration for basic OSPF routing on two routers named R1 and R2. It shows the OSPF and interface configurations needed to establish an adjacency over a connection between R1 and R2 on their FastEthernet0/0 interfaces. It also lists some common troubleshooting steps and commands for diagnosing OSPF adjacency issues.

Uploaded by

info
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 views1 page

OSPF Ref en

This document provides an example configuration for basic OSPF routing on two routers named R1 and R2. It shows the OSPF and interface configurations needed to establish an adjacency over a connection between R1 and R2 on their FastEthernet0/0 interfaces. It also lists some common troubleshooting steps and commands for diagnosing OSPF adjacency issues.

Uploaded by

info
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/ 1

Basic OSPF Configuration Guide

Configuration Example
hostname R1
!
interface Loopback 0
ip address 10.10.254.1 255.255.255.255
!
interface FastEthernet0/0
ip address 10.10.1.1 255.255.255.0
! Enable OSPF on this interface
ip ospf 100 area 0
! Authenticate adjacencies with MD5
ip ospf authentication message-digest
! Configure secret key for MD5 authentication
ip ospf authentication-key N$RC
!
! Start OSPF process (100 is process ID)
router ospf 100
log adjacency-changes
! Allow adjacencies only on F0/0
passive-interface default
no passive-interface FastEthernet0/0
! Announce ISP link prefix and Loopback
redistribute connected subnets
! Announce default route in OSPF domain
default-information originate metric 100
!
! Default static route towards ISP
ip route 0.0.0.0 0.0.0.0 10.1.1.1
hostname R2
!
Troubleshooting OSPF Adjacencies
interface Loopback 0 ● Can you ping the neighbour?
ip address 10.10.254.2 255.255.255.255
!
● Is OSPF enabled on the interface?
interface FastEthernet0/0 ● If you have `passive-interface default`, do you also
ip address 10.10.1.2 255.255.255.0 have `no passive-interface` for that interface?
ip ospf 100 area 0 ● Do the netmask, hello interval, and router dead
ip ospf authentication message-digest interval match?
ip ospf authentication-key N$RC
● Do the authentication parameters match?
!
router ospf 100 ● Do the routers have different OSPF router ids?
passive-interface default
no passive-interface FastEthernet0/0
! Announce customer p2p prefixes and Loopback
redistribute connected subnets
! Announce customer prefixes
redistribute static subnets
!
! Static routes towards customers
ip route 10.10.101.0 255.255.255.0 10.10.100.2
ip route 10.10.102.0 255.255.255.0 10.10.100.6

OSPF Troubleshooting Commands


Command example Description
show ip ospf [process-id] Show general OSPF information
show ip ospf neighbor Shows adjacency information
show ip ospf interface [name] Shows OSPF information specific to interfaces
show ip route [ospf] Shows routing table, optionally with OSPF routes only
show ip ospf database Show LSA database summary
debug ip ospf hello Show OSPF hello events
debug ip ospf adj Show OSPF adjacency events

Network Startup Resource Center – www.nsrc.org v1.0

You might also like