Sunteți pe pagina 1din 9

C i s c o - R o u t e-M ap s f o r I P R o u t i n g Pr o t o c o l R ed i s t r i b u t i o n C o n f i gu r at i o n Page 1 o f 9

Route-M a p s f or I P Routi n g P r otoc ol TAC Notice: What's

Red i s tr i b uti on C on f i g ur a ti on
C han g i n g o n T A C We b

H el p u s h el p y ou .

Contents Please rate this


d o c u m en t.

Excellent
Introduction
G o o d
P re re q uis ite s
R e q u ir e m e n ts A v er a g e
C o m p o n e n ts U s e d F a ir
C o n v e n tio n s
P o o r
B a ck g round Inf orm a tion
W h a t a r e R o u t e -M a p s ? T his d o c u m en t so lv ed m y
R o u t e -M a p B a s i c s p ro b lem .
C om m a nds U s e d in R oute -M a p s A p p l ie d to R e dis trib ution Y es
C o n f ig u r e U n s u p p o r te d m a t c h a n d s e t C o m m a n d s i n R o u t e -M a p s
T w o -P r o t o c o l N a t u r e o f R o u t e -M a p R e d i s t r i b u t i o n N o

C o m m a n d S u p p o r t T a b le s J u s t b r o w s i ng
S um m a ry
N e tP ro D is cus s ion F orum s - F e a ture d C onv e rs a tions S u g g estio n s f o r
R e l a te d Inf orm a tion im p ro v em en t:

I ntr od u c ti on
( 2 5 6 ch a r a cter li m i t)
T h is d o c u m e n t d e s c r i b e s c o m m a n d s t h a t y o u c a n u s e t o c o n f i g u r e r o u t e -m a p s t h a t
a r e a p p lie d w i t h t h e re dis trib ute c o m m a n d o f d y n a m i c r o u t i n g p r o t o c o l s . T h i s Send
d o c u m e n t a ls o i n c l u d e s t i p s o n r o u t e -m a p f u n c t i o n s a n d a d v i c e o n w h e n r o u t e -m a p
c o n fig u r a t io n is m o s t b e n e f ic ia l.

T h e r o u te -m a p f u n c t io n is a g e n e r ic m e c h a n is m o f C is c o IO S ® s o f tw a r e c o n f ig u r a tio n .Y o u c a n a p p ly it to
m a n y d iff e r e n t ta s k s , f o r e x a m p le , p o li c y -b a s e d r o u t in g (P B R ) a n d B o r d e r G a te w a y P r o to c o l (B G P ) n e i g h b o r
u p d a te m o d if ic a t io n .O n e o f th e m o s t c o m m o n u s e s o f r o u t e -m a p s is to a p p ly th e m to r o u te s th a t a r e
r e d is t r ib u te d b e tw e e n d y n a m ic r o u t in g p r o to c o ls .T h is d o c u m e n t e x a m in e s th e p o s s ib ilit ie s o f r o u te -m a p s ,
w h e n y o u c o n f ig u r e th is ty p e o f r e d is tr ib u t io n .

P r er eq u i si tes
Requirements

T h e r e a r e n o s p e c if ic r e q u ir e m e n t s f o r t h is d o c u m e n t.

C o mp o nents U sed

T h e i n f o r m a t i o n i n t h i s d o c u m e n t i s b a s e d o n t h e m a i n l i n e C i s c o I O S S o f t w a r e R e l e a s e 1 2 .3 .

T h e in f o r m a tio n in t h is d o c u m e n t w a s c r e a t e d f r o m t h e d e v ic e s in a s p e c if ic la b e n v ir o n m e n t.A ll o f th e
d e v ic e s u s e d in t h is d o c u m e n t s t a r te d w it h a c le a r e d (d e f a u lt) c o n f ig u r a tio n .If y o u r n e t w o r k is liv e , m a k e s u r e
th a t y o u u n d e r s t a n d th e p o t e n tia l im p a c t o f a n y c o m m a n d .

5/ 25/ 20 0 5
C i s c o - R o u t e-M ap s f o r I P R o u t i n g Pr o t o c o l R ed i s t r i b u t i o n C o n f i gu r at i o n Page 2 o f 9

C o nv entio ns

F o r m o r e in f o r m a tio n o n d o c u m e n t c o n v e n t io n s , r e f e r to th e C is c o T e c h n ic a l T ip s C o n v e n tio n s .

B a c k g r ou nd I nf or m a ti on
T h is s e c t io n p r o v id e s a n o v e r v ie w o f r o u t e -m a p s i n C i s c o I O S s o f t w a r e .

W h a t a re Ro ute-M a p s?

R o u t e -m a p s h a v e m a n y f e a t u r e s i n c o m m o n w i t h w i d e l y k n o w n a c c e s s c o n t r o l l i s t s ( A C L s ) . T h e s e a r e s o m e o f
th e t r a it s c o m m o n t o b o t h m e c h a n is m s :

 T h e y a r e a n o r d e r e d s e q u e n c e o f in d iv id u a l s t a t e m e n t s , e a c h h a s a p e r m it o r d e n y r e s u lt .E v a lu a t io n o f
A C L o r r o u t e -m a p s c o n s is t s o f a lis t s c a n , in a p r e d e te r m in e d o r d e r , a n d a n e v a lu a t io n o f th e c r it e r ia o f
e a c h s ta te m e n t th a t m a tc h e s .A l is t s c a n is a b o r te d o n c e t h e f ir s t s t a t e m e n t m a tc h is f o u n d a n d a n
a c t io n a s s o c ia t e d w ith th e s ta te m e n t m a tc h is p e r f o r m e d .

 T h e y a r e g e n e r i c m e c h a n i s m s —c r i t e r i a m a t c h e s a n d m a t c h i n t e r p r e t a t i o n a r e d i c t a t e d b y t h e w a y t h e y
a r e a p p l i e d . T h e s a m e r o u t e -m a p a p p l i e d t o d i f f e r e n t t a s k s m i g h t b e i n t e r p r e t e d d i f f e r e n t l y .

T h e s e a r e s o m e o f t h e d i f f e r e n c e s b e t w e e n r o u t e -m a p s a n d A C L s :

 R o u t e -m a p s f r e q u e n t l y u s e A C L s a s m a t c h i n g c r i t e r i a .

 T h e m a in r e s u lt f r o m th e e v a lu a tio n o f a n a c c e s s lis t is a y e s o r n o a n s w e r —a n A C L e it h e r p e r m its o r


d en ie s in p u t d a t a .A p p lie d to r e d is t r ib u tio n , a n A C L d e te r m in e s if a p a r ti c u la r r o u te c a n (r o u te m a tc h e s
A CL s p e r m it s ta te m e n t) o r c a n n o t (m a tc h e s d e n y s ta te m e n t) b e r e d is t r ib u t e d .T y p ic a l r o u t e -m a p s n o t
o nly p e r m it ( s o m e ) r e d is tr ib u te d r o u te s b u t a ls o m o d if y in f o r m a tio n a s s o c ia t e d w it h th e r
o u te , w h e n it
is
r e d is t r ib u t e d in to a n o th e r p r o t o c o l.S e e t h e R o u t e -M a p B a s ic s s e c tio n o f th is d o c u m e n t f o r r o u t e -m a p
m o d ific a tio n e x a m p le s .

 R o u t e -m a p s a r e m o r e f l e x i b l e t h a n A C L s a n d c a n v e r i f y r o u t e s b a s e d o n c r i t e r i a w h i c h A C L s c a n n o t
v e r i f y . F o r e x a m p l e , a r o u t e -m a p c a n v e r i f y i f t h e t y p e o f r o u t e i s i n t e r n a l o r i f i t h a s a s p e c i f i c t a g .

 E a c h A C L e n d s w ith a n im p lic it d e n y s ta te m e n t, b y d e s ig n c o n v e n t io n ; th e r e i s n o s im ila r c o n v e n t io n f o r


r o u t e -m a p s . I f th e e n d o f a r o u t e -m a p is r e a c h e d d u r in g m a tc h in g a t te m p ts , t h e r e s u lt d e p e n d s o n th e
s p e c if ic a p p li c a t io n o f th e r o u t e -m a p .F o r tu n a te ly , r o u te -m a p s th a t a r e a p p lie d to r e d is t r ib u t io n b e h a v e
th e s a m e w a y a s A C L s : if th e r o u te d o e s n o t m a tc h a n y c la u s e in a r o u t e -m a p th e n th e r o u te
r e d is t r ib u t io n is d e n ie d , a s if th e r o u t e -m a p c o n ta in e d d e n y s t a te m e n t a t th e e n d .

T h e d y n a m ic p r o to c o l re dis trib ute c o n f i g u r a t i o n c o m m a n d a llo w s y o u to a p p ly e it h e r a n A C L o r a r o u t e -m a p .


T h e d if fe r e n c e s d e s c r ib e d in th is s e c tio n id e n tif y w h e n y o u s h o u ld u s e a r o u t e -m a p d u r in g r e d is t r ib u tio n .
R o u t e -m a p s a r e p r e f e r r e d if y o u in t e n d to e ith e r m o d if y r o u te in f o r m a tio n d u r in g r e d is tr ib u tio n o r if y o u n e e d
m o r e p o w e r f u l m a tc h in g c a p a b ilit y t h a n a n A C L c a n p r o v id e .C o n v e r s e ly , if y o u s im p ly n e e d to s e le c tiv e ly
p e r m it s o m e r o u t e s b a s e d o n t h e ir p r e f ix o r m a s k , C is c o r e c o m m e n d s th a t y o u u s e a n A C L (o r e q u iv a le n t
p r e fix lis t) d ir e c tly in t h e re dis trib ute c o m m a n d . I f y o u u s e a r o u t e -m a p to s e le c tiv e ly p e r m it s o m e r o u te s
b a s e d o n th e ir p r e f ix o r m a s k , y o u ty p ic a lly u s e m o r e c o n f ig u r a tio n c o m m a n d s to a c h ie v e th e s a m e g o a l.

Ro ute-M a p B a sic s

T h i s i s a t y p i c a l O p e n S h o r t e s t P a t h F i r s t t o E n h a n c e d I n t e r i o r G a t e w a y R o u t i n g P r o t o c o l ( O S P F -t o -E I G R P )
r o u t e -m a p , a p p l i e d i n a re dis trib ute c o m m a n d :

!
r o u t e r e i g r p 1
r e d i s t r i b u t e o s p f 1 r o u t e -m a p o s p f -t o -e i g r p
d e f a u l t -m e t r i c 20 0 0 0 20 0 0 25 5 1 1 5 0 0

5/ 25/ 20 0 5
C i s c o - R o u t e-M ap s f o r I P R o u t i n g Pr o t o c o l R ed i s t r i b u t i o n C o n f i gu r at i o n Page 3 o f 9

!--- O u t p u t s u p p r e s s e d .

!
r o u t e -m a p o s p f -t o -e i g r p d e n y 1 0
m a t c h t a g 6
m a t c h r o u t e -t y p e e x t e r n a l t y p e -2
!
r o u t e -m a p o s p f -t o -e i g r p p e r m i t 20
m a t c h i p a d d r e s s p r e f i x -l i s t p f x
s e t m e t r i c 4 0 0 0 0 1 0 0 0 25 5 1 1 5 0 0
!
r o u t e -m a p o s p f -t o -e i g r p p e r m i t 3 0
s e t t a g 8
!

T h e r e a r e s e v e r a l p o in ts to n o te fr o m t h is e x a m p le :

 R o u t e -m a p c l a u s e s a r e n u m b e r e d . I n t h i s e x a m p l e , c l a u s e s h a v e s e q u e n c e n u m b e r s 1 0 , 2 0 , a n d 3 0 .
S e q u e n c e n u m b e r s a llo w y o u to d o th e s e a c tio n s :

 E a s i l y d e l e t e o n e s p e c i f i c c l a u s e b u t n o t a f f e c t o t h e r p a r t s o f t h e r o u t e -m a p .

 In s e r t a n e w c la u s e b e t w e e n tw o e x is t in g c la u s e s .

C is c o r e c o m m e n d s th a t y o u n u m b e r c la u s e s in in t e r v a ls o f 1 0 , to r e s e r v e n u m b e r in g s p a c e in c a s e y o u
n e e d t o in s e r t c la u s e s in t h e f u t u r e .

 R o u t e -m a p s c a n h a v e p e rm it a n d de ny c l a u s e s . I n route -m a p os p f -to-e ig rp , t h e r e i s o n e d e n y c l a u s e
(w ith s e q u e n c e n u m b e r 1 0 ) a n d tw o p e r m it c la u s e s .T h e d e n y c la u s e r e je c ts r o u te m a tc h e s f r o m
r e d is t r ib u t io n .T h e r e f o r e , th e s e r u le s a p p ly :

 I f y o u u s e a n A C L i n a r o u t e -m a p p e r m i t c l a u s e , r o u t e s t h a t a r e p e r m i t t e d b y t h e A C L a r e
r e d is t r ib u t e d .

 I f y o u u s e a n A C L i n a r o u t e -m a p d e n y c l a u s e , r o u t e s t h a t a r e p e r m i t t e d b y t h e A C L a r e n o t
r e d is t r ib u t e d .

 I f y o u u s e a n A C L i n a r o u t e -m a p p e r m i t o r d e n y c l a u s e , a n d t h e A C L d e n i e s a r o u t e , t h e n t h e
r o u t e -m a p c l a u s e m a t c h i s n o t f o u n d a n d t h e n e x t r o u t e -m a p c l a u s e i s e v a l u a t e d .

 E a c h r o u t e -m a p c l a u s e h a s t w o t y p e s o f c o m m a n d s :

 m a tch —S e l e c t s r o u t e s t o w h i c h t h i s c l a u s e s h o u l d b e a p p l i e d .

 s e t—M o d i f i e s i n f o r m a t i o n w h i c h w i l l b e r e d i s t r i b u t e d i n t o t h e t a r g e t p r o t o c o l .

F o r e a c h r o u te th a t i s b e in g r e d is tr ib u te d , th e r o u t e r f ir s t e v a lu a te s th e m a tc h c o m m a n d o f a c la u s e i n
th e r o u t e -m a p . I f t h e m a tc h c r it e r ia s u c c e e d s , th e n th e r o u te is r e d is tr ib u te d o r r e j e c te d a s d ic ta te d b y
th e p e r m it o r d e n y c la u s e , a n d s o m e o f its a ttr ib u te s m ig h t b e m o d ifie d b y s e tc o m m a n d s . If th e m a t c h
c r it e r ia f a ils , t h e n th is c la u s e is n o t a p p lic a b le to th e r o u te , a n d C is c o IO S s o ftw a r e p r o c e e d s to e v a lu a te
th e r o u te a g a in s t t h e n e x t c la u s e in t h e r o u t e -m a p . S c a n o f t h e r o u t e -m a p c o n tin u e s u n t il a c la u s e is
fo u n d w h o s e m a tc h c o m m a n d (s ) m a tc h th e r o u te o r u n til th e e n d o f th e r o u t e -m a p is r e a c h e d .

 A m a tch o r s e t c o m m a n d i n e a c h c l a u s e c a n b e m i s s e d o r r e p e a t e d s e v e r a l t i m e s , i f o n e o f t h e s e
c o n d it io n s e x is t:

 I f s e v e r a l m a tch c o m m a n d s a r e p r e s e n t i n a c l a u s e , a l l m u s t s u c c e e d f o r a g i v e n r o u t e i n o r d e r f o r
th a t r o u te to m a t c h t h e c la u s e (in o t h e r w o r d s , th e lo g ic a l A N D a lg o r it h m is a p p lie d f o r m u lt ip le
m a tc h c o m m a n d s ).

5/ 25/ 20 0 5
C i s c o - R o u t e-M ap s f o r I P R o u t i n g Pr o t o c o l R ed i s t r i b u t i o n C o n f i gu r at i o n Page 4 o f 9

 I f a m a tch c o m m a n d r e f e r s t o s e v e r a l o b j e c t s i n o n e c o m m a n d , e i t h e r o f t h e m s h o u l d m a t c h ( t h e
l o g i c a l O R a l g o r i t h m i s a p p l i e d ) . F o r e x a m p l e , i n t h e m a tch ip a ddre s s 10 1 12 1 c o m m a n d , a r o u t e
is p e r m itt e d if it is p e r m itt e d b y a c c e s s lis t 1 0 1 o r a c c e s s lis t 1 2 1 .

 I f a m a tch c o m m a n d i s n o t p r e s e n t , a l l r o u t e s m a t c h t h e c l a u s e . I n t h e p r e v i o u s e x a m p l e , a l l
r o u t e s t h a t r e a c h c l a u s e 3 0 m a t c h ; t h e r e f o r e , t h e e n d o f t h e r o u t e -m a p i s n e v e r r e a c h e d .

 I f a s e t c o m m a n d i s n o t p r e s e n t i n a r o u t e -m a p p e r m i t c l a u s e t h e n t h e r o u t e i s r e d i s t r i b u t e d
w it h o u t m o d if ic a tio n o f it s c u r r e n t a t tr ib u t e s .

D o n o t c o n f i g u r e a s e t c o m m a n d i n a d e n y r o u t e -m a p c l a u s e b e c a u s e t h e d e n y c l a u s e p r o h i b i t s r o u t e
r e d i s t r i b u t i o n —t h e r e i s n o i n f o r m a t i o n t o m o d i f y .

A r o u t e -m a p c la u s e w i t h o u t a m a tch o r s e t c o m m a n d p e r f o r m s a n a c t i o n . A n e m p t y p e r m i t c l a u s e a l l o w s a
r e d is t r ib u t io n o f th e r e m a in in g r o u t e s w ith o u t m o d if ic a t io n .A n e m p t y d e n y c la u s e d o e s n o t a llo w s a
r e d is t r ib u t io n o f o t h e r r o u t e s ( t h i s i s t h e d e f a u l t a c t i o n i f a r o u t e -m a p i s c o m p l e t e l y s c a n n e d b u t n o e x p l i c i t
m a tc h is f o u n d ) .

B a s e d o n t h e i n f o r m a t i o n i n t h i s s e c t i o n , t h e p r e v i o u s O S P F -t o -E I G R P r o u t e -m a p e x a m p l e d o e s t h i s :

 P r o h i b i t s t h e r e d i s t r i b u t i o n o f a l l T y p e -2 e x t e r n a l O S P F r o u t e s w i t h t a g 6 s e t .

 R e d i s t r i b u t e s i n t o E I G R P a l l r o u t e s w h i c h m a t c h t h e p f x p r e f i x l i s t , w i t h f i v e m e t r i c v a l u e s —4 0 0 0 0 , 1 0 0 0 ,
2 5 5 , 1 , a n d 1 5 0 0 .

 R e d is t r ib u te s a ll o t h e r r o u t e s a n d s e t s t h e ir t a g s t o 8 (th e d e f a u lt ).

Com m a nd s U sed i n R ou te-M a p s A p p l i ed to R ed i str i b u ti on


T h is s e c t io n c o n ta in s t h e s e t o p ic s :

 C o n f i g u r e U n s u p p o r t e d m a tch a n d s e t C o m m a n d s i n R o u t e -M a p s

 T w o -P r o t o c o l N a t u r e o f R o u t e -M a p R e d i s t r i b u t i o n

 C o m m a n d S u p p o r t T a b le s

C o nf ig ure U nsup p o rted ma tc h a nd set C o mma nd s in Ro ute-M a p s

R o u te -m a p s a r e g e n e r i c m e c h a n is m s w h ic h y o u c a n u s e in m a n y c o n fig u r a t io n s , i n c lu d in g t h e p r e v io u s ly
d e s c r ib e d re dis trib ute c o m m a n d . F o r e x a m p le , y o u c a n c o n f ig u r e th e m a tch l e ng th c o m m a n d i n a r o u t e -m a p
fo r P B R to s p e c ify th a t a s p e c ia l a c t io n is p e r fo r m e d w h e n p a c k e ts o f a s p e c if ic le n g th a r e f o r w a r d e d .H o w e v e r ,
y o u w o u ld n o t u s e th e m a tch le ng th c o m m a n d in r o u te -m a p s a p p lie d t o r e d is t r ib u t io n .

Y o u c a n c o n f i g u r e m a tch a n d s e t c o m m a n d s i n a r o u t e -m a p t h a t a r e n o t s u p p o r te d (o r d o n o t h a v e e ff e c t) in a
c o n t e x t w h e r e a r o u t e -m a p is a p p lie d (o r in te n d e d to b e a p p lie d a t a la t e r s t a g e ).A n e x a m p le o f th is s it u a t io n
c a n b e t h e m a tch l e ng th c o m m a n d u s e d i n a r o u t e -m a p a p p l i e d t o r e d is tr ib u t io n .In r e d is tr ib u tio n , a r o u te -
m a p is a p p lie d t o e a c h r o u te in s t a lle d in to th e r o u t in g t a b le , b y t h e p r o t o c o l s p e c i f i e d i n t h e re dis trib ute
c o m m a n d .T h e r e fo r e , w h e n a r o u t e r e x e c u t e s a r o u t e -m a p , t h e r o u te r in te r p r e ts o n ly th e c o m m a n d s w h ic h
m a k e s e n s e in th e c o n te x t o f r o u t e -m a p a p p l i c a t i o n . I n t h i s e x a m p l e , t h e m a tch l e ng th c o m m a n d m e n tio n e d in
t h e r e d i s t r i b u t i o n r o u t e -m a p h a s n o a f f e c t o n r e d is t r ib u tio n .It r e m a in s in th e c o n f ig u r a tio n o f t h e r o u t e -m a p ,
a n d it c a n b e s e e n in th e r u n n in g c o n f ig u r a tio n o f t h e r o u t e r .R o u te r e d is tr ib u t io n is n o t a f f e c t e d , h o w e v e r ,
w h e th e r th is c o m m a n d is p r e s e n t i n t h e r o u t e -m a p o r n o t .

I n c o n c l u s i o n , t h e r o u t e r a l l o w s t h e c o n f i g u r a t i o n o f a l l k i n d s o f m a tch a n d s e t c o m m a n d s , b u t t h e y s h o u l d b e
a p p lie d lo g ic a lly t o th e s it u a tio n .O t h e r w is e , th e c o n f ig u r a t io n m ig h t b e v e r y c o n f u s in g o r m ig h t p e r f o r m
in c o r r e c t t a s k s .

5/ 25/ 20 0 5
C i s c o - R o u t e-M ap s f o r I P R o u t i n g Pr o t o c o l R ed i s t r i b u t i o n C o n f i gu r at i o n Page 5 o f 9

D o n o t u s e c o m m a n d s w i t h n o e f f e c t i n a r o u t e -m a p c o n t e x t —e v e n i f t h e y s e e m h a r m l e s s —b e c a u s e o f t h e s e
is s u e s :

 C o m m a n d s w it h n o e f f e c t c a n o b s c u r e w h a t y o u w a n t to a c c o m p lis h .T h is m a k e s th e c o n f ig u r a t io n v e r y
c o n fu s in g .

 C o m m a n d s t h a t a r e c u r r e n t ly u n s u p p o r t e d m ig h t b e c o m e s u p p o r t e d in f u tu r e r e le a s e s o f C is c o IO S
s o f t w a r e . T h u s , y o u m i g h t s e e u n w a n t e d c h a n g e s i n t h e r o u t e -m a p b e h a v i o r a f t e r f u t u r e s o f t w a r e
u p g r a d e s .

 N o t a l l c o m m a n d s a r e c o m p l e t e l y h a r m l e s s ; f o r e x a m p l e , t h e s e t m e tric + / - c o m m a n d , w h i c h s p e c i f i e s
th e r e la tiv e c h a n g e o f m e t r ic a n d w h ic h is u s e d w it h B G P r o u te a d v e r tis e m e n t.It c a n ta k e t h e c u r r e n t
m e tr ic o f a r o u te a n d in c r e a s e o r d e c r e a s e it b y a s p e c if ie d v a lu e b e f o r e it p r o p a g a te s it .

T h e + / - f o r m o f t h i s c o m m a n d i s n o t c u r r e n t l y s u p p o r t e d i n r e d i s t r i b u t i o n r o u t e -m a p s , a n d i t i s a c t u a l l y
i n t e r p r e t e d a s t h e s e t m e tric c o m m a n d w i t h t h e s i g n o m i t t e d . F o r e x a m p l e , c o n s i d e r t h i s r o u t e -m a p :

!--- T h i s r e d i s t r i b u t i o n r o u t e -m a p i s v e r y d a n g e r o u s !

r o u t e -m a p o s p f -t o -o s p f p e r m i t 1 0
s e t m e t r i c + 2
!

T h is c o n f ig u r a t io n a p p e a r s t o r e d is t r ib u te a ll r o u t e s f r o m o n e O S P F p r o c e s s to a n o t h e r , w h ile it
in c r e a s e s th e m e tr ic o f a ll r o u t e s b y t w o .Y e t , it a c tu a lly s e ts th e m e tr ic o f a ll r o u te s t o b e th e s a m e ,
e q u a l t o 2 —p r o b a b l y n o t w h a t y o u m i g h t t h i n k w h e n y o u e x a m i n e t h e r o u t e r c o n f i g u r a t i o n .

T h i s r o u t e -m a p p r o v i d e s a n e v e n m o r e c o u n t e r -i n t u i t i v e e f f e c t :

!--- T h i s r e d i s t r i b u t i o n r o u t e -m a p i s e v e n m o r e d a n g e r o u s !

r o u t e -m a p o s p f -t o -o s p f p e r m i t 1 0
s e t m e t r i c -3 6 7
!

R a t h e r th a n d e c r e a s e t h e m e t r ic o f r e d is tr ib u t e d r o u t e s , th is c o n f ig u r a tio n a c tu a lly s e ts th e m e tr ic t o
3 6 7 ( a p o s i t i v e v a l u e , b e c a u s e a n e g a t i v e m e t r i c i s n o t p o s s i b l e w h e n s e t m e tric i s i n t e r p r e t e d w i t h o u t
th e s ig n ).

T w o -P ro to c o l N a ture o f Ro ute-M a p Red istrib utio n

R o u t e -m a p s a p p l i e d t o r e d i s t r i b u t i o n w o r k w i t h t w o r o u t i n g p r o t o c o l s :

 T h e p r o t o c o l t h a t p r o v id e s t h e o r ig in a l r o u tin g in f o r m a t io n

 T h e p r o t o c o l t o w h ic h t h e r o u tin g in f o r m a tio n is r e d is tr ib u t e d

E a c h r o u t in g p r o t o c o l c a n s u p p o r t its o w n s e t o f r o u t e a tt r ib u te s .

I n r e d i s t r i b u t i o n r o u t e -m a p c o n f i g u r a t i o n :

 R o u t e -m a p m a tch c o m m a n d s v e r i f y t h e a t t r i b u t e s o f a r o u t e t h a t a r e s u p p o r t e d b y t h e p r o t o c o l w h i c h
s u p p lie d th e o r ig in a l r o u t e f o r r e d is tr ib u t io n .

 R o u t e -m a p s e t c o m m a n d s m o d i f y t h e a t t r i b u t e s o f r o u t e s t h a t a r e s u p p o r t e d b y t h e p r o t o c o l t o w h i c h
th e r o u t e s a r e r e d is t r ib u t e d .

5/ 25/ 20 0 5
C i s c o - R o u t e-M ap s f o r I P R o u t i n g Pr o t o c o l R ed i s t r i b u t i o n C o n f i gu r at i o n Page 6 o f 9

T h e C o m m a n d S u p p o r t T a b l e s s e c t i o n o f t h i s d o c u m e n t l i s t s t h e c o m m a n d s . T h e y a r e c a t e g o r i z e d b y m a tch
a n d s e t c o m m a n d s , t o h i g h l i g h t t h e t w o -p r o t o c o l n a t u r e o f r e d i s t r i b u t i o n r o u t e -m a p s .

C o mma nd S up p o rt T a b l es

T h is s e c t io n d e s c r ib e s th e c o m m a n d s th a t a r e s u p p o r te d in r o u t e -m a p s a t t a c h e d i n t h e re dis trib ute c o m m a n d .


T h e r e a r e s e v e n r o u tin g p r o to c o ls fr o m w h ic h r o u te s c a n b e r e d is tr ib u t e d ; h o w e v e r , th e r e a r e o n ly f iv e t o
w h ic h r e d is t r ib u t io n c a n ta k e p la c e .C o n n e c t e d a n d s ta t ic r o u t e s a r e n o t d y n a m ic r o u tin g p r o to c o ls a n d c a n
o n ly p r o v id e in f o r m a t io n t o b e r e d is t r ib u te d in to o th e r p r o to c o ls .

T h i s s e c t i o n d o e s n o t i n c l u d e t h e m a tch a n d s e t c o m m a n d s t h a t a r e s u p p o r t e d i n I O S S o f t w a r e R e l e a s e 1 2 .3
r o u t e -m a p s b u t t h a t a r e n o t a p p l i c a b l e i n t h e r e d i s t r i b u t i o n c o n t e x t .

I n t e r m e d i a t e S y s t e m -t o -I n t e r m e d i a t e S y s t e m ( I S -I S ) a n d B G P c a n p r o p a g a t e i n f o r m a t i o n a b o u t C o n n e c t i o n l e s s
N e t w o r k S e r v ic e (C L N S ) r o u t e s a lo n g w it h IP r o u t e s .T o b e th o r o u g h , th e t a b le s in th is s e c t io n a ls o m e n tio n
C L N S -r e l a t e d c o m m a n d s , w h i c h c a n b e u s e d i n r e d i s t r i b u t i o n r o u t e -m a p s f o r t h e s e p r o t o c o l s .

Y o u c a n u s e R o u tin g In f o r m a t io n P r o to c o l (R IP ) , O S P F , I S -I S , a n d B G P to p r o p a g a te IP v 6 r o u te s ; r e d i s tr ib u tio n
r o u t e -m a p s f o r th e s e p r o to c o ls m a y c o n t a in IP v 6 -s p e c i f i c c o m m a n d s .T h e m a tch ip a n d s e t ip c o m m a n d s a r e
s p e c if ic f o r r e d is tr ib u tio n o f IP v 4 p r e fix e s .T h e m a tch ip v 6 a n d s e t ip v 6 c o m m a n d s a r e s p e c if ic f o r
r e d is t r ib u t io n o f IP v 6 p r e f ix e s .Y o u c a n u s e th e m a tch cl ns a n d s e t cl ns c o m m a n d s o n ly if y o u u s e a r o u te -
m a p to r e d is t r ib u te C L N S r o u te s to o r f r o m th e r o u tin g p r o to c o l.

T a b le 1 a n d T a b le 2 u s e th e s e c o n v e n tio n s :

 S u p p o r te d c o m m a n d s a r e m a r k e d w ith a Y e s .

 U n s u p p o r t e d c o m m a n d s a r e m a r k e d w i t h a d a s h ( —) .

 U n s u p p o r te d c o m m a n d s k n o w n to p e r f o r m a n a c tio n (p r o b a b ly a n u n w a n t e d a c tio n ) a r e m a r k e d w it h a
N o.

T a b l e 1 – R oute -m a p C om m a nds to M a tch R oute s Ins ta l l e d into


R outing T a b l e s b y P rotocol s
R e dis trib ution S up p ort
C om m a nd IS -
conne cte d s ta tic R IP E IG R P O S P F B G P
IS
m a tch cl ns
— Y e s — — — Y e s Y e s
a ddre s s
m a tch cl ns
— Y e s — — — Y e s —
ne x t-h op
m a tch
Y e s Y e s Y e s Y e s Y e s Y e s —
inte rf a ce
m a tch ip
Y e s Y e s Y e s Y e s Y e s Y e s Y e s
a ddre s s
m a tch ip
a ddre s s p re f ix - Y e s Y e s Y e s Y e s Y e s Y e s Y e s
l is t
m a tch ip ne x t-
— Y e s Y e s Y e s Y e s Y e s Y e s
h op
m a tch ip ne x t-
— N o N o N o N o N o N o
h op p re f ix -l is t
m a tch ip route -
— — Y e s Y e s Y e s — Y e s
s ource

5/ 25/ 20 0 5
C i s c o - R o u t e-M ap s f o r I P R o u t i n g Pr o t o c o l R ed i s t r i b u t i o n C o n f i gu r at i o n Page 7 o f 9

m a tch ip route -
s ource p re f ix - — — N o N o N o — N o
l is t
m a tch ip v 6
a ddre s s Y e s Y e s Y e s — Y e s Y e s Y e s
[ p re f ix -l is t]
m a tch ip v 6
ne x t-h op — Y e s Y e s — — — Y e s
[ p re f ix -l is t]
m a tch ip v 6
route -s ource — — Y e s — — — Y e s
[ p re f ix -l is t]
m a tch m e tric — — Y e s Y e s Y e s Y e s Y e s
m a tch p ol icy -
Y e s Y e s Y e s Y e s Y e s Y e s Y e s
l is t
m a tch route -
— — — Y e s Y e s Y e s Y e s
ty p e e x te rna l
m a tch route -
— — — Y e s Y e s — Y e s
ty p e inte rna l
m a tch route -
— — — — — — Y e s
ty p e l oca l
m a tch route -
ty p e ns s a - — — — — Y e s — —
e x te rna l
m a tch route -
ty p e { l e v e l - — — — — — Y e s —
1| l e v e l -2 }
m a tch ta g — Y e s Y e s Y e s Y e s Y e s Y e s

T a b l e 2 – C om m a nds th a t M odif y R oute A ttrib ute s D uring


R e dis trib ution into th e T a rg e t P rotocol
R e dis trib ution S up p ort
C om m a nd IS -
R IP E IG R P O S P F B G P
IS
s e t a s -p a th ta g — — — — Y e s
s e t com m unity — — — — Y e s
s e t ip ne x t-h op — — — — Y e s
s e t ip ne x t-h op p e e r-a ddre s s — — — — N o
s e t ip v 6 ne x t-h op — — — — Y e s
s e t l e v e l { b a ck b one | s tub -a re a } — — N o — —
s e t l e v e l { l e v e l -1| l e v e l -2 | l e v e l -1-
— — — Y e s —
2 }
s e t l oca l -p re f e re nce — — — — Y e s
s e t m e tric Y e s — Y e s Y e s Y e s
s e t m e tric + / - N o — N o N o N o
s e t m e tric eigrp-m et ric — Y e s — — —
s e t m e tric + / - eigrp-m et ric — N o — — —

5/ 25/ 20 0 5
C i s c o - R o u t e-M ap s f o r I P R o u t i n g Pr o t o c o l R ed i s t r i b u t i o n C o n f i gu r at i o n Page 8 o f 9

s e t m e tric-ty p e inte rna l — — — Y e s —


s e t m e tric-ty p e e x te rna l — — — Y e s —
s e t m e tric-ty p e { ty p e -1| ty p e -2 } — — Y e s — —
s e t nl ri — — — — Y e s
s e t orig in — — — — Y e s
s e t ta g Y e s Y e s Y e s — —
s e t w e ig h t — — — — Y e s

S u m m a r y
R o u te -m a p s a r e v e r y p o w e r f u l b u t c o m p lic a t e d to o ls f o r th e r e d is tr ib u t io n o f r o u t e s .T h e y a llo w f o r v e r y fin e
m a n ip u la ti o n o f r o u tin g in f o r m a t io n w h e n it is r e d is tr ib u te d b e tw e e n p r o to c o ls .H o w e v e r , th e y c a n b e
d a n g e r o u s a n d c a n c r e a t e “b l a c k h o le s ”o r s u b o p t im a l tr a f f ic f lo w in y o u r n e tw o r k .Y o u m u s t d e s ig n n e tw o r k s
v e r y c a r e fu lly , if y o u a r e g o in g to e m p lo y c o m p le x r e d is tr ib u tio n fe a tu r e s b e tw e e n m u lt ip l e r o u tin g p r o to c o ls .

N etP r o D i sc u ssi on F or u m s - F ea tu r ed Conv er sa ti ons


N e t w o r k in g P r o f e s s io n a ls C o n n e c t io n is a f o r u m f o r n e tw o r k in g p r o f e s s io n a ls t o s h a r e q u e s tio n s , s u g g e s t io n s ,
a n d in f o r m a t io n a b o u t n e tw o r k in g s o lu tio n s , p r o d u c t s , a n d t e c h n o lo g ie s .T h e f e a t u r e d lin k s a r e s o m e o f th e
m o s t r e c e n t c o n v e r s a t io n s a v a ila b le in t h is t e c h n o lo g y .
N e t P r o D is c u s s io n F o r u m s -F e a tu r e d C o n v e r s a t io n s f o r R P
S e r v ic e P r o v id e r s : M P L S
S it e n o t a c c e s s a b le in V R F -M a y 2 5 , 2 0 0 5
M P L S & B G P -M a y 2 4 , 2 0 0 5
M e m o r y U t iliz a t io n e ff e c t
e d C E F -M a y 2 4 , 2 0 0 5
M P L S Q o S -C is c o r e c o m m
e n d a t io n -M a y 2 4 , 2 0 0 5
N O P H P o n la s t P s e e n in s p e c if ic c o n d it io n -M a y 2 4 , 2 0 0 5
V ir t u a l P r iv a te N e tw o r k s : S e r v ic e s
G R E T u n n e l o n c is c o 8 3 1 -M a y 2 5 , 2 0 0 5
C o n f ig u r in g v p n g r o u p P IX 5 1 5 -M a y 2 0 , 2 0 0 5
F T P fr o m r o u te r b a s e d V P N -M a y 1 9 , 2 0 0 5
N o T r a c e r o u te s o v e r C o n c e n tr a to r < ->P IX V P N ...? ? ? - M a y 1 6 , 2 0 0 5
S it e t o S it e V P N b e t w e e n a P IX 5 1 5 a n d a S o n ic w a ll F ir e w a ll -M a y 1 5 , 2 0 0 5
V ir t u a l P r iv a te N e tw o r k s : S e c u r ity
F ilte r in g U n w a n te d T r a f fic -M a y 2 5 , 2 0 0 5
N o n -C i s c o V P N c o n n e c tio n P r o b le m -M a y 2 5 , 2 0 0 5
M o d e m in a P ix -M a y 2 5 , 2 0 0 5
A C S f o r J u n ip e r a n d N o r te l -M a y 2 5 , 2 0 0 5
A c ti v e F T P a c r o s s a P IX -M a y 2 4 , 2 0 0 5

R el a ted I nf or m a ti on
 B G P S up p ort P a g e
 E IG R P S up p ort P a g e
 IG R P S up p ort P a g e
 IS -IS S up p ort P a g e
 O S P F S up p ort P a g e
 R IP S up p ort P a g e
 T e ch nica l S up p ort & D ocum e nta tion - C is co S y s te m s

5/ 25/ 20 0 5
C i s c o - R o u t e-M ap s f o r I P R o u t i n g Pr o t o c o l R ed i s t r i b u t i o n C o n f i gu r at i o n Page 9 o f 9

All contents are Copyright © 1 9 9 2 -2 0 0 5 Cisco S ystem s, I nc. All rights reserv ed . I m portant N otices and P riv acy S tatem ent.

5/ 25/ 20 0 5

S-ar putea să vă placă și