cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
488
Views
0
Helpful
3
Replies

Static route not being redistributed into OSPF

anursriv
Cisco Employee
Cisco Employee

Hello Guys 

I am trying to redistribute a static route from one CE device into OSPF on another CE device, but it seems to be redistributing all other static routes except for one. It does not seem to be advertised either. I have checked the associated route-map, but I am unable to pin-point the issue. 

 

Config on CE1: 

 

S        10.34.29.51/32 [1/0] via 10.34.10.2, GigabitEthernet1/43.1343
S        10.34.29.52/32 [1/0] via 10.34.6.82, Port-channel5.285

show run | s ospf 2
router ospf 2 vrf Signaling-A
 nsf cisco
 capability vrf-lite
 area 0 authentication message-digest
 timers throttle spf 1 5 5000
 timers throttle lsa 1 50 5000
 timers lsa arrival 1
 timers pacing lsa-group 1440
 timers pacing flood 100
 timers pacing retransmission 200
 redistribute static subnets route-map control-static
 redistribute connected subnets
 network 10.0.1.0 0.0.0.3 area 0
 network 10.0.1.56 0.0.0.3 area 0
 network 10.0.5.0 0.0.0.3 area 0
 default-information originate always
 bfd all-interfaces

#######################

show ip ro vrf  Signaling-A 10.34.29.51

Routing Table:Signaling-A
Routing entry for 10.34.29.51/32
  Known via "static", distance 1, metric 0
  Redistributing via ospf 2
  Advertised by ospf 2 subnets route-map control-static
  Routing Descriptor Blocks:
  * 10.34.10.2, via GigabitEthernet1/43.1343
      Route metric is 0, traffic share count is 1

show ip ro vrf Signaling-A 10.34.29.52

Routing Table:Signaling-A
Routing entry for 10.34.29.52/32   <--------------------------------------Does not seem to be advertised.
  Known via "static", distance 1, metric 0
  Redistributing via ospf 2
  Routing Descriptor Blocks:
  * 10.34.6.82, via Port-channel5.285
      Route metric is 0, traffic share count is 1

###############

show route-map control-static
route-map control-static, deny, sequence 10
  Match clauses:
    ip address (access-lists): 11
  Set clauses:
  Policy routing matches: 0 packets, 0 bytes
route-map control-static, permit, sequence 20
  Match clauses:
  Set clauses:
  Policy routing matches: 0 packets, 0 bytes

################

Under access-list 11, I haven't permitted 10.34.29.52, therefore it should not be denied from being redistributed.

 

Any tips on the above?

 

 

 

 

 

 

3 Replies 3

Bilal Nawaz
VIP Alumni
VIP Alumni

What troubleshooting has been done on the other side? can you see the prefix in the OSPF database on CE2? Check for things like distribute-lists, or route-tagging that might be blocking the prefix from being learnt. At first sight, config seems OK.

Please rate useful posts & remember to mark any solved questions as answered. Thank you.

mattp0002
Level 1
Level 1

Was interface po5.285 up or down when you ran those commands?

I wonder why that matters (though its a valid point for end to end flow), the static route has made it to the routing table, so as far as I understand, it should be redistributed. Might we worth having a look at the ACL.

Please rate useful posts & remember to mark any solved questions as answered. Thank you.
Review Cisco Networking for a $25 gift card