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

OSPF redistribution of static routes

walu
Level 1
Level 1

Hi together,

we want to redistribute our static routes into the OPSF Process.

So far so good for this we used the "redistribute static" command.

But now we want to filter some static routes out so that they are not propagated via OSPF.

For this issue we configured an distribute-list. But the Router don´t accept the command with the "out" keyword (distrbute-list 1 out serial 0.1).

Is there another possibility to prevent that some static routes are distribute over particular Subinterfaces. ???

Maybe with route-maps ??

For this issue , it would be very kind from you to deliver a sample configuration.

Thanks.

3 Replies 3

deilert
Level 6
Level 6

This will deny network 192.168.31.0 from being injected into OSPF but will allow all other statics to be injected

ip route 192.168.31.0 255.255.255.0 10.200.2.1

ip route 192.168.32.0 255.255.255.0 10.201.2.1

access-list 1 deny 192.168.31.0

access-list 1permit any

route-map deny192.168 10

match ip-address 1

router ospf 1

redistribute static metric x metric-type x subnets route-map deny192.168

We have configured the Route map like described.

But we still have this route in the OSPF Database under external LSA´s and therefore the external LSA will be forwarded to all Routers in the Area. And that is what we like to prevent.

Is it possible to filter some LSA´s ??

Or can we prevent that the router insert the (filtered) static route in the LSA database ??

is the routing bit set in the LSA ?

You can try to clear the type 5's out of the database by using the 'clear ip o redistribution' command . This is non intrusive and clears all the type 5's out of the database. After you clear the type 5's see if it comes back, If it comes back see who is advertising the route .

Review Cisco Networking for a $25 gift card