11-05-2021 08:04 PM
Hi all,
I have current eigrp and outbound ospf proces in area 0 with redistribution eigrp--ospf , ospf--eigrp with route map. Now I want to add second proces in different area. How to filter route map from area to area to accomplish specific routes /32?
Thank you in advance.
11-05-2021 08:27 PM
Hello D@Do ,
>> I have current eigrp and outbound ospf proces in area 0 with redistribution eigrp--ospf , ospf--eigrp with route map. Now I want to add second proces in different area. How to filter route map from area to area to accomplish specific routes /32?
By using a prefix-list as match condition within a route-map that you use for redistribution between the two OSPF processes.
The subnets keyword is needed to avoid route summarization this is OSPF specific and Cisco specific.
EIGRP 100 --> <---- OSPF 10 area 0 ---> <---- OSPF 16 area 16
router ospf 16
network 10.0.0.0 0.0.255.255 area 16
redistribute ospf 10 subnets route-map OSPF10-into-OSPF16
! the following will redistribute /32 prefixes from 10.0.0.0/16
! so 10.1.1.250/32 is a match
! so 10.1.1.0/30 is not a match
! and 11.1.1.1/32 is not a match because is out of range
prefix-list ONLY-HOST-ROUTES permit 10.0.0.0/16 ge 32
route-map OSPF10-into-OSPF16 deny 5
match tag 1016
route-map OSPF10-into-OSPF16 permit 10
match address prefix ONLY-HOST-ROUTES
set metric type 1
set metric 50
set tag 1016
If need to redistribute additional routes you need to use a second route-map block like:
route-map OSPF10-into-OSPF16 permit 20
match address prefix OTHER-PREFIXES
set metric type 1
set metric 50
set tag 1016
do not add an empty final route map block or you will be redistribute all OSPF 10 LS database into OSPF 16.
I have added a route tag 1016 by default the route-tag would be set to 10 or not set.
The initial block deny 5 will prevent any route with route-tag 1016 to be exported from OSPF 10 into OSPF 16.
The other two permit blocks set the route tag to 1016.
This is to avoid re-injection.
Hope to help
Giuseppe
11-06-2021 03:46 AM
Thank you very much Giuseppe for explanation.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide