Redistribute filtered static route with route-map

Unanswered Question
Aug 21st, 2007


Is it possible to redistribute a filtered(classless) static route to ospf with a route-map? I want to exclude subnets with my route-map. Here is a little config..

vlan 1 ip address /24

access-list 1 permit

route-map test-map deny 10

match ip address 1

ip route Vlan1

router ospf 1

redistribute static subnets route-map test-map

I got this output:

"Only classful networks will be redistributed"

when i apply the route-map, ospf dosent redistribute any information about the net at all.

best regards

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Richard Burts Tue, 08/21/2007 - 06:45


The first thing that I notice is that your route map does not have anything that will permit routes to be redistributed. There is only one instance of the route map and that specifies deny whatever matches access-list 1 and there are no other statements that would permit anything.

In my experience the message about only classful networks will be redistributed is generated when the redistribute command does not include the subnets keyword. I see it in what you posted but are you sure that it was in what you put into the router config (no typo mistakes or anything that might have changed it).



wmtopahwmtopah Wed, 08/22/2007 - 03:30

ok.. but do you know if it?s posslible to filter a static route? what i want to accomplish is to make one static route (/16) and then exclude several subnets with my route-map.

do you hade a config example that works?


This Discussion