cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
494
Views
0
Helpful
8
Replies

OSPF not showing in routing table

ankitohc
Spotlight
Spotlight

Hi Team,

Can anyone tell me why OSPF not showing in routing table but shows in show ip ospf database.

Can anyone help me to fix this issue?  

FYI I thought that OSPF not showing because lower AD value is there with default routing.. I changed to 200 but it did not work 

ankitohc_2-1708133564432.png

 

 

Headoffice#show run
Headoffice#show running-config
Building configuration...

Current configuration : 3215 bytes
!
! Last configuration change at 01:16:53 UTC Sat Feb 17 2024
!
version 15.9
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Headoffice
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
!
!
!
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
!
!
!
!
!
!
!
!
!
!
!
ip cef
no ipv6 cef
!
multilink bundle-name authenticated
!
!
!
!
!
redundancy
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Tunnel1
ip address 192.168.1.1 255.255.255.0
ip mtu 1400
ip ospf network point-to-point
tunnel source GigabitEthernet0/0
tunnel destination 100.64.2.1
!
interface GigabitEthernet0/0
ip address 100.64.1.1 255.255.255.252
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/1
ip address 10.10.10.1 255.255.255.0
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/2
no ip address
shutdown
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/3
no ip address
shutdown
duplex auto
speed auto
media-type rj45
!
router ospf 4
network 192.168.1.1 0.0.0.0 area 0
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
ip route 0.0.0.0 0.0.0.0 100.64.1.2
!
ipv6 ioam timestamp
!
!
!
control-plane
!
banner exec ^C




======================================================

Verizon#show run
Verizon#show running-config
Building configuration...

Current configuration : 2930 bytes
!
version 15.9
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Verizon
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
!
!
!
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
!
!
!
!
!
!
!
!
!
!
!
ip cef
no ipv6 cef
!
multilink bundle-name authenticated
!
!
!
!
!
redundancy
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface GigabitEthernet0/0
ip address 100.64.1.2 255.255.255.252
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/1
ip address 100.64.3.1 255.255.255.0
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/2
no ip address
shutdown
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/3
no ip address
shutdown
duplex auto
speed auto
media-type rj45
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
ip route 0.0.0.0 0.0.0.0 100.64.3.2
!
ipv6 ioam timestamp
!
!
!
control-plane
!

_____________________________________________________________________________________________

T-Mobilr-ISP#show running-config
Building configuration...

Current configuration : 2939 bytes
!
version 15.9
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname T-Mobilr-ISP
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
!
!
!
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
!
!
!
!
!
!
!
!
!
!
!
ip cef
no ipv6 cef
!
multilink bundle-name authenticated
!
!
!
!
!
redundancy
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface GigabitEthernet0/0
ip address 100.64.3.2 255.255.255.0
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/1
ip address 100.64.2.2 255.255.255.252
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/2
no ip address
shutdown
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/3
no ip address
shutdown
duplex auto
speed auto
media-type rj45
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
ip route 0.0.0.0 0.0.0.0 100.64.3.1 200
!
ipv6 ioam timestamp
!
!
!
control-plane




______________________________________________________________________________________________

hostname Branch
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
!
!
!
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
!
!
!
!
!
!
!
!
!
!
!
ip cef
no ipv6 cef
!
multilink bundle-name authenticated
!
!
!
!
!
redundancy
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Tunnel2
ip address 192.168.1.2 255.255.255.0
ip mtu 1400
ip ospf network point-to-point
tunnel source GigabitEthernet0/0
tunnel destination 100.64.1.1
!
interface GigabitEthernet0/0
ip address 100.64.2.1 255.255.255.252
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/1
no ip address
shutdown
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/2
no ip address
shutdown
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/3
no ip address
shutdown
duplex auto
speed auto
media-type rj45
!
router ospf 5
network 192.168.1.2 0.0.0.0 area 0
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
ip route 0.0.0.0 0.0.0.0 100.64.2.2 200
!
ipv6 ioam timestamp
!
!
!
control-plane


Ankit

1 Accepted Solution

Accepted Solutions

Hi @ankitohc ,

Can't we configure redistribution for connected routes, I mean is there any I can see the OSPF in    > routing table for tunnel interface

Even if you redistribute the connected routes in ospf, the local router will still consider the connected route the best and install it in the routing table.

Why would you want to see a connected route installed as an ospf route anyway?

Regards,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

View solution in original post

8 Replies 8

Harold Ritter
Cisco Employee
Cisco Employee

Hi @ankitohc ,

The only interface on which you enable ospf is the tunnel and this route is already known as a connected route in the routing table on both Headoffice and Branch.

Try enabling ospf on another interface, such as gi0/1 on Headoffice and you will see that route as an ospf route in the Branch routing table.

router ospf 4

network 10.10.10.1 0.0.0.0 area 0

Regards,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

network 10.10.10.1 0.0.0.0 area 0 i have added this but removed later from topology it was LAN facing 

Try enabling ospf on another interface, such as gi0/1 on Headoffice and you will see that route as an ospf route in the branchoffice routing table.

 

Let me try this .. I will get back to you

Hi @ankitohc ,

Or you could just add a loopback interface on both Headoffice and Branch and add these interfaces to ospf.

Headoffice:

int lo0

ip address 1.1.1.1 255.255.255.255

router ospf 4

network 1.1.1.1 0.0.0.0 area 0

Branch:

int lo0

ip address 2.2.2.2 255.255.255.255

router ospf 5

network 2.2.2.2 0.0.0.0 area 0

Regards,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

thank you it worked I see the OSPF in routing table I have one more questions.. Can't we configure redistribution for connected routes, I mean is there any I can see the OSPF in routing table for tunnel interface

ankitohc_0-1708136884530.png

 

Hi @ankitohc ,

Can't we configure redistribution for connected routes, I mean is there any I can see the OSPF in    > routing table for tunnel interface

Even if you redistribute the connected routes in ospf, the local router will still consider the connected route the best and install it in the routing table.

Why would you want to see a connected route installed as an ospf route anyway?

Regards,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

Well there is no reason .. I just was checking if there is way to do that and if it’s not possible then I am good.. I really appreciate your response to fix this issue and shared knowledge..

You are very welcome @ankitohc and thanks for the feedback

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México
Review Cisco Networking products for a $25 gift card