[nsp] Filtering special static routes from distributing into ospf

Tim Franklin tim at colt.net
Thu Jun 3 05:37:20 EDT 2004


Hi Joe,

cisco-nsp-bounces at puck.nether.net wrote:

> Is there sample configuration for filtering special static routes from
> being distributing into ospf ?
> e.g.,  we have set up OSPF with two areas and some static routes, and
> static route and static connection
> is distributed into ospf.
>
> now, we want to filter special static routes ( e.g. ip route 10.10.0.1
> 255.255.255.255 192.168.1.34 ) from being
> distributed into OSPF.

Tag the static routes you want to filter with a tag you're not using for
anything else:

ip route 10.10.0.1 255.255.255.255 192.168.1.34 tag 12345

Build a route-map that blocks them and allows anything else:

route-map TAGGED-REDIST deny 10
 match tag 12345

route-map TAGGED-REDIST permit 20
 match any

Apply the route-map on the redist of statics to ospf:

router ospf 1234
 redistribute static route-map TAGGED-REDIST


Depending on how many statics you've got and how many you want to filter, it
may be easier to reverse the logic (tag wanted routes, and permit the tag in
the route-map), but it works either way.

Regards,
Tim.

--
____________   Tim Franklin                 e: tim at colt.net
\C/\O/\L/\T/   Product Engineering Manager  w: www.colt.net
 V  V  V  V    Managed Data Services        t: +44 20 7863 5714
                                            f: +44 20 7863 5876




More information about the cisco-nsp mailing list