10-25-2023 01:17 AM
Hello,
We have a problem with the redistribution of static route into the ospf process.
We have the X-core when 4 ospf neighboring and in the configuration of the ospf we have enabled the redistribution of the static route.
(vr VR-special) Coeur1-siteX-LTA.10 # show ospf neighbor
Neighbor ID Pri State Up/Dead Time Address Interface
BFD Session State
==========================================================================================
0.0.105.101 1 FULL /BDR 03:18:46:09/00:00:00:01 10.150.3.75 FON_Mistr
Active
0.0.104.2 0 FULL /DROTHER 00:17:20:42/00:00:00:01 10.150.5.33 FON_Mistr
Active
0.0.107.101 1 FULL /DROTHER 03:18:46:09/00:00:00:01 10.150.7.75 FON_Mistr
Active
0.0.106.2 1 FULL /DR 03:18:46:08/00:00:00:02 10.150.106.12 GDLM_Inte
Active
Total number of neighbors: 4 (All neighbors in Full state)
(vr VR-special) Coeur1-siteX-LTA.11 # show conf | i 10.106.0.0
configure iproute add 10.106.0.0 255.255.0.0 10.150.106.1 vr VR-special
(vr VR-special) Coeur1-siteX-LTA.12 # sh conf ospf-4
#
# Module ospf configuration on virtual router VR-special.
#
virtual-router VR-special
configure ospf routerid 0.0.106.1
enable ospf
configure ospf restart both
enable ospf export static cost 1 type ase-type-1
configure ospf add vlan vlan_site1 area 0.0.0.0
configure ospf vlan vlan_site1 cost 90
configure ospf vlan vlan_site1 timer 2 1 2 10 10
configure ospf vlan vlan_site1 bfd on
configure ospf add vlan vlan_site2 area 0.0.0.0
configure ospf vlan vlan_site2 cost 70
configure ospf vlan vlan_site2 timer 2 1 2 10 10
configure ospf vlan vlan_site2 bfd on
configure ospf add vlan vlan_site3 area 0.0.0.0 link-type point-to-point
configure ospf vlan vlan_site3 cost 290
configure ospf vlan vlan_site3 priority 0
configure ospf vlan vlan_site3 timer 2 1 2 10 10
configure ospf vlan vlan_site3 bfd on
configure ospf add vlan vlan_site4 area 0.0.0.0 link-type point-to-point
configure ospf vlan vlan_site4 cost 190
configure ospf vlan vlan_site4 priority 0
configure ospf vlan vlan_site4 timer 2 1 2 10 10
configure ospf vlan vlan_site4 bfd on
configure ospf add vlan vlan_site5 area 0.0.0.0
configure ospf vlan vlan_site5 cost 1
configure ospf vlan vlan_site5 timer 2 1 2 10 10
configure ospf vlan vlan_site5 bfd on
(vr VR-special) Coeur1-siteX-LTA.13 #
when I check the ospf lsdb in another switch I can see the peering up but the static route is not received :
site-core1.3 # sh ospf
ospf Show ospf
ospfv3 OSPF for IPv6
site-core1.3 # sh ospf neighbor
Neighbor ID Pri State Up/Dead Time Address Interface
BFD Session State
==========================================================================================
0.0.105.102 1 FULL /DR 1361:11:27:54/00:00:00:01 10.150.105.12 core-2
Active
0.0.106.1 1 FULL /DR 03:18:51:00/00:00:00:02 10.150.3.12 siteX-core
Active
Total number of neighbors: 2 (All neighbors in Full state)
site-core1.4 # sh ospf
ospf Show ospf
ospfv3 OSPF for IPv6
site-core1.4 # sh ospf lsdb | i 0.0.106.1
0.0.106.1 0.0.106.1 0x800000be 1565 0x8fed 5
10.150.3.12 0.0.106.1 0x800000b6 1295 0x9ab3
10.150.5.12 0.0.106.1 0x80000023 1565 0x2f15
site-core1.5 #
thank you so much for your support.
best regards,
Naico
10-25-2023 05:24 AM
Hi,
I had a similar issue with a static route not being distributed to OSPF. I needed to add (enable ospf originate-default cost 1 type ase-type-1)
May not apply to you, but I could not pass traffic out from any of my remote sites until I added that command.
Thanks
10-25-2023 06:19 AM
Thank you Thomas for your reply.
I had already this command in the configuration (you can see it in the Coeur1-siteX-LTA)... but even with this it doesn't work 😞
10-25-2023 01:31 AM
for info, I can see the route in the FIB in the Coeur1-siteX-LTA :
(vr VR-special) Coeur1-siteX-LTA.14 # debug hal show ipv4fib | i 010.106.000.000
4 010.106.000.000/16 010.150.106.001 4 1000046 00:10:db:ff:60:01 0100000b 3 1 1 F--- 9999
(vr VR-special) Coeur1-siteX-LTA.15 #
10-26-2023 04:14 AM
Hi,
maybe it's no OSPF issue.
First I would check whether the route is active in local route table of Coeur1-siteX-LTA:
show iproute vr VR-special
It it is not active, than is will not be redistributed.