02-16-2024 05:39 PM - last edited on 02-18-2024 11:28 PM by Translator
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
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
Solved! Go to Solution.
02-16-2024 06:50 PM
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,
02-16-2024 06:00 PM - last edited on 02-18-2024 11:25 PM by Translator
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,
02-16-2024 06:02 PM - edited 02-16-2024 06:02 PM
network 10.10.10.1 0.0.0.0 area 0 i have added this but removed later from topology it was LAN facing
02-16-2024 06:03 PM
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
02-16-2024 06:12 PM - last edited on 02-18-2024 11:26 PM by Translator
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,
02-16-2024 06:31 PM
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
02-16-2024 06:50 PM
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,
02-16-2024 07:14 PM
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..
02-16-2024 07:27 PM
You are very welcome @ankitohc and thanks for the feedback
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide