Snippet from R1 acting as ASBR with static route towards external router showing the redistribution of the external route into OSPF.
R1
ip route 3.3.3.3 255.255.255.255 10.10.10.2 weight 1
ip route 3.3.3.3 255.255.255.255 10.10.10.2 enable
ip prefix-list StaticOSPFRedistribute 3.3.3.3/32 ge 32 le 32
route-map “OSPFStatic” 1
enable
match network “StaticOSPFRedistribute”
exit
router ospf
as-boundary-router enable
redistribute static route-map “OSPFStatic”
redistribute static metric 10
redistribute static metric-type type1
redistribute static enable
exit
#WARNING: Routes will not be injected until apply command is issued after enable command
ip ospf apply redistribute static
show ip route
show ip ospf redistribute
show ip prefix-list
show route-map
show route-map detail