09-21-2012 08:21 AM - edited 03-07-2019 09:01 AM
assume we have:
router eigrp 1
redistribute ospf 1 route-map ospf-to-eigrp
default-metric 20000 2000 255 1 1500
!
!
route-map ospf-to-eigrp deny 10
match tag 6
match route-type external type-2
!
route-map ospf-to-eigrp permit 20
match ip address prefix-list pfx
set metric 40000 1000 255 1 1500
!
route-map ospf-to-eigrp permit 30
set tag 8
=======================
my question is , at line 10 of route map ,
we are matching tag 6 and type external 2
my question is ,
so that a route being matched with deny in line 10 ,
should it be tagged with 6 and has a type of 2 ??????
or
either tagged with 6 or with type 2 ???
my question in another view , the rellation is AND or OR , at the line 10 as that this router being matched ??????
regards
Solved! Go to Solution.
09-21-2012 09:56 AM
Hello Ahmed,
it is a logical AND between match statements of different type
so route-map clause 10 will deny routes with route-tag 6 and with OSPF route type O E2 from being redistributed into EIGRP.
IOS supports logical OR between match statement of the same type configured under the same route-map clause
Example:
route-map ospf-to-eigrp deny 10
match tag 6
match tag 9
match route-type external type-2
!
becomes:
route-map ospf-to-eigrp deny 10
match tag 6 9
match route-type external type-2
!
and the meaning becomes: deny from redistribution routes that have (route tag 6 OR route tag 9 ) AND are of type OSPF O E2
This kind of OR is performed for any match.
This can be used for match ip address to add later statements in second IP access list instead of modifying the first one.
Hope to help
Giuseppe
09-21-2012 09:56 AM
Hello Ahmed,
it is a logical AND between match statements of different type
so route-map clause 10 will deny routes with route-tag 6 and with OSPF route type O E2 from being redistributed into EIGRP.
IOS supports logical OR between match statement of the same type configured under the same route-map clause
Example:
route-map ospf-to-eigrp deny 10
match tag 6
match tag 9
match route-type external type-2
!
becomes:
route-map ospf-to-eigrp deny 10
match tag 6 9
match route-type external type-2
!
and the meaning becomes: deny from redistribution routes that have (route tag 6 OR route tag 9 ) AND are of type OSPF O E2
This kind of OR is performed for any match.
This can be used for match ip address to add later statements in second IP access list instead of modifying the first one.
Hope to help
Giuseppe
09-21-2012 11:40 AM
hi
Giuseppe ,
thanks for your precious info .
with my best regards
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