Redistributing select static routes into OSPF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2007 03:18 AM - edited 03-03-2019 06:06 PM
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 ?
- Labels:
-
Routing Protocols
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2007 03:28 AM
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
