Redistributing select static routes into OSPF

Unanswered Question
Jul 31st, 2007
User Badges:

My Catalyst 3750 switch has a long list of static IP routes, and I also run OSPF.


How can i easily select a few of those static routes to be redistributed into my OSPF process ?


Can this be done without using route-maps ?




  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
graemeporter Tue, 07/31/2007 - 03:28
User Badges:
  • Bronze, 100 points or more

I'm not really any kind of OSPF expert, but maybe you could add the subnets to an access list, and distribute the access list via OSPF (albeit, not without using route-maps)


We use something like this :-

______________________________________________


router ospf 1

redistribute static metric 100 metric-type 1 subnets route-map STATIC-ROUTES-TO-OSPF

default-information originate metric-type 1

!

ip access-list standard STATIC-ROUTES

permit xxx.xxx.xxx.0

permit xxx.xxx.yyy.0

permit xxx.xxx.zzz.0

!

route-map STATIC-ROUTES-TO-OSPF permit 10

match ip address STATIC-ROUTES

______________________________________________


Where the ACL "STATIC-ROUTES" simply permits the subnet address for each static route you want to have redistributed.


Hope this helps!


Kind regards

Graeme

Actions

This Discussion