08-08-2017 05:32 AM - edited 03-05-2019 08:58 AM
Hi All,
I have 2 OSPF process ( process 1 and process 111). I am receiving the class-full routes in process 1. Now I need to redistribute only one ip from the class-full route to ospf 111. Can you help me to find out the solution.
I tried using route-map with ACL filter but its doesn't help.
Any pointers will be highly appreciated..
Thanks,
John
08-08-2017 06:04 AM
Hi
If you have a subnet, for example 10.0.0.0/24 (known into the routing table with /24) and you want to redistribute a 10.0.0.17/32, it will not work, in this case you need to redistribute the 10.0.0.0/24.
Now you can use static route and then redistribute it into OSPF, the administrative distance will not change, additional, if you want to make communication in both ways you need to redistribute the OSPF 111 into OSPF 1.
Example:
router ospf 111
redistribute static subnets route-map TEST
ip route 10.0.0.17 255.255.255.255 10.12.55.1 tag 100
route-map TEST permit 5
match tag 100
Hope it is useful.
:-)
08-08-2017 07:14 AM
John
First can we verify that you are receiving only classful network advertisement in your ospf 1 process (not any advertisement of subnets)?
If you are receiving advertisement for several networks and want to redistribute only a single network then a route map with an access list (or perhaps a prefix list) would be the solution. If it is not working then it suggests that there is some flaw in what you configured. Can you post the configuration of both processes, and the route map, and the access list, and indicate what networks are being advertised and which network you want to redistribute?
HTH
Rick
08-08-2017 07:15 AM
Hi Julio,
Thanks for your quick reply..
where as in my case static route is already redistributed to ospf 1 process .
I have again redistributed like below..
router ospf 111
redistribute redistribute ospf 1 subnets route-map Test
route-map Test permit 5
match ip address 10
access-list 10 permit 10.10.10.10 0.0.0.0
but still not working...
08-08-2017 07:22 AM
Hell0
Are these ospf process in the same area?
When redistribution is applied to a ospf rtr that rtr then becomes a ASBR then if you wish to filter outbound on a ABSR you would use a distribute-list for that.
ip prefix-list STAN seq 5 permit x.x.x.x/yy
router ospf 1
distribute-list prefix STAN out
res
Paul
08-08-2017 07:25 AM
Hi Paul,
Yes both ospf process are in same Area..
08-08-2017 07:32 AM
John
Am I understanding correctly that you have a static route on the router which is redistributed into ospf 1 and that then you are trying to redistribute that static route from ospf 1 to ospf 111? I do not believe that will work. The process ospf 1 knows the route as an external route learned via local redistribution and will advertise that route to ospf neighbors. But I do not believe that ospf 1 can redistribute a prefix that it learned via redistribution.
One way to check this would be to remove the route map and attempt to redistribute all the redistributed static routes and see if any of them are redistributed.
HTH
Rick
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