ospf command

Unanswered Question
Sep 3rd, 2007

Can someone pls. explain what this command do under OSPF process

redistribute static metric 20 metric-type 1 subnets route-map static-filter

does it have any relation to the below command? also with the access-list 1?

route-map static-filter permit 20

match ip address 1

thanks!

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4 (2 ratings)
Loading.
rajinikanth Mon, 09/03/2007 - 20:51

Hi

the command

redistribute static metric 20 metric-type 1 subnets route-map static-filter

Will redistribute static routes into OSPF with metric value 20 and metric type 1 which is E1.

Subnets is the keyword used by ospf for redistribution.

route-map static-filter is related to your route map defined(static-filter).

the route map is applied to the redistribution command, to filter

routes redistributed from static into OSPF.

Hope this helps

Raj

devang_etcom Mon, 09/03/2007 - 21:07

Hi,

It is some thing like in secuence...

lets say you have route 10.0.0.0 received from the remote router and you want to install that route in to the local router route table with the cost of 20 and metric type 1... then first of all you have to create the accesslist which will have statment allow for the network 10.0.0.0... now you have to creat the route map in order to match the ip address permited by accesslist...

now using the same route map you are installing or redistributing that route (10.0.0.0) wiht the metric type 1... so in your case you have accesslist 1 which permiting the network 10.0.0.0 (for example) now you are matching that route using the routemap "static-filter" and using the redistribute static command you are reidstributing that route in routing tabel with the type1...

hope this will help you

regards

Devang

Pavel Bykov Tue, 09/04/2007 - 03:36

Please remember, static routes that do not match your route-map will not be redistributed into OSPF. (There is an explicit deny at the end of every route-map. But of course you can permit everything using route-map static-filter permit 9999 command, or some other very high sequence number - the idea is for that sequence number to be the highest in that route map)

That means, for your configuration, that only static routes that match ACCESS-LIST 1 will be redistributed into your OSPF process (with already mentioned E1 type and Metric of 20)

Actions

This Discussion