cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
760
Views
0
Helpful
2
Replies

questionabout route map redistribution

Dr.X
Level 2
Level 2

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

1 Accepted Solution

Accepted Solutions

Giuseppe Larosa
Hall of Fame
Hall of Fame

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

View solution in original post

2 Replies 2

Giuseppe Larosa
Hall of Fame
Hall of Fame

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

hi

Giuseppe ,


thanks for your precious info .

with my best regards