cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
508
Views
0
Helpful
1
Replies

Redistributing select static routes into OSPF

zeu7
Level 1
Level 1

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 Reply 1

graemeporter
Level 1
Level 1

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