Cisco Systems IOS XR manual

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282

Go to page of

A good user manual

The rules should oblige the seller to give the purchaser an operating instrucion of Cisco Systems IOS XR, along with an item. The lack of an instruction or false information given to customer shall constitute grounds to apply for a complaint because of nonconformity of goods with the contract. In accordance with the law, a customer can receive an instruction in non-paper form; lately graphic and electronic forms of the manuals, as well as instructional videos have been majorly used. A necessary precondition for this is the unmistakable, legible character of an instruction.

What is an instruction?

The term originates from the Latin word „instructio”, which means organizing. Therefore, in an instruction of Cisco Systems IOS XR one could find a process description. An instruction's purpose is to teach, to ease the start-up and an item's use or performance of certain activities. An instruction is a compilation of information about an item/a service, it is a clue.

Unfortunately, only a few customers devote their time to read an instruction of Cisco Systems IOS XR. A good user manual introduces us to a number of additional functionalities of the purchased item, and also helps us to avoid the formation of most of the defects.

What should a perfect user manual contain?

First and foremost, an user manual of Cisco Systems IOS XR should contain:
- informations concerning technical data of Cisco Systems IOS XR
- name of the manufacturer and a year of construction of the Cisco Systems IOS XR item
- rules of operation, control and maintenance of the Cisco Systems IOS XR item
- safety signs and mark certificates which confirm compatibility with appropriate standards

Why don't we read the manuals?

Usually it results from the lack of time and certainty about functionalities of purchased items. Unfortunately, networking and start-up of Cisco Systems IOS XR alone are not enough. An instruction contains a number of clues concerning respective functionalities, safety rules, maintenance methods (what means should be used), eventual defects of Cisco Systems IOS XR, and methods of problem resolution. Eventually, when one still can't find the answer to his problems, he will be directed to the Cisco Systems service. Lately animated manuals and instructional videos are quite popular among customers. These kinds of user manuals are effective; they assure that a customer will familiarize himself with the whole material, and won't skip complicated, technical information of Cisco Systems IOS XR.

Why one should read the manuals?

It is mostly in the manuals where we will find the details concerning construction and possibility of the Cisco Systems IOS XR item, and its use of respective accessory, as well as information concerning all the functions and facilities.

After a successful purchase of an item one should find a moment and get to know with every part of an instruction. Currently the manuals are carefully prearranged and translated, so they could be fully understood by its users. The manuals will serve as an informational aid.

Table of contents for the manual

  • Page 1

    Corporate He adquarters Cisc o Syst ems , Inc . 170 West Ta sman Drive San Jos e, CA 95 134-1706 USA http://www.ci sco.com Tel: 408 526-4000 800 553- NETS (638 7) Fax: 408 526-4100 Cisco IOS XR Routing Conf iguration Guide Cisco IOS XR Softw are Release 3.2 Text Pa rt Nu mber: OL-5554- 05[...]

  • Page 2

    THE SPECIFICATIONS AND INFORMATION REGARDING TH E PRODUCTS IN THIS MANUAL ARE SUBJE CT TO CHANGE WITHOUT NO TICE. ALL STATEMENT S, INFORMATI ON, AND RECOMMENDA TIONS IN T HIS MANUAL ARE BELIEVED TO BE ACCURATE BU T ARE PRESEN TED WITHOUT WARRANTY OF ANY KIND, EXPRE SS OR IMPLIED. USERS MUST TA KE FULL RESPONSIBILITY FOR THEIR AP PLICATION OF ANY PR[...]

  • Page 3

    RC -iii Cisco IO S XR Rout ing Conf iguration Gui de CONTENTS Preface xi Document Revisi on Hist ory xi Obtain ing Docu mentati on xii Cisco. com xi i Produc t Documentat ion DVD xi i Orderi ng Documenta tion xii Document ation F eedback xii i Cisco Pr oduct S ecurit y Overview xii i Report ing Securi ty Probl ems in Cisc o Product s xiii Obtain in[...]

  • Page 4

    Cont ent s RC-iv Cisco I OS XR Rout ing Conf igurat ion Guide How to I mplem en t BGP on Cisc o IO S XR So ftwar e RC-27 Enabli ng B GP Rou ting RC-28 Config urin g a Routing Do main Confed eratio n for BGP RC- 31 Resett ing eBGP S ession Imme diatel y Upon Link Fa ilure RC-33 Loggin g Neighb or Changes RC-34 Adjust ing BGP Timer s RC-34 Chan ging [...]

  • Page 5

    Content s RC-v Cisco IO S XR Rout ing Conf iguration Gui de Rel ated D ocu me nts RC-80 Standar ds RC-80 MIBs RC-80 RFCs RC -80 Techn ica l As sist anc e RC-81 Implem enting IS-I S on Cisco IOS XR Soft ware RC-83 Content s RC-83 Prereq uisite s for I mplementi ng IS-IS on Cisco IOS XR Softwa re RC-84 Restr ictio ns for Im ple menti ng I S-IS o n C [...]

  • Page 6

    Cont ent s RC-vi Cisco I OS XR Rout ing Conf igurat ion Guide Custo mizin g Route s for IS-I S RC-119 Config uratio n Exampl es for Impl ementing IS-IS on Cisco IOS XR So ftware RC-122 Config urin g Single- Topolog y IS-I S for IPv6 : Example RC-122 Config urin g Multi topolog y IS-I S for IPv6 : Exampl e RC-123 Redist ributi ng IS-IS Routes Betwe [...]

  • Page 7

    Content s RC -vii Cisco IO S XR Rout ing Conf iguration Gui de Enabli ng OS PF RC-145 Config urin g Stub and Not- so-St ubby Area T ypes RC-147 Config urin g Neighbor s for Nonbro adcas t Networ ks RC-150 Config urin g Authenti cation at Differ ent Hie rarchic al Level s for OSPF Version 2 RC-155 Contro lling th e Frequ ency that the Same LS A Is O[...]

  • Page 8

    Cont ent s RC -v iii Cisco I OS XR Rout ing Conf igurat ion Guide RIB Suppo rt for IP v4 and IP v6 RC-197 How to Deploy and Monitor RI B RC -19 8 Verif ying RIB Con figurat ion Usin g the Routi ng Table RC-198 Verif ying Networ king and Rou ting Pro blems RC-198 Config uratio n Exampl es for RIB Moni toring RC- 200 Output of show rou te Command: Ex[...]

  • Page 9

    Content s RC-ix Cisco IO S XR Rout ing Conf iguration Gui de Simple I nbound Pol icy: Exa mple RC-242 Modular Inbound Pol icy: Exampl e RC-243 Transl ating Ci sco IOS Ro ute Maps to Ci sco IOS XR Routing Pol icy Lang uage: Examp le RC-244 Additi onal R efere nces RC-244 Rel ated D ocu me nts RC-244 Standar ds RC-244 MIBs RC-245 RFCs RC- 245 Techn i[...]

  • Page 10

    Cont ent s RC-x Cisco I OS XR Rout ing Conf igurat ion Guide[...]

  • Page 11

    xi Cisco IOS XR Routing Configuration Guide Preface This is the preface f or the Cisco IOS X R Rout ing Co nfigur ation G uide . The p refa ce con tains t he fol lo wing s ections: • Document Revision Histor y , page xi • Obtain ing Do cume ntation , pa ge xii • Document ation Fee dback, page xiii • Cisco Produ ct Sec urity Overview , page [...]

  • Page 12

    Preface Obtain ing Do cument ation xii Cisco IO S XR Ro uting C onfigur ation Gui de Obtaining Documentation Cisco d ocumenta tion and a ddition al lite rature are av ailable on Cisc o.co m. Cisco also provides s ev eral ways to obtain tec hnical assi stance an d other tec hnical re sources. These sect ions explain how to obtain technical informati[...]

  • Page 13

    Preface Documen tation Fee dback xiii Cisco IOS XR Routing Configuration Guide Documentatio n Feedback Y o u can rat e and pro vide fe edback about Ci sco techni cal documen ts b y completin g the online feedbac k form that appears with the te chnical d ocuments on Cisc o.com. Y ou can send com ments ab out Cisco docume ntatio n to bug-doc@ci sco.c[...]

  • Page 14

    Preface Obtain ing Techni cal Ass istance xiv Cisco IO S XR Ro uting C onfigur ation Gui de Ti p W e encourag e you to use Pretty Good Pri vac y (PGP) or a compatible product to encrypt a ny sensiti ve information that you send to Cisco. PSIR T can work from encr ypted information that is co mpatible with PGP versions 2. x through 8 . x . Nev er us[...]

  • Page 15

    Preface Obtaining Additional Publications and Information xv Cisco IOS XR Routing Configuration Guide Submitting a Se rvice Request Using the online T A C Service Request T ool is the fastest wa y to op en S3 and S4 service requests. (S3 and S4 ser vice request s are those in wh ich you r network i s mini mally i mpaired or for whic h you req uire [...]

  • Page 16

    Preface Obtainin g Addi tional Pub lications and Informat ion xvi Cisco IO S XR Ro uting C onfigur ation Gui de • Cisco Pre ss publishes a wide range o f general networkin g, training and cer tifi cation titles. Bot h new and e xperienced user s will benef it from these public ations. F or current Cisc o Press titles an d other information, go to[...]

  • Page 17

    RC-1 Cisco IOS XR Routing Configuration Guide Implementing BGP on Cisco IOS XR Software The Border G ate way Pr otocol (BG P) is an Ex terior Ga tew ay Pr otocol (EGP) that a llo ws you to c reate loop-fr ee inter domain ro uting betwe en auton omous syste ms. An autonom ous system is a set of routers unde r a single tech nical adm inis tration. Ro[...]

  • Page 18

    Impl ementing BGP on Cisco I OS XR Soft ware Prerequisit es for Impleme nting BGP on Cisco IOS XR Sof tware RC-2 Cisco IO S XR Ro uting C onfigur ation Gui de Prerequisites for Implementin g BGP on Cisco IOS XR Software T o use this co mmand , you must be in a user gr oup asso ciated with a task g roup tha t include s the pro per task IDs. F or det[...]

  • Page 19

    Impleme nting BGP on Ci sco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software RC-3 Cisco IOS XR Routing Configuration Guide BGP Router Identifier For BGP sessions betwee n neighbo rs to be establi shed, BGP mus t be assigned a router ID. Th e router ID is sent to BGP peers in the OPEN message when a BGP session is establis[...]

  • Page 20

    Impl ementing BGP on Cisco I OS XR Soft ware Informatio n About Imp lementin g BGP on Cisco IOS XR Sof tware RC-4 Cisco IO S XR Ro uting C onfigur ation Gui de – 512K (524, 288) pre fixes for IPv4 unicast . – 128K (131, 072) pre fixes for IPv4 multic ast. – 128K (131, 072) pre fixes for IPv6 unicast . A cease notificati on m essage i s sent t[...]

  • Page 21

    Impleme nting BGP on Ci sco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software RC-5 Cisco IOS XR Routing Configuration Guide Router Conf iguratio n Mode The following exam ple sh ows how to ente r ro uter con figuratio n mod e: RP/0/RP0/CPU0:router# configuration RP/0/RP0/CPU0:router(config)# router bgp 140 RP/0/RP0/CPU0:ro[...]

  • Page 22

    Impl ementing BGP on Cisco I OS XR Soft ware Informatio n About Imp lementin g BGP on Cisco IOS XR Sof tware RC-6 Cisco IO S XR Ro uting C onfigur ation Gui de Router(config-bgp-nbr)# remote-as 1 Router(config-bgp-nbr)# address-family ipv4 unicast Router(config-bgp-nbr-af)# maximum-prefix 1000 Configuration Te mplates The a f-group , session-group [...]

  • Page 23

    Impleme nting BGP on Ci sco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software RC-7 Cisco IOS XR Routing Configuration Guide • Command s entere d at the sessio n group level defi ne addr ess family-i ndepend ent comm ands (the same com mands as in the neighb or submod e). • Comman ds enter ed at the addr ess fam ily gro[...]

  • Page 24

    Impl ementing BGP on Cisco I OS XR Soft ware Informatio n About Imp lementin g BGP on Cisco IOS XR Sof tware RC-8 Cisco IO S XR Ro uting C onfigur ation Gui de Update group: 0.1 eBGP neighbor with no inbound or outbound policy; defaults to 'drop' Route refresh request: received 0, sent 0 0 accepted prefixes Prefix advertised 0, suppressed[...]

  • Page 25

    Impleme nting BGP on Ci sco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software RC-9 Cisco IOS XR Routing Configuration Guide RP/0/RP0/CPU0:router(config)# router bgp 150 RP/0/RP0/CPU0:router(config-bgp)# session-group AS_2 RP/0/RP0/CPU0:router(config-bgp-sngrp)# advertisement-interval 20 RP/0/RP0/CPU0:router(config-bgp-sngr[...]

  • Page 26

    Impl ementing BGP on Cisco I OS XR Soft ware Informatio n About Imp lementin g BGP on Cisco IOS XR Sof tware RC-10 Cisco IO S XR Ro uting C onfigur ation Gui de RP/0/RP0/CPU0:router# show bgp neighbors 192.168.2.2 BGP neighbor is 192.168.2.2, remote AS 1, local AS 140, external link Remote router ID 0.0.0.0 BGP state = Idle Last read 00:00:00, hold[...]

  • Page 27

    Impleme nting BGP on Ci sco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software RC-11 Cisco IOS XR Routing Configuration Guide Last reset 00:00:25, due to BGP neighbor initialized External BGP neighbor not directly connected. The inh erita nce rul es used when g roups ar e inher itin g configurat ion from other gr oups are t[...]

  • Page 28

    Impl ementing BGP on Cisco I OS XR Soft ware Informatio n About Imp lementin g BGP on Cisco IOS XR Sof tware RC-12 Cisco IO S XR Ro uting C onfigur ation Gui de The follo wing ex amp le dis plays s ampl e output from the show bgp neighbors comm and using the inheritance ke yword. The example sh ows that the neighbor inh erits se ssion pa rameter s [...]

  • Page 29

    Impleme nting BGP on Ci sco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software RC-13 Cisco IOS XR Routing Configuration Guide The follo wing ex amp le dis plays s ampl e output from the show bgp af-group comma nd using the conf iguration keyword. This example shows from wh ere eac h configurat ion item was inherited . The d[...]

  • Page 30

    Impl ementing BGP on Cisco I OS XR Soft ware Informatio n About Imp lementin g BGP on Cisco IOS XR Sof tware RC-14 Cisco IO S XR Ro uting C onfigur ation Gui de RP/0/RP0/CPU0:router# show bgp session-group GROUP_1 configuration session-group GROUP_1 ebgp-multihop 2 [s:GROUP_2] update-source Loopback0 [] dmz-link-bandwidth [s:GROUP_2 s:GROUP_3] The [...]

  • Page 31

    Impleme nting BGP on Ci sco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software RC-15 Cisco IOS XR Routing Configuration Guide The follo wing is sample output from the show bgp neighbor -group co mmand with th e configuration keyword. The configura tion setti ng sourc e is shown to the righ t of ea ch comm and. In the ou tpu[...]

  • Page 32

    Impl ementing BGP on Cisco I OS XR Soft ware Informatio n About Imp lementin g BGP on Cisco IOS XR Sof tware RC-16 Cisco IO S XR Ro uting C onfigur ation Gui de Routing Policy Enforcement Extern al BGP ( eBGP) ne ighbor s must have an inboun d and outboun d pol icy configured . If no pol icy is configured , no rout es are acc epted from the neighbo[...]

  • Page 33

    Impleme nting BGP on Ci sco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software RC-17 Cisco IOS XR Routing Configuration Guide BGP scan interval 60 secs BGP is operating in STANDALONE mode. Process RecvTblVer bRIB/RIB SendTblVer Speaker 1 1 1 Some configured eBGP neighbors do not have both inbound and outbound policies confi[...]

  • Page 34

    Impl ementing BGP on Cisco I OS XR Soft ware Informatio n About Imp lementin g BGP on Cisco IOS XR Sof tware RC-18 Cisco IO S XR Ro uting C onfigur ation Gui de Table Polic y The table polic y feature in BGP allo ws y ou to conf igure traf fic inde x valu es on routes as they are installed in the glob al routing table. This fe ature is enabled usin[...]

  • Page 35

    Impleme nting BGP on Ci sco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software RC-19 Cisco IOS XR Routing Configuration Guide The BGP be st path alg orithm impl ementation is in th ree parts: • Part 1—Compares tw o pa ths to det ermine which is bett er . • Part 2—Iterates o ver all paths and d etermines wh ich order[...]

  • Page 36

    Impl ementing BGP on Cisco I OS XR Soft ware Informatio n About Imp lementin g BGP on Cisco IOS XR Sof tware RC-20 Cisco IO S XR Ro uting C onfigur ation Gui de If the bg p bestpath med always co mmand is config ured, th en t he M ED co mp aris on is alway s perform ed, regardl ess of neighbor A S in the pat hs. Other wise, MED compa rison d epends[...]

  • Page 37

    Impleme nting BGP on Ci sco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software RC-21 Cisco IOS XR Routing Configuration Guide 2. The best path in each gro up is determined. D etermini ng the best path i s achie ved by i terating throu gh all paths in the group an d keeping trac k of the best one seen so far . Each path is c[...]

  • Page 38

    Impl ementing BGP on Cisco I OS XR Soft ware Informatio n About Imp lementin g BGP on Cisco IOS XR Sof tware RC-22 Cisco IO S XR Ro uting C onfigur ation Gui de Multipro tocol BGP is usefu l when you want a li nk dedicat ed to multica st traf f ic, perhaps to limit wh ich resources are used for which traffic. Multiprotocol BGP allows you to hav e a[...]

  • Page 39

    Impleme nting BGP on Ci sco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software RC-23 Cisco IOS XR Routing Configuration Guide A multicast routing p rotocol, such as PIM, uses the m ulticast BGP database t o perform Re verse P ath For warding ( RPF) lookups for multicast-cap able sources. Thus, pac kets can b e sent and acce[...]

  • Page 40

    Impl ementing BGP on Cisco I OS XR Soft ware Informatio n About Imp lementin g BGP on Cisco IOS XR Sof tware RC-24 Cisco IO S XR Ro uting C onfigur ation Gui de Note No penalty is applied to a BGP peer reset when route dampe ning is enabled. Although the re set withdra ws the route, no penalty is applied in this instance , e ven if rout e flap damp[...]

  • Page 41

    Impleme nting BGP on Ci sco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software RC-25 Cisco IOS XR Routing Configuration Guide Figur e 3 Thr ee Fully Mes hed iBGP Speak ers W ith rout e ref lectors, all i BGP sp eakers need not be fully mesh ed bec ause there i s a method to pa ss learned route s to neighbors. In this model,[...]

  • Page 42

    Impl ementing BGP on Cisco I OS XR Soft ware Informatio n About Imp lementin g BGP on Cisco IOS XR Sof tware RC-26 Cisco IO S XR Ro uting C onfigur ation Gui de Figur e 5 Mor e Complex BG P Route Reflect or Model Figure 5 illustrates a more complex route reflector sch eme. Router A is the route reflec tor in a cluster with rout ers B, C, and D. R o[...]

  • Page 43

    Impleme nting BGP on Ci sco IOS XR Software How to Implement BGP on Cisco IOS XR Software RC-27 Cisco IOS XR Routing Configuration Guide clus ter ID so that a rout e refle ctor can recog niz e updat es from route refl ectors in th e same cluste r . Al l route reflec tors serving a cluster should be fully meshed and all of them should ha ve identica[...]

  • Page 44

    Impl ementing BGP on Cisco I OS XR Soft ware How to Implemen t BGP on Cisc o IOS XR Softwa re RC-28 Cisco IO S XR Ro uting C onfigur ation Gui de • T uni ng the BGP Be st Path Calcu lation , page RC-39 (o ptiona l) • Indicat ing BGP Backdo or Routes, page RC-41 (optional) • Configuring A ggregate A ddresses, page RC-43 (optional) • Redistri[...]

  • Page 45

    Impleme nting BGP on Ci sco IOS XR Software How to Implement BGP on Cisco IOS XR Software RC-29 Cisco IOS XR Routing Configuration Guide Restrictions If the neigh bor is configure d as an external B GP (eBGP) peer, you must configure an in bound an d outbound route policy on the ne ighbor using the route-poli cy command. SUMMARY ST EPS 1. conf igur[...]

  • Page 46

    Impl ementing BGP on Cisco I OS XR Soft ware How to Implemen t BGP on Cisc o IOS XR Softwa re RC-30 Cisco IO S XR Ro uting C onfigur ation Gui de Step 3 end-policy Example : RP/0/RP0/CPU0:router(config-rpl)# end-policy (Opti onal) Ends t he de finition of a route pol icy and exit s route policy co nfiguration mode . Step 4 end or commit Example : R[...]

  • Page 47

    Impleme nting BGP on Ci sco IOS XR Software How to Implement BGP on Cisco IOS XR Software RC-31 Cisco IOS XR Routing Configuration Guide Configuring a Routing Doma in Confederatio n for B GP Perform this task to conf igure the routing domain confed eration for BGP . This includes specifying a confede rati on identi fier and autonom ous systems t ha[...]

  • Page 48

    Impl ementing BGP on Cisco I OS XR Soft ware How to Implemen t BGP on Cisc o IOS XR Softwa re RC-32 Cisco IO S XR Ro uting C onfigur ation Gui de SUMMARY ST EPS 1. conf igure 2. router bgp autono mous-syste m-number 3. bgp confederation ident if ier autonomous -system -number 4. bgp confederation pee rs auton omous-sy stem-num ber 5. end or commit [...]

  • Page 49

    Impleme nting BGP on Ci sco IOS XR Software How to Implement BGP on Cisco IOS XR Software RC-33 Cisco IOS XR Routing Configuration Guide Resetting eBGP Sess ion Immediately Upon Link Failure Immediat ely res etting BGP sessi ons of any d irectly adjacen t ex ternal pe ers if the link used to reach them goes down is enable d by defau lt. Use the bgp[...]

  • Page 50

    Impl ementing BGP on Cisco I OS XR Soft ware How to Implemen t BGP on Cisc o IOS XR Softwa re RC-34 Cisco IO S XR Ro uting C onfigur ation Gui de Logging Ne ighbor C hanges Logging neigh bor c hanges is ena bled by de fault. U se the log neighbor chang es disable command t o turn off logging . The log neighbor cha nges disable command ca n also be [...]

  • Page 51

    Impleme nting BGP on Ci sco IOS XR Software How to Implement BGP on Cisco IOS XR Software RC-35 Cisco IOS XR Routing Configuration Guide Changing the BGP De fault Local Pre ference V alue Perform this task to set the default lo cal preference v alue for BGP paths. SUMMARY ST EPS 1. conf igure 2. router bgp autono mous-syste m-number 3. bgp default [...]

  • Page 52

    Impl ementing BGP on Cisco I OS XR Soft ware How to Implemen t BGP on Cisc o IOS XR Softwa re RC-36 Cisco IO S XR Ro uting C onfigur ation Gui de DETAILED STEP S Configuring the MED Metric for BGP Perform this task to set the multi ex it discriminator (MED) to adv ertise to peers for routes that do not alread y hav e a metric set (routes tha t were[...]

  • Page 53

    Impleme nting BGP on Ci sco IOS XR Software How to Implement BGP on Cisco IOS XR Software RC-37 Cisco IOS XR Routing Configuration Guide 4. end or commit DETAILED STEP S Comm and or Acti on Pur pose Step 1 configure Example : RP/0/RP0/CPU0:router# configure Enters gl obal configurat ion mode. Step 2 router bgp autonomous-system-number Example : RP/[...]

  • Page 54

    Impl ementing BGP on Cisco I OS XR Soft ware How to Implemen t BGP on Cisc o IOS XR Softwa re RC-38 Cisco IO S XR Ro uting C onfigur ation Gui de Configuring BGP Weights Perform t his task to assi gn a weight to route s received from a neighb or . A weig ht is a num ber that you can assign to a path so that you ca n control th e best path sel ectio[...]

  • Page 55

    Impleme nting BGP on Ci sco IOS XR Software How to Implement BGP on Cisco IOS XR Software RC-39 Cisco IOS XR Routing Configuration Guide Tuning the BGP Best P ath Calculatio n Perform this task to change the default BGP best path calculat ion behavio r . SUMMARY ST EPS 1. conf igure 2. router bgp autono mous-syste m-number 3. bgp bestpath med missi[...]

  • Page 56

    Impl ementing BGP on Cisco I OS XR Soft ware How to Implemen t BGP on Cisc o IOS XR Softwa re RC-40 Cisco IO S XR Ro uting C onfigur ation Gui de 8. end or commit DETAILED STEP S Comm and or Acti on Pur pose Step 1 configure Example : RP/0/RP0/CPU0:router# configure Enters gl obal configurat ion mode. Step 2 router bgp autonomous-system-number Exam[...]

  • Page 57

    Impleme nting BGP on Ci sco IOS XR Software How to Implement BGP on Cisco IOS XR Software RC-41 Cisco IOS XR Routing Configuration Guide Indicating BGP Backdoor R outes Per fo rm th is tas k to se t th e a dm ini str at iv e di sta nc e o n an exter na l Bo rd er G ateway Pro to col (e BGP ) r oute to that of a l o cally source d BGP route, cau sin[...]

  • Page 58

    Impl ementing BGP on Cisco I OS XR Soft ware How to Implemen t BGP on Cisc o IOS XR Softwa re RC-42 Cisco IO S XR Ro uting C onfigur ation Gui de DETAILED STEP S Comm and or Acti on Pur pose Step 1 configure Example : RP/0/RP0/CPU0:router# configure Enters gl obal configurat ion mode. Step 2 router bgp autonomous-system-number Example : RP/0/RP0/CP[...]

  • Page 59

    Impleme nting BGP on Ci sco IOS XR Software How to Implement BGP on Cisco IOS XR Software RC-43 Cisco IOS XR Routing Configuration Guide Configuring Ag gregate Addresses Pe r fo r m t h i s t a sk t o create aggregate entr ies in a BGP routing table. SUMMARY ST EPS 1. conf igure 2. router bgp autono mous-syste m-number 3. address-family { ipv4 unic[...]

  • Page 60

    Impl ementing BGP on Cisco I OS XR Soft ware How to Implemen t BGP on Cisc o IOS XR Softwa re RC-44 Cisco IO S XR Ro uting C onfigur ation Gui de Redistributing iBGP Routes into IGP Perform th is task to redistrib ute iBGP routes into an Interior Gate way Protocol ( IGP), such a s Intermediate Syst em-to-Intermediate System (IS-IS) or Open Shortest[...]

  • Page 61

    Impleme nting BGP on Ci sco IOS XR Software How to Implement BGP on Cisco IOS XR Software RC-45 Cisco IOS XR Routing Configuration Guide SUMMARY ST EPS 1. conf igure 2. router bgp autono mous-syste m-number 3. bgp re distribute-inter nal 4. end or commit DETAILED STEP S Comm and or Acti on Pur pose Step 1 configure Example : RP/0/RP0/CPU0:router# c[...]

  • Page 62

    Impl ementing BGP on Cisco I OS XR Soft ware How to Implemen t BGP on Cisc o IOS XR Softwa re RC-46 Cisco IO S XR Ro uting C onfigur ation Gui de Redistributing Prefixes into Multiprotocol BGP Perform this task to redistrib ute pref ixes from a nother protoco l into m ultiprotocol BGP . Redistribution is the proce ss of in jecting p refixes from on[...]

  • Page 63

    Impleme nting BGP on Ci sco IOS XR Software How to Implement BGP on Cisco IOS XR Software RC-47 Cisco IOS XR Routing Configuration Guide Step 4 redistribute connected [ metric metric-value ] [ route-policy route-policy-name ] or redistribute isis process-id [ level {1 | 1-inter-area | 2}] [ metric metric-value ] [ route-policy route-policy-name ] o[...]

  • Page 64

    Impl ementing BGP on Cisco I OS XR Soft ware How to Implemen t BGP on Cisc o IOS XR Softwa re RC-48 Cisco IO S XR Ro uting C onfigur ation Gui de Configuring BG P Route Dampening Perform this task to conf igure and monitor BGP route dampening. SUMMARY ST EPS 1. conf igure 2. router bgp autono mous-syste m-number 3. address-family { ipv4 unicast | i[...]

  • Page 65

    Impleme nting BGP on Ci sco IOS XR Software How to Implement BGP on Cisco IOS XR Software RC-49 Cisco IOS XR Routing Configuration Guide DETAILED STEP S Comm and or Acti on Pur pose Step 1 configure Example : RP/0/RP0/CPU0:router# configure Enters gl obal configurat ion mode. Step 2 router bgp autonomous-system-number Example : RP/0/RP0/CPU0:router[...]

  • Page 66

    Impl ementing BGP on Cisco I OS XR Soft ware How to Implemen t BGP on Cisc o IOS XR Softwa re RC-50 Cisco IO S XR Ro uting C onfigur ation Gui de Step 6 show bgp [ ipv4 { unicast | multicast | all } | ipv6 { unicast | all } | all { unicast | multicast | all }] flap-statistics Example : RP/0/RP0/CPU0:router# show bgp flap statistics Displays BGP fl [...]

  • Page 67

    Impleme nting BGP on Ci sco IOS XR Software How to Implement BGP on Cisco IOS XR Software RC-51 Cisco IOS XR Routing Configuration Guide Step 12 clear bgp { ipv4 { unicast | multicast | all } | ipv6 { unicast | all } | all { unicast | multicast | all }} flap-statistics regexp regular-expression Example : RP/0/RP0/CPU0:router# clear bgp ipv4 unicast[...]

  • Page 68

    Impl ementing BGP on Cisco I OS XR Soft ware How to Implemen t BGP on Cisc o IOS XR Softwa re RC-52 Cisco IO S XR Ro uting C onfigur ation Gui de Applying Policy When Updating th e Routi ng Table Pe r f o rm t h is t a sk t o apply a routin g policy to routes being inst alled into the routing table. Prerequisites See the Imple mentin g Routing P ol[...]

  • Page 69

    Impleme nting BGP on Ci sco IOS XR Software How to Implement BGP on Cisco IOS XR Software RC-53 Cisco IOS XR Routing Configuration Guide Setting BG P Administrativ e Distance Perform this task to specify the use of administrati ve distan ces that can be used to prefer one class of route over anot her . SUMMARY ST EPS 1. conf igure 2. router bgp aut[...]

  • Page 70

    Impl ementing BGP on Cisco I OS XR Soft ware How to Implemen t BGP on Cisc o IOS XR Softwa re RC-54 Cisco IO S XR Ro uting C onfigur ation Gui de DETAILED STEP S Comm and or Acti on Pur pose Step 1 configure Example : RP/0/RP0/CPU0:router# configure Enters gl obal configurat ion mode. Step 2 router bgp autonomous-system-number Example : RP/0/RP0/CP[...]

  • Page 71

    Impleme nting BGP on Ci sco IOS XR Software How to Implement BGP on Cisco IOS XR Software RC-55 Cisco IOS XR Routing Configuration Guide Configuring a BGP Neighbor Group Perform t his task to con figure BGP neighb or groups and ap ply the ne ighbor gro up configurati on to a neighbor. After a neig hbor g roup is configur ed, ea ch n eighbor can i n[...]

  • Page 72

    Impl ementing BGP on Cisco I OS XR Soft ware How to Implemen t BGP on Cisc o IOS XR Softwa re RC-56 Cisco IO S XR Ro uting C onfigur ation Gui de DETAILED STEP S Comm and or Acti on Pur pose Step 1 configure Example : RP/0/RP0/CPU0:router# configure Enters gl obal configurat ion mode. Step 2 router bgp autonomous-system-number Example : RP/0/RP0/CP[...]

  • Page 73

    Impleme nting BGP on Ci sco IOS XR Software How to Implement BGP on Cisco IOS XR Software RC-57 Cisco IOS XR Routing Configuration Guide Step 10 password { clear | encrypted } password Example : RP/0/RP0/CPU0:router(config-bgp-nbrgrp)# password clear pswd123 (Opti onal) Configures ne ighbor group nbr-grp-A to u se MD5 au thent ication wi th the pas[...]

  • Page 74

    Impl ementing BGP on Cisco I OS XR Soft ware How to Implemen t BGP on Cisc o IOS XR Softwa re RC-58 Cisco IO S XR Ro uting C onfigur ation Gui de Configuring a BGP Neighbor Perform this task to conf igure BGP neighbors. SUMMARY ST EPS 1. conf igure 2. router bgp autono mous-syste m-number 3. neighbor ip-address 4. remote-a s autono mous- system -nu[...]

  • Page 75

    Impleme nting BGP on Ci sco IOS XR Software How to Implement BGP on Cisco IOS XR Software RC-59 Cisco IOS XR Routing Configuration Guide DETAILED STEP S Comm and or Acti on Pur pose Step 1 configure Example : RP/0/RP0/CPU0:router# configure Enters gl obal configurat ion mode. Step 2 router bgp autonomous-system-number Example : RP/0/RP0/CPU0:router[...]

  • Page 76

    Impl ementing BGP on Cisco I OS XR Soft ware How to Implemen t BGP on Cisc o IOS XR Softwa re RC-60 Cisco IO S XR Ro uting C onfigur ation Gui de Configuring a Route Reflector for BGP Perform this task to conf igure a route reflector for BGP . All the neighbors c onfigu red with the r oute-r eflecto r -client command ar e member s of th e client gr[...]

  • Page 77

    Impleme nting BGP on Ci sco IOS XR Software How to Implement BGP on Cisco IOS XR Software RC-61 Cisco IOS XR Routing Configuration Guide Step 4 neighbor ip-address Example : RP/0/RP0/CPU0:router(config-bgp)# neighbor 172.168.40.24 Places the ro uter in neighbor c onfiguration mode for BGP routing and configures the n eighbor IP address 172.168 .40.[...]

  • Page 78

    Impl ementing BGP on Cisco I OS XR Soft ware How to Implemen t BGP on Cisc o IOS XR Softwa re RC-62 Cisco IO S XR Ro uting C onfigur ation Gui de Configuring BGP Route F iltering by Route P olicy Perform th is task to conf igure BGP r outing f iltering by ro ute polic y . Prerequisites See the Imple mentin g Routing P oli cy on Cisc o IOS XR Softw [...]

  • Page 79

    Impleme nting BGP on Ci sco IOS XR Software How to Implement BGP on Cisco IOS XR Software RC-63 Cisco IOS XR Routing Configuration Guide Step 4 router bgp autonomous-system-number Example : RP/0/RP0/CPU0:router(config)# router bgp 120 Enters BGP configuratio n mode allowing you to conf ig u re the BGP routing process. Step 5 neighbor ip-address Exa[...]

  • Page 80

    Impl ementing BGP on Cisco I OS XR Soft ware How to Implemen t BGP on Cisc o IOS XR Softwa re RC-64 Cisco IO S XR Ro uting C onfigur ation Gui de Disabling Nex t Hop Proc essing on BGP Upda tes Perform this t ask to disable next hop calcul ation f or a ne ighbor and insert y our own ad dress in the next hop field of BGP upda tes. Disabl ing the c a[...]

  • Page 81

    Impleme nting BGP on Ci sco IOS XR Software How to Implement BGP on Cisco IOS XR Software RC-65 Cisco IOS XR Routing Configuration Guide Configuring BGP Comm unity and Exte nded-Community Filtering Perform this task to specify that comm unity attrib utes should be sent to an eBGP neighbor . Perform this ta sk to specify th at community/e x tended-c[...]

  • Page 82

    Impl ementing BGP on Cisco I OS XR Soft ware How to Implemen t BGP on Cisc o IOS XR Softwa re RC-66 Cisco IO S XR Ro uting C onfigur ation Gui de SUMMARY ST EPS 1. conf igure 2. router bgp autono mous-syste m-number 3. neighbor ip-address 4. remote-as a utonomo us-syste m-numb er 5. address-family { ipv4 unicast | ip v4 mult ic as t | ipv6 unicast [...]

  • Page 83

    Impleme nting BGP on Ci sco IOS XR Software How to Implement BGP on Cisco IOS XR Software RC-67 Cisco IOS XR Routing Configuration Guide Configuring Software to Stor e Up dates from a Neighb or Pe r fo r m t h is t a s k t o configure th e software to store updates recei ved from a neighbo r . The soft-reconfiguratio n inbo und comm and cau ses a r[...]

  • Page 84

    Impl ementing BGP on Cisco I OS XR Soft ware How to Implemen t BGP on Cisc o IOS XR Softwa re RC-68 Cisco IO S XR Ro uting C onfigur ation Gui de 4. address-family { ipv4 unicast | ip v4 mult ic as t | ipv6 unicast | ipv6 multicast } 5. soft-reconf ig uration inbound alway s 6. end or commit DETAILED STEP S Comm and or Acti on Pur pose Step 1 confi[...]

  • Page 85

    Impleme nting BGP on Ci sco IOS XR Software How to Implement BGP on Cisco IOS XR Software RC-69 Cisco IOS XR Routing Configuration Guide Disabling a B GP Neighb or Perform t his task to adm inistratively shut down a neighbor w ithout removing the configurat ion. SUMMARY ST EPS 1. conf igure 2. router bgp autono mous-syste m-number 3. neighbor ip-ad[...]

  • Page 86

    Impl ementing BGP on Cisco I OS XR Soft ware How to Implemen t BGP on Cisc o IOS XR Softwa re RC-70 Cisco IO S XR Ro uting C onfigur ation Gui de DETAILED STEP S Comm and or Acti on Pur pose Step 1 configure Example : RP/0/RP0/CPU0:router# configure Enters gl obal configurat ion mode. Step 2 router bgp autonomous-system-number Example : RP/0/RP0/CP[...]

  • Page 87

    Impleme nting BGP on Ci sco IOS XR Software How to Implement BGP on Cisco IOS XR Software RC-71 Cisco IOS XR Routing Configuration Guide Resetting Neighbors Using BGP Dynamic Inbound Soft Reset Perform this task to tr igg er an in bou nd so ft re set of th e specif ied address fa milies for the specified gro up or neighbo rs. Resetting neighb ors i[...]

  • Page 88

    Impl ementing BGP on Cisco I OS XR Soft ware How to Implemen t BGP on Cisc o IOS XR Softwa re RC-72 Cisco IO S XR Ro uting C onfigur ation Gui de SUMMARY ST EPS 1. show bgp neighbors 2. clear bg p { ipv4 | ipv6 | all } { unicast | multicast | all } { * | ip-addre ss | as-numb er | external } soft out DETAILED STEP S Resetting Neighbors Us ing BGP H[...]

  • Page 89

    Impleme nting BGP on Ci sco IOS XR Software How to Implement BGP on Cisco IOS XR Software RC-73 Cisco IOS XR Routing Configuration Guide Clearing Cac hes, Ta bles and D atabas es Perform th is task to r emov e all c ontents of a particula r cache , table, o r database . Clearin g a cache , table, or dat abase can become nec essar y when the con ten[...]

  • Page 90

    Impl ementing BGP on Cisco I OS XR Soft ware How to Implemen t BGP on Cisc o IOS XR Softwa re RC-74 Cisco IO S XR Ro uting C onfigur ation Gui de 8. show bgp neighbor -group gr oup-nam e configuration 9. show bgp summary DETAILED STEP S Comm and or Acti on Pur pose Step 1 show bgp cidr-only Example : RP/0/RP0/CPU0:router# show bgp cidr-only Display[...]

  • Page 91

    Impleme nting BGP on Ci sco IOS XR Software How to Implement BGP on Cisco IOS XR Software RC-75 Cisco IOS XR Routing Configuration Guide Monitor ing BGP Upda te Groups This task displays infor mation related to the processing of BGP update group s. SUMMARY ST EPS 1. show bgp [{ ipv4 | ipv6 | all } { unicast | multicast | all ]} update-group [ neigh[...]

  • Page 92

    Impl ementing BGP on Cisco I OS XR Soft ware Configurati on Examp les for Implem enting BGP on Cisco IOS XR Softwa re RC-76 Cisco IO S XR Ro uting C onfigur ation Gui de Configuration Examples for Impl ementing BGP on Cisco IOS XR Software This section pro vides the follo wing config uration ex amples: • Ena bling BGP : Examp le, page RC-76 • D[...]

  • Page 93

    Impleme nting BGP on Ci sco IOS XR Software Configuration Examples for Implementing BGP on Cisco IOS XR Software RC-77 Cisco IOS XR Routing Configuration Guide address-family ipv4 multicast aggregate-address 10.2.0.0/24 route-policy set_next_hop_agg_v4 aggregate-address 10.3.0.0/24 redistribute static route-policy set_next_hop_static_v4 address-fam[...]

  • Page 94

    Impl ementing BGP on Cisco I OS XR Soft ware Configurati on Examp les for Implem enting BGP on Cisco IOS XR Softwa re RC-78 Cisco IO S XR Ro uting C onfigur ation Gui de BGP Neighbo r Configuration: E xample The fo llowing exam ple sh ows how BGP neighbo rs on an a utonomo us system are configured to sh are inform ation. In the example , a BGP rout[...]

  • Page 95

    Impleme nting BGP on Ci sco IOS XR Software Where t o Go Next RC-79 Cisco IOS XR Routing Configuration Guide neighbor 199.99.99.2 remote-as 700 In a BG P speaker in a utonomou s syst em 60 03, th e peer s from auton omous systems 6001 and 6002 are configured as sp ecial eB GP peer s. Pe er 20 0.200.20 0.200 is a norm al eB GP pe er f rom aut onom o[...]

  • Page 96

    Impl ementing BGP on Cisco I OS XR Soft ware Addition al Referenc es RC-80 Cisco IO S XR Ro uting C onfigur ation Gui de Additional Ref erences The fo llowing section s provid e refere nces rel ated to im pleme nting BGP for Cisco I OS XR so ftware . Related Do cuments Standa rds MIBs RFCs Related T o pic Document T itle BGP comm ands: com plete co[...]

  • Page 97

    Impleme nting BGP on Ci sco IOS XR Software Additional References RC-81 Cisco IOS XR Routing Configuration Guide Technica l Assista nce RFC 3 065 Autonomous S ystem Confed erations f or BGP RFC 3 392 Capabilities Advertisement with BGP-4 Description Link The Cisco T echni cal Suppo rt websit e contain s thousa nds of pag es of search ab le technic [...]

  • Page 98

    Impl ementing BGP on Cisco I OS XR Soft ware Addition al Referenc es RC-82 Cisco IO S XR Ro uting C onfigur ation Gui de[...]

  • Page 99

    RC-83 Cisco IOS XR Routing Configuration Guide Implementing IS-IS on Cisco IOS XR Software Integrate d Inter media te Sys tem-to-I nterme diat e System (IS-I S), Int ernet Protoc ol V ersio n 4 (IPv 4), is a standa rds-based Inter ior G ateway Protocol ( IGP). Cisco IOS XR implements the IP routing cap abilities descr ibed in International Or ganiz[...]

  • Page 100

    Implementing IS-IS on Cisco IOS XR Software Prerequisit es for Impleme nting IS-IS on Ci sco IOS XR Softw are RC-84 Cisco IO S XR Ro uting C onfigur ation Gui de Prerequisites for Implementing IS-IS on Cisco IOS XR Software The fo llowing are prere quisite s for impleme nting IS- IS on Cisco IOS XR softwa re: • Y ou must be in a user group associ[...]

  • Page 101

    Implement ing IS-IS on Cisc o IOS XR Software Information About Implementing IS-IS on Cisco IOS XR Software RC-85 Cisco IOS XR Routing Configuration Guide IS-IS Functional Overview Small IS-IS netw orks are typically b uilt as a singl e area that inclu des all routers in th e network. As the network gr ows larger , it ma y be r eorganized i nto a b[...]

  • Page 102

    Implementing IS-IS on Cisco IOS XR Software Informatio n About Imple menting IS- IS on Cisco IOS XR Softwar e RC-86 Cisco IO S XR Ro uting C onfigur ation Gui de IS-IS Interfaces IS-IS interfa ces can be configured as one of the fol lowing types: • acti ve —adver tises connec ted pref ix es and forms adjace ncies. Thi s is the def ault for inte[...]

  • Page 103

    Implement ing IS-IS on Cisc o IOS XR Software Information About Implementing IS-IS on Cisco IOS XR Software RC-87 Cisco IOS XR Routing Configuration Guide Flood Blocking on Specific Interf aces W ith this technique, cer tain interf aces are b locked from being used for flooding LSPs, b ut the rema ining interfaces op erate norma lly for fl ooding. [...]

  • Page 104

    Implementing IS-IS on Cisco IOS XR Software Informatio n About Imple menting IS- IS on Cisco IOS XR Softwar e RC-88 Cisco IO S XR Ro uting C onfigur ation Gui de When singl e-to pol ogy sup port for IP v6 i s use d, only narr o w lin k metr ics, also kno wn as old- styl e type , length, and value (TL V) argument s, may be em ployed . During single-[...]

  • Page 105

    Implement ing IS-IS on Cisc o IOS XR Software Information About Implementing IS-IS on Cisco IOS XR Software RC-89 Cisco IOS XR Routing Configuration Guide Note If you configure IET F NSF on the Cisco IOS XR router and a ne ighbor route r doe s not su pport I ETF NSF , the af fe cted a djacencies fla p, but nonstop forw arding is m aintained to al l[...]

  • Page 106

    Implementing IS-IS on Cisco IOS XR Software Informatio n About Imple menting IS- IS on Cisco IOS XR Softwar e RC-90 Cisco IO S XR Ro uting C onfigur ation Gui de Default Routes Y ou can force a de fault route into an IS-I S routing doma in. Whenever you specificall y configure redistri bution of routes into an IS-IS routi ng domain , the Cisc o IOS[...]

  • Page 107

    Implement ing IS-IS on Cisc o IOS XR Software How to Implement IS-IS on Cisco IOS XR Software RC-91 Cisco IOS XR Routing Configuration Guide How to Implement IS-IS on Cisco IOS XR Software This se ction conta ins th e fo llowing proc edur es: • Ena bling IS-IS and Co nf igur ing Le ve l 1 or Le vel 2 R outin g, pa ge RC -91 (required) • Configu[...]

  • Page 108

    Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR S oftware RC-92 Cisco IO S XR Ro uting C onfigur ation Gui de DETAILED STEP S Comm and or Acti on Pur pose Step 1 configure Example : RP/0/RP0/CPU0:router# configure Enters gl obal configurat ion mode. Step 2 router isis instance-id Example : RP/0/RP0/CPU0:router(con[...]

  • Page 109

    Implement ing IS-IS on Cisc o IOS XR Software How to Implement IS-IS on Cisco IOS XR Software RC-93 Cisco IOS XR Routing Configuration Guide Configuring S ingle To pology for IS-IS After an IS-IS instance is e nabled, it must be co nfig ured to co mpute route s for a specif ic netw ork topology . This t ask expla ins how to c onfigure t he ope rati[...]

  • Page 110

    Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR S oftware RC-94 Cisco IO S XR Ro uting C onfigur ation Gui de The de fault met ric style for sin gle to pology i s narrow metric s. Howev er , you c an use e ither w ide me trics or narr ow metrics. H ow to configure t hem de pends on how single t opology is con figu[...]

  • Page 111

    Implement ing IS-IS on Cisc o IOS XR Software How to Implement IS-IS on Cisco IOS XR Software RC-95 Cisco IOS XR Routing Configuration Guide DETAILED STEP S Comm and or Acti on Pur pose Step 1 configure Example : RP/0/RP0/CPU0:router# configure Enters gl obal configurat ion mode. Step 2 interface type number Example : RP/0/RP0/CPU0:router(config)# [...]

  • Page 112

    Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR S oftware RC-96 Cisco IO S XR Ro uting C onfigur ation Gui de Step 4 exit Example : RP/0/RP0/CPU0:router(config-if)# exit Exits interf ace conf iguration mode, and re turns the router to global configuratio n mode. Step 5 router isis instance-id Example : RP/0/RP0/CP[...]

  • Page 113

    Implement ing IS-IS on Cisc o IOS XR Software How to Implement IS-IS on Cisco IOS XR Software RC-97 Cisco IOS XR Routing Configuration Guide Step 11 circuit-type { level-1 | level-1-2 | level-2-only } Example : RP/0/RP0/CPU0:router(config-isis-if)# circuit-type level-1-2 (Opt ional) Configures the ty pe of adja cency . • The default cir cuit type[...]

  • Page 114

    Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR S oftware RC-98 Cisco IO S XR Ro uting C onfigur ation Gui de Configuring Multitopology for IS-IS This task explains ho w to configure mu ltitopology IS-IS. This ta sk is op tional. Multitopology is configured in much t he same way as th e singl e topology f or IP v4[...]

  • Page 115

    Implement ing IS-IS on Cisc o IOS XR Software How to Implement IS-IS on Cisco IOS XR Software RC-99 Cisco IOS XR Routing Configuration Guide DETAILED STEP S Comm and or Acti on Pur pose Step 1 configure Example : RP/0/RP0/CPU0:router# configure Enters gl obal configurat ion mode. Step 2 interface type instance Example : RP/0/RP0/CPU0:router(config)[...]

  • Page 116

    Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR S oftware RC-100 Cisco IO S XR Ro uting C onfigur ation Gui de Step 4 exit Example : RP/0/RP0/CPU0:router(config-if)# exit Exits interf ace conf iguration mode, and re turns the router to global configuratio n mode. Step 5 router isis instance-id Example : RP/0/RP0/C[...]

  • Page 117

    Implement ing IS-IS on Cisc o IOS XR Software How to Implement IS-IS on Cisco IOS XR Software RC-101 Cisco IOS XR Routing Configuration Guide Step 11 end or commit Example : RP/0/RP0/CPU0:router(config-isis-if-af)# end or RP/0/RP0/CPU0:router(config-isis-if-af)# commit Sav es configurat ion change s. • When you issue the end command, the s ystem [...]

  • Page 118

    Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR S oftware RC-102 Cisco IO S XR Ro uting C onfigur ation Gui de Controlling LSP Flooding for IS-IS Flooding of LSPs can li mit netw ork scal ability . Y ou can co ntrol LSP floo ding by tuning y our LSP database parameters on the router glo bally or o n the in terface[...]

  • Page 119

    Implement ing IS-IS on Cisc o IOS XR Software How to Implement IS-IS on Cisco IOS XR Software RC-103 Cisco IOS XR Routing Configuration Guide DETAILED STEP S Comm and or Acti on Pur pose Step 1 configure Example : RP/0/RP0/CPU0:router# configure Enters gl obal configurat ion mode. Step 2 router isis instance-id Example : RP/0/RP0/CPU0:router(config[...]

  • Page 120

    Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR S oftware RC-104 Cisco IO S XR Ro uting C onfigur ation Gui de Step 8 ignore-lsp-errors disable Example : RP/0/RP0/CPU0:router(config-isis)# ignore-lsp-errors disable (Optional) Se ts the router to pur ge LSPs rece i ved with checksu m error s. Step 9 interface type [...]

  • Page 121

    Implement ing IS-IS on Cisc o IOS XR Software How to Implement IS-IS on Cisco IOS XR Software RC-105 Cisco IOS XR Routing Configuration Guide Step 15 end or commit Example : RP/0/RP0/CPU0:router(config-isis-if)# end or RP/0/RP0/CPU0:router(config-isis-if)# commit Sav es configurat ion change s. • When you issue the end command, the s ystem pr omp[...]

  • Page 122

    Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR S oftware RC-106 Cisco IO S XR Ro uting C onfigur ation Gui de Configuring No nstop Forw arding for IS -IS This task expla ins how to configure your ro uter with NSF that allows the Cisc o IOS XR softwa re to resynchr onize th e IS-IS link- state database w ith its I[...]

  • Page 123

    Implement ing IS-IS on Cisc o IOS XR Software How to Implement IS-IS on Cisco IOS XR Software RC-107 Cisco IOS XR Routing Configuration Guide Step 4 nsf interface-expires number Example : RP/0/RP0/CPU0:router(config-isis)# nsf interface-expires 1 Conf igure s the num ber of rese nds of an ackn o wle dged NSF-rest art acknowledgment . • If the res[...]

  • Page 124

    Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR S oftware RC-108 Cisco IO S XR Ro uting C onfigur ation Gui de Configuring Authen tication for IS-IS This task ex plains ho w to conf igure authentic ation for IS-IS. Th is task is optional. Authentic ation is a vailabl e to limit the es tablishment o f adjacen cies [...]

  • Page 125

    Implement ing IS-IS on Cisc o IOS XR Software How to Implement IS-IS on Cisco IOS XR Software RC-109 Cisco IOS XR Routing Configuration Guide Step 3 lsp-password { hmac-md5 | text } { clear | encrypted } password [ level { 1 | 2 }] [ send-only ] [ snp send-only ] Example : RP/0/RP0/CPU0:router(config-isis)# lsp-password hmac-md5 encrypted password1[...]

  • Page 126

    Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR S oftware RC-110 Cisco IO S XR Ro uting C onfigur ation Gui de Configuring MPLS Traffic Engineering for IS-IS This t ask explai ns how to configur e IS-IS for M PLS TE . Thi s task is optio nal. For a description of the MPLS TE tasks and comman ds that allo w you to [...]

  • Page 127

    Implement ing IS-IS on Cisc o IOS XR Software How to Implement IS-IS on Cisco IOS XR Software RC-111 Cisco IOS XR Routing Configuration Guide Restrictions MPLS tra ff ic en gineer ing cur rently sup ports only a sing le IS -IS level and does not support r outing and signaling of LSPs over unnumb ered IP links. Therefo re, do not co nfigure the fea [...]

  • Page 128

    Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR S oftware RC-112 Cisco IO S XR Ro uting C onfigur ation Gui de Step 5 mpls traffic-eng router-id { ip-address | interface-name } Example : RP/0/RP0/CPU0:router(config-isis-af)# mpls traffic-eng router-id loopback0 Specifi es that the MPLS TE router iden tif ier for t[...]

  • Page 129

    Implement ing IS-IS on Cisc o IOS XR Software How to Implement IS-IS on Cisco IOS XR Software RC-113 Cisco IOS XR Routing Configuration Guide Tuning Adja cencie s for IS-IS on Point-to-Point Interfaces This task e xplains ho w to enable loggin g of adjacenc y state cha nges, alter the timer s for IS-IS adjacenc y packets, an d display va rious as p[...]

  • Page 130

    Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR S oftware RC-114 Cisco IO S XR Ro uting C onfigur ation Gui de DETAILED STEP S Comm and or Acti on Purpo se Step 1 configure Example : RP/0/RP0/CPU0:router# configure Enters glob al con figuration mo de. Step 2 router isis instance-id Example : RP/0/RP0/CPU0:router(c[...]

  • Page 131

    Implement ing IS-IS on Cisc o IOS XR Software How to Implement IS-IS on Cisco IOS XR Software RC-115 Cisco IOS XR Routing Configuration Guide Step 8 hello-password { hmac-md5 | text } { clear | encrypted } password [ level { 1 | 2 }] [ send-only ] Example : RP/0/RP0/CPU1:router(config-isis-if)# hello-password text clear mypassword Specif ies tha t [...]

  • Page 132

    Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR S oftware RC-116 Cisco IO S XR Ro uting C onfigur ation Gui de Setting SPF Interval for a Single-To pology IPv4 and IPv6 Configuration This task e xplains ho w to make adjustments to the SPF calculation to tune router per formance. This task is optional. Because the [...]

  • Page 133

    Implement ing IS-IS on Cisc o IOS XR Software How to Implement IS-IS on Cisco IOS XR Software RC-117 Cisco IOS XR Routing Configuration Guide DETAILED STEP S Comm and or Acti on Pur pose Step 1 configure Example : RP/0/RP0/CPU0:router# configure Enters gl obal configurat ion mode. Step 2 router isis instance-id Example : RP/0/RP0/CPU0:router(config[...]

  • Page 134

    Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR S oftware RC-118 Cisco IO S XR Ro uting C onfigur ation Gui de Enabling Multicast-In tact for IS-IS This opt ional task describes ho w to enable m ulticast-inta ct for I S-IS routes t hat use IPv4 addresses. Summary Steps 1. conf igure 2. router isis instance-id 3. a[...]

  • Page 135

    Implement ing IS-IS on Cisc o IOS XR Software How to Implement IS-IS on Cisco IOS XR Software RC-119 Cisco IOS XR Routing Configuration Guide DETAILED STEP S Customizing Routes for IS-IS This task de scribe s how to perform ro ute fun ctions th at inclu de inj ecting defau lt rout es into you r IS-IS routin g domain a nd redistri buting routes l ea[...]

  • Page 136

    Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR S oftware RC-120 Cisco IO S XR Ro uting C onfigur ation Gui de SUMMARY ST EPS 1. conf igure 2. router isis instance-id 3. set-ove rload -bit [ on- start up { de lay | wait-for -bgp }] [ level { 1 | 2 }] 4. address- family { ipv4 | ipv6 } [ unic ast ] 5. default-inf o[...]

  • Page 137

    Implement ing IS-IS on Cisc o IOS XR Software How to Implement IS-IS on Cisco IOS XR Software RC-121 Cisco IOS XR Routing Configuration Guide Step 5 default-information originate [ route-map map-name ] Example : RP/0/RP0/CPU0:router(config-isis-af)# default-information originate (Opti onal) Inj ects a defau lt IPv4 o r IPv6 route into a n IS-IS rou[...]

  • Page 138

    Implementing IS-IS on Cisco IOS XR Software Configuration Example s for Implementin g IS-IS on Cisco IOS XR Sof tware RC-122 Cisco IO S XR Ro uting C onfigur ation Gui de Configuration Examples for Impleme nting IS-IS on Cisco IOS XR Software This section pro vides the follo wing config uration ex amples: • Configuring Si ngle-T opology IS-IS for[...]

  • Page 139

    Implement ing IS-IS on Cisc o IOS XR Software Configuration Examples for Implementing IS-IS on Cisco IOS XR Software RC-123 Cisco IOS XR Routing Configuration Guide address-family ipv4 unicast ! address-family ipv6 unicast ! exit ! interface POS0/3/0/0 ipv4 address 10.0.1.3 255.255.255.0 ipv6 address 2001::1/64 Configuring Multitopology IS-IS for I[...]

  • Page 140

    Implementing IS-IS on Cisco IOS XR Software Where to Go Nex t RC-124 Cisco IO S XR Ro uting C onfigur ation Gui de Where to Go Next T o i mple ment mo re IP r outing protoc ols, see the f ollowing docum ent module s: • Implem enting OSPF on Ci sco IO S XR Softw ar e • Implem enting BGP on Cisco IOS XR So ftware Additional Ref erences The follo [...]

  • Page 141

    Implement ing IS-IS on Cisc o IOS XR Software Additional References RC-125 Cisco IOS XR Routing Configuration Guide RFCs Technica l Assista nce RFCs T itle RFC 1 142 OSI I S-IS Int ra-domain Routing Pr otocol RFC 1 195 Use of OSI IS -IS for Ro uting in TCP/ IP and Dual En vir onments RFC 2 763 Dynami c Hostnam e Exchange Mechanism for IS-IS RFC 2 9[...]

  • Page 142

    Implementing IS-IS on Cisco IOS XR Software Addition al Referenc es RC-126 Cisco IO S XR Ro uting C onfigur ation Gui de[...]

  • Page 143

    RC-127 Cisco IOS XR Routing Configuration Guide Implementing OSPF on Cisco IOS XR Software Open Shortest Path First ( OSPF) is an Interior Gatew ay Protocol (IGP) de veloped b y the OSPF working group of the Interne t Engin eering T ask Force (I ETF). Designe d expressly for IP network s, OSPF supports IP su bnetting and tagging of externally deriv[...]

  • Page 144

    Imple mentin g OSPF on Ci sco IOS XR So ftwar e Prerequisites for Impleme nting OSPF on Cisc o IOS XR Software RC-128 Cisco IO S XR Ro uting C onfigur ation Gui de Prerequisites for Implementin g OSPF on Cisco IOS XR Software The follo wing are prerequisites for implementing OSPF on Cisco IOS XR Software: • Y ou must be in a user group associated[...]

  • Page 145

    Implementing OSPF on Cisco IOS XR Software Information About Implementing OSPF on Cisco IOS XR Software RC-129 Cisco IOS XR Routing Configuration Guide • Nonstop Forwarding for OSPF V ersion 2, page RC-140 • Load Balancing in OSPF V ersion 2 and OSPFv3, page RC-141 OSPF Functional Overview OSPF is a r outing protocol for IP . It i s a link-stat[...]

  • Page 146

    Imple mentin g OSPF on Ci sco IOS XR So ftwar e Informatio n About Imp lementin g OSPF on Cisco I OS XR Softwa re RC-130 Cisco IO S XR Ro uting C onfigur ation Gui de OSPF typically requires coordination am ong many intern al rou ters: Area Border Rou ters (ABRs), which are routers attach ed to multiple areas, and Auto nomous System Border Routers [...]

  • Page 147

    Implementing OSPF on Cisco IOS XR Software Information About Implementing OSPF on Cisco IOS XR Software RC-131 Cisco IOS XR Routing Configuration Guide Compariso n of Cisc o IOS XR OSPFv3 an d OSPFv 2 Much of th e OSPFv3 pro toco l is the same a s in OSPFv2. OSPFv3 is descri bed in RFC 2740 . The key dif ferences between the Cisco IOS XR OSPFv3 and[...]

  • Page 148

    Imple mentin g OSPF on Ci sco IOS XR So ftwar e Informatio n About Imp lementin g OSPF on Cisco I OS XR Softwa re RC-132 Cisco IO S XR Ro uting C onfigur ation Gui de Ti p Under standing hierar chical C LI and CLI inheri tance sa v es you consider able conf iguration time. See the “Configuring Authentication at D ifferent Hierar chic al Lev els f[...]

  • Page 149

    Implementing OSPF on Cisco IOS XR Software Information About Implementing OSPF on Cisco IOS XR Software RC-133 Cisco IOS XR Routing Configuration Guide Areas Areas a llo w the subdi vision of an autonomous system into smal ler , more manageable netwo rks or sets of adjace nt networks . As shown in Figure 6 , autonomous s ystem A consists of three a[...]

  • Page 150

    Imple mentin g OSPF on Ci sco IOS XR So ftwar e Informatio n About Imp lementin g OSPF on Cisco I OS XR Softwa re RC-134 Cisco IO S XR Ro uting C onfigur ation Gui de Routers The OSPF netw ork is composed of ABRs, ASBRs, and interior routers. Area Bord er Routers (AB R) ABRs are routers with multiple interface s that connect directly to netw orks i[...]

  • Page 151

    Implementing OSPF on Cisco IOS XR Software Information About Implementing OSPF on Cisco IOS XR Software RC-135 Cisco IOS XR Routing Configuration Guide • The primary IPv4 address of the i nterfac e specifie d by the OSPF router -id command . • The 32-bit numer ic valu e specifie d by the router-id comm and in gl obal conf igurati on mode . (Thi[...]

  • Page 152

    Imple mentin g OSPF on Ci sco IOS XR So ftwar e Informatio n About Imp lementin g OSPF on Cisco I OS XR Softwa re RC-136 Cisco IO S XR Ro uting C onfigur ation Gui de Note MD5 authentication supports multiple k eys, requiring that a k ey numbe r be associated with a k ey . Authenti cation Stra tegies Authe nticati on ca n be sp ecified for an entir[...]

  • Page 153

    Implementing OSPF on Cisco IOS XR Software Information About Implementing OSPF on Cisco IOS XR Software RC-137 Cisco IOS XR Routing Configuration Guide The soft ware look s at the priority of the routers on th e seg ment to determine wh ich router s are the DR and BDR. Th e router wi th the highest prio rity is elect ed the DR. If ther e is a tie ,[...]

  • Page 154

    Imple mentin g OSPF on Ci sco IOS XR So ftwar e Informatio n About Imp lementin g OSPF on Cisco I OS XR Softwa re RC-138 Cisco IO S XR Ro uting C onfigur ation Gui de • Netwo rk LSA (T ype 2)—Desc ribes th e link state an d cost info rmation fo r all routers attached to a multiaccess network segme nt. This LSA lists a ll OSPF rout ers that ha v[...]

  • Page 155

    Implementing OSPF on Cisco IOS XR Software Information About Implementing OSPF on Cisco IOS XR Software RC-139 Cisco IOS XR Routing Configuration Guide In the cas e in w hich an area cannot be c onnec ted to Are a 0, yo u must co nfigure a virtual link betw een that are a and Area 0. The two end points of a virtual lin k are AB Rs, and the virt ual[...]

  • Page 156

    Imple mentin g OSPF on Ci sco IOS XR So ftwar e Informatio n About Imp lementin g OSPF on Cisco I OS XR Softwa re RC-140 Cisco IO S XR Ro uting C onfigur ation Gui de The interv al at which the SPF calcul at ions occur is chosen dynamically and base d on the frequency of topolo gy chan ges in t he networ k. The c hosen int erval is withi n th e bou[...]

  • Page 157

    Implementing OSPF on Cisco IOS XR Software Information About Implementing OSPF on Cisco IOS XR Software RC-141 Cisco IOS XR Routing Configuration Guide through intel ligent line cards while the standb y Route Processor (RP) assumes control from the f ailed RP . The abi lity of line c ards to remai n up thr ough a failover and to be kept curr ent wi[...]

  • Page 158

    Imple mentin g OSPF on Ci sco IOS XR So ftwar e Informatio n About Imp lementin g OSPF on Cisco I OS XR Softwa re RC-142 Cisco IO S XR Ro uting C onfigur ation Gui de Modes of Graceful Restart Operation The two ope rationa l modes that a router can be in for thi s feature are restar t mode and helper mod e. Restart mo de occurs when the O SPFv3 pro[...]

  • Page 159

    Implementing OSPF on Cisco IOS XR Software Information About Implementing OSPF on Cisco IOS XR Software RC-143 Cisco IOS XR Routing Configuration Guide • Upon e nteri ng help er m ode, a rout er perf orms its h elper func tion f or a specific pe riod of time . Th is time period is the lifetime va lue from the rou ter that is in r estart mode—mi[...]

  • Page 160

    Imple mentin g OSPF on Ci sco IOS XR So ftwar e How to Implement OSPF on Cisco IOS X R Software RC-144 Cisco IO S XR Ro uting C onfigur ation Gui de • If grace ful restart is enable d, the adja cency cr eation time of all the neighbors is sav ed in the syste m database (SysDB). The purpose for sa ving the creation time is so that O SPFv3 can use [...]

  • Page 161

    Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software RC-145 Cisco IOS XR Routing Configuration Guide • V erifying OSPF Configuration and Operation, page RC-180 (optional) • Configuring OSPFv3 Graceful Restart, page RC-181 (optiona l) • Enabling Multicast-Intact for OSPFv2, page RC-186 ( optional) Enabling [...]

  • Page 162

    Imple mentin g OSPF on Ci sco IOS XR So ftwar e How to Implement OSPF on Cisco IOS X R Software RC-146 Cisco IO S XR Ro uting C onfigur ation Gui de DETAILED STEP S Comm and or Acti on Pur pose Step 1 configure Example : RP/0/RP0/CPU0:router# configure Enters gl obal configurat ion mode. Step 2 router ospf process-name or router ospfv3 process-name[...]

  • Page 163

    Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software RC-147 Cisco IOS XR Routing Configuration Guide Configur ing Stub and Not-s o-Stubby Area Types This t ask explai ns how to configure the st ub are a and the NSSA for OSPF . SUMMARY ST EPS 1. conf igure 2. route r ospf pr ocess -nam e or router ospfv3 pr oc es[...]

  • Page 164

    Imple mentin g OSPF on Ci sco IOS XR So ftwar e How to Implement OSPF on Cisco IOS X R Software RC-148 Cisco IO S XR Ro uting C onfigur ation Gui de 6. stub or nssa 7. default-cost cost 8. end or commit 9. Repeat this task on all other router s in the stub area or NSSA. DETAILED STEP S Comm and or Acti on Pur pose Step 1 configure Example : RP/0/RP[...]

  • Page 165

    Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software RC-149 Cisco IOS XR Routing Configuration Guide Step 5 stub [ no-summary ] or nssa [ no-redistribution ] [ default-information-originate ] [ no-summary ] Example : RP/0/RP0/CPU0:router(config-ospf-ar)# stub no summary or RP/0/RP0/CPU0:router(config-ospf-ar)# n[...]

  • Page 166

    Imple mentin g OSPF on Ci sco IOS XR So ftwar e How to Implement OSPF on Cisco IOS X R Software RC-150 Cisco IO S XR Ro uting C onfigur ation Gui de Configuring Neighbors fo r No nbroadca st Netwo rks This t ask explai ns how to c onfigure ne ighbors for a non broadca st n etwork. T his ta sk is op tiona l. Prerequisites Configuring N BMA ne tworks[...]

  • Page 167

    Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software RC-151 Cisco IOS XR Routing Configuration Guide 9. neighbor ip-address [ priority number ] [ poll-interval se conds ] [ co st numbe r ] or neighbor ipv6-link- local-addr ess [ priority number ] [ po l l- in te rval seconds ] [ cost numb er ] [ database-filt er[...]

  • Page 168

    Imple mentin g OSPF on Ci sco IOS XR So ftwar e How to Implement OSPF on Cisco IOS X R Software RC-152 Cisco IO S XR Ro uting C onfigur ation Gui de Step 5 network { broadcast | non-broadcast | { point-to-multipoint [ non-broadcast ] | point-to-point }} Example : RP/0/RP0/CPU0:router(config-ospf-ar)# network non-broadcast Configures the OSPF networ[...]

  • Page 169

    Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software RC-153 Cisco IOS XR Routing Configuration Guide Step 9 neighbor ip-address [ priority number ] [ poll-interval seconds ][ cost number ] or neighbor ipv6-link-local-address [ priority number ] [ poll-interval seconds ][ cost number ] [ database-filter [ all ]] [...]

  • Page 170

    Imple mentin g OSPF on Ci sco IOS XR So ftwar e How to Implement OSPF on Cisco IOS X R Software RC-154 Cisco IO S XR Ro uting C onfigur ation Gui de Step 13 neighbor ip-address [ priority number ] [ poll-interval seconds ][ cost number ] [ database-filter [ all ]] or neighbor ipv6-link-local-address [ priority number ] [ poll-interval seconds ][ co[...]

  • Page 171

    Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software RC-155 Cisco IOS XR Routing Configuration Guide Configuring Authentication at Different Hier archical Le vels for OSPF Version 2 This task explains how t o configure MD5 (secure) authentication on the OSPF router process, configure one ar ea with pl ain te xt [...]

  • Page 172

    Imple mentin g OSPF on Ci sco IOS XR So ftwar e How to Implement OSPF on Cisco IOS X R Software RC-156 Cisco IO S XR Ro uting C onfigur ation Gui de 5. message-di gest-key key - id md5 { key | clear key | encrypte d key } 6. area ar e a-id 7. interface ty pe instance 8. Repeat Step 7 f or eac h inter face that mu st comm unicate, using the sam e au[...]

  • Page 173

    Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software RC-157 Cisco IOS XR Routing Configuration Guide Step 6 area area-id Example : RP/0/RP0/CPU0:router(config-ospf)# area 0 Ente rs area configur ation mode and co nfigures a backbone area for the OSPF process. Step 7 interface type instance Example : RP/0/RP0/CPU[...]

  • Page 174

    Imple mentin g OSPF on Ci sco IOS XR So ftwar e How to Implement OSPF on Cisco IOS X R Software RC-158 Cisco IO S XR Ro uting C onfigur ation Gui de Controlling the Frequency that the Same LSA Is Originated or Accepted for OSPF This task explains how to tune the con vergenc e time of OSPF r outes in the routing table when many LSAs need to be flood[...]

  • Page 175

    Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software RC-159 Cisco IOS XR Routing Configuration Guide DETAILED STEP S Comm and or Acti on Pur pose Step 1 configure Example : RP/0/RP0/CPU0:router# configure Enters gl obal configurat ion mode. Step 2 router ospf process-name or router ospfv3 process-name Example : [...]

  • Page 176

    Imple mentin g OSPF on Ci sco IOS XR So ftwar e How to Implement OSPF on Cisco IOS X R Software RC-160 Cisco IO S XR Ro uting C onfigur ation Gui de Creating a Virtua l Link with M D5 Au thentication to Area 0 for OSPF This t ask explains how to creat e a vir tual link to yo ur back bone ( area 0 ) and app ly MD5 a uthent icati on. Y ou must perfor[...]

  • Page 177

    Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software RC-161 Cisco IOS XR Routing Configuration Guide • For a virt ual l ink t o be su cce ssful, y ou ne ed a st able route r ID a t each end of t he vir tual link. Y ou do not want them t o be subjec t to chan ge, whic h could ha ppen if th ey are assigned by de[...]

  • Page 178

    Imple mentin g OSPF on Ci sco IOS XR So ftwar e How to Implement OSPF on Cisco IOS X R Software RC-162 Cisco IO S XR Ro uting C onfigur ation Gui de DETAILED STEP S Comm and or Acti on Pur pose Step 1 show ospf [ process-name ] or show ospfv3 [ process-name ] Example : RP/0/RP0/CPU0:router# show ospf or RP/0/RP0/CPU0:router# show ospfv3 (Optional) [...]

  • Page 179

    Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software RC-163 Cisco IOS XR Routing Configuration Guide Step 8 message-digest-key key-id md5 { key | clear key | encrypted key } Example : RP/0/RP0/CPU0:router(config-ospf-ar-vl)# message-digest-key 4 md5 yourkey Defi nes an OSPF virtual link. • See the “V irtual [...]

  • Page 180

    Imple mentin g OSPF on Ci sco IOS XR So ftwar e How to Implement OSPF on Cisco IOS X R Software RC-164 Cisco IO S XR Ro uting C onfigur ation Gui de Examples In the follo wing exam ple, the show ospfv3 virtual links EXEC command ver ifies that the OSPF_VL 0 virtual link to the OSPFv3 neighbor is up, the ID of the virtual link interfa ce is 2, and t[...]

  • Page 181

    Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software RC-165 Cisco IOS XR Routing Configuration Guide 7. end or commit DETAILED STEP S Comm and or Acti on Pur pose Step 1 configure Example : RP/0/RP0/CPU0:router# configure Enters gl obal configurat ion mode. Step 2 router ospf process-name or router ospfv3 proces[...]

  • Page 182

    Imple mentin g OSPF on Ci sco IOS XR So ftwar e How to Implement OSPF on Cisco IOS X R Software RC-166 Cisco IO S XR Ro uting C onfigur ation Gui de Redistributing Routes from One IGP into OSPF This task redistrib u tes routes fr om an IGP (could be a diffe rent OSPF process) into OSPF . Prerequisites For informa tion ab out configurin g routin g p[...]

  • Page 183

    Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software RC-167 Cisco IOS XR Routing Configuration Guide 5. summary-pref ix addr ess mask [ not-adver tise ] [ tag tag ] or summary-pref ix ipv6-pr efi x / pr efix-l ength [ no t-adver tise ] [ tag tag ] 6. end or commit DETAILED STEP S Comm and or Acti on Pur pose Ste[...]

  • Page 184

    Imple mentin g OSPF on Ci sco IOS XR So ftwar e How to Implement OSPF on Cisco IOS X R Software RC-168 Cisco IO S XR Ro uting C onfigur ation Gui de Step 4 redistribute protocol [ process-id ] { level-1 | level-1-2 | level-2 } [ metric metric-value ] [ metric-type type-value ] [ match { internal | external [ 1 | 2 } | nssa-external [ 1 | 2 }] [ tag[...]

  • Page 185

    Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software RC-169 Cisco IOS XR Routing Configuration Guide Step 5 summary-prefix address mask [ not-advertise ] [ tag tag ] or summary-prefix ipv6-prefix / prefix-length [ not-advertise ] [ tag tag ] Example : RP/0/RP0/CPU0:router(config-ospf)# summary-prefix 10.1.0.0 25[...]

  • Page 186

    Imple mentin g OSPF on Ci sco IOS XR So ftwar e How to Implement OSPF on Cisco IOS X R Software RC-170 Cisco IO S XR Ro uting C onfigur ation Gui de Configuring OSPF Shorte st Path First Throttling This task explains how to conf igure SPF scheduling in millisecond interv als and potentially delay SPF calcula tions during times of netw ork instabili[...]

  • Page 187

    Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software RC-171 Cisco IOS XR Routing Configuration Guide Step 3 router-id { ipv4-address | interface-type interface-instance } Example : RP/0/RP0/CPU0:router(config-ospf)# router-id 192.168.4.3 Configures a router ID for the OSPF p rocess. Note W e recom mend using a s[...]

  • Page 188

    Imple mentin g OSPF on Ci sco IOS XR So ftwar e How to Implement OSPF on Cisco IOS X R Software RC-172 Cisco IO S XR Ro uting C onfigur ation Gui de Examples In the follo wing example, th e show ospf EXEC command is used to verify that the initial SPF schedule delay time , minimum hold time, and ma ximum w ait time are c onfig ured corr ectly . Add[...]

  • Page 189

    Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software RC-173 Cisco IOS XR Routing Configuration Guide Non-Stop Forwarding enabled Note For a desc ription of each output disp lay field, see the show os pf comman d in the OSPF C ommands on Cisco IO S XR So ftwar e module in the Cisco IOS XR Routing Command Ref er e[...]

  • Page 190

    Imple mentin g OSPF on Ci sco IOS XR So ftwar e How to Implement OSPF on Cisco IOS X R Software RC-174 Cisco IO S XR Ro uting C onfigur ation Gui de DETAILED STEP S Comm and or Acti on Pur pose Step 1 configure Example : RP/0/RP0/CPU0:router# configure Enters gl obal configurat ion mode. Step 2 router ospf process-name Example : RP/0/RP0/CPU0:route[...]

  • Page 191

    Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software RC-175 Cisco IOS XR Routing Configuration Guide Configuring OSPF Version 2 fo r MPLS Traffic Engineering This task e xplains ho w to conf igure OSPF for MP LS TE. This task is optional. For a description of the MPLS TE tasks and comman ds that allo w you to co[...]

  • Page 192

    Imple mentin g OSPF on Ci sco IOS XR So ftwar e How to Implement OSPF on Cisco IOS X R Software RC-176 Cisco IO S XR Ro uting C onfigur ation Gui de Restrictions MPLS t raf f ic engine erin g currently supports only a single O SPF area. SUMMARY ST EPS 1. conf igure 2. route r ospf pr ocess- name 3. rou t er- id { ipv4-add r ess | interface- type in[...]

  • Page 193

    Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software RC-177 Cisco IOS XR Routing Configuration Guide Step 5 mpls traffic-eng router-id { ip-address | interface-type interface-instance } Example : RP/0/RP0/CPU0:router(config-ospf)# mpls traffic-eng router-id loopback 0 (Optional) Spe cifie s that the traf fic eng[...]

  • Page 194

    Imple mentin g OSPF on Ci sco IOS XR So ftwar e How to Implement OSPF on Cisco IOS X R Software RC-178 Cisco IO S XR Ro uting C onfigur ation Gui de Examples This section pro vides the follo wing output exam ples: • Sample Output fo r the show ospf Comman d Befor e Configuring MPLS TE, page RC -178 • Sample Output for th e show ospf mpls traffi[...]

  • Page 195

    Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software RC-179 Cisco IOS XR Routing Configuration Guide Sample Output for the show ospf mpls traffic-eng Command In the follo wing example , the show o spf mp ls traf fic-eng EXEC com mand v erif ies that th e MPLS TE frag ments are config ured co rrec tly: RP/0/RP0/C[...]

  • Page 196

    Imple mentin g OSPF on Ci sco IOS XR So ftwar e How to Implement OSPF on Cisco IOS X R Software RC-180 Cisco IO S XR Ro uting C onfigur ation Gui de Priority 0 : 3125000 Priority 1 : 3125000 Priority 2 : 3125000 Priority 3 : 3125000 Priority 4 : 3125000 Priority 5 : 3125000 Priority 6 : 3125000 Priority 7 : 3125000 Affinity Bit :0 Sample Output for[...]

  • Page 197

    Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software RC-181 Cisco IOS XR Routing Configuration Guide Configur ing OSPFv3 Gr aceful Restar t This section describes the follo w ing tasks for configuring a graceful restart of an OSPFv3 process: • Enab ling Gr aceful Resta rt, pa ge RC-1 82 • Conf igurin g th e [...]

  • Page 198

    Imple mentin g OSPF on Ci sco IOS XR So ftwar e How to Implement OSPF on Cisco IOS X R Software RC-182 Cisco IO S XR Ro uting C onfigur ation Gui de Enabling Graceful Restart This section describes how to enable an OSPFv3 graceful restart on the current rout er . By default, this fea ture is disabl ed. SUMMARY ST EPS 1. conf iguration 2. router osp[...]

  • Page 199

    Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software RC-183 Cisco IOS XR Routing Configuration Guide DETAILED STEP S Configuring the Minimum Time R equired Between Restarts This section describ es the task of modifying the minimal time that is require d between allo wable graceful restarts. The purpose of this i[...]

  • Page 200

    Imple mentin g OSPF on Ci sco IOS XR So ftwar e How to Implement OSPF on Cisco IOS X R Software RC-184 Cisco IO S XR Ro uting C onfigur ation Gui de DETAILED STEP S Configuring the Helper Level of the Router This se ction desc ribes the t ask of d isab ling t he hel per mode o n th e cu rrent rout er . By defau lt, a route r that is capa ble of doi[...]

  • Page 201

    Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software RC-185 Cisco IOS XR Routing Configuration Guide DETAILED STEP S Displaying Informati on About Graceful Restart This secti on descri bes the task s you can use to displ ay infor mation ab out a grac eful re start. • T o see if the featu re is enable d and whe[...]

  • Page 202

    Imple mentin g OSPF on Ci sco IOS XR So ftwar e How to Implement OSPF on Cisco IOS X R Software RC-186 Cisco IO S XR Ro uting C onfigur ation Gui de Displaying Gracefu l Restart Informa tion for an O SPFv3 Instance The foll owin g screen output sho ws the link state for the in stance of OSPFv3 calle d test: RP/0/0/CPU0:LA# show ospfv3 test database[...]

  • Page 203

    Implementing OSPF on Cisco IOS XR Software Configuration Examples for Implementing OSPF on Cisco IOS XR Software RC-187 Cisco IOS XR Routing Configuration Guide Configuration Ex amples for Implementing OSPF on Cisco IOS XR Software This section pro vides the follo wing config uration ex amples: • Cisco IOS XR for OSPF V ersion 2 Configurati on: E[...]

  • Page 204

    Imple mentin g OSPF on Ci sco IOS XR So ftwar e Configur ation Examp les for Implem enting OSPF on Cisco IOS XR Sof tware RC-188 Cisco IO S XR Ro uting C onfigur ation Gui de Cisco IOS XR fo r OSPF Vers ion 2 Co nfigurati on: Exam ple The follo wing example sho ws how an OSPF in terface is configured for an area in Cisco IOS XR software. In Cisco I[...]

  • Page 205

    Implementing OSPF on Cisco IOS XR Software Configuration Examples for Implementing OSPF on Cisco IOS XR Software RC-189 Cisco IOS XR Routing Configuration Guide router ospf 1 router-id 10.2.3.4 area 0 interface POS 0/3/0/0 ! area 1 interface POS 0/3/0/1 ! ! CLI Inherita nce a nd Prece dence for OS PF Versio n 2: Ex ample The follo wing example conf[...]

  • Page 206

    Imple mentin g OSPF on Ci sco IOS XR So ftwar e Configur ation Examp les for Implem enting OSPF on Cisco IOS XR Sof tware RC-190 Cisco IO S XR Ro uting C onfigur ation Gui de interface POS 0/2/0/3 ! interface POS 0/3/0/3 cost 1 ! ! MPLS TE for OSPF Versio n 2: Exam ple The follo wing example sho ws ho w to configure the OSPF portion of MPLS TE. Ho [...]

  • Page 207

    Implementing OSPF on Cisco IOS XR Software Configuration Examples for Implementing OSPF on Cisco IOS XR Software RC-191 Cisco IOS XR Routing Configuration Guide ABR Totally S tub Area fo r OSPFv3: Example The f ollo wing exa mple sho ws that area 1 is conf igured a s a total ly stu b area : router ospfv3 1 router-id 10.0.0.217 area 0 interface POS [...]

  • Page 208

    Imple mentin g OSPF on Ci sco IOS XR So ftwar e Where to Go Nex t RC-192 Cisco IO S XR Ro uting C onfigur ation Gui de Virtual Link Co nfigured w ith MD5 Auth entication fo r OSPF Version 2: Ex ample The following exam ples show how to co nfigure a virtua l link to your backb one an d app ly MD 5 authe nticatio n. Y ou must perform the steps descri[...]

  • Page 209

    Implementing OSPF on Cisco IOS XR Software Additional References RC-193 Cisco IOS XR Routing Configuration Guide Additional Ref erences The follo wing sections provide ref erences rela ted to implementing OSPF on Cisco IOS XR software. Related Do cuments Standa rds MIBs RFCs Related T o pic Document T itle OSPF and OSPFv3 commands: complete com man[...]

  • Page 210

    Imple mentin g OSPF on Ci sco IOS XR So ftwar e Addition al Referenc es RC-194 Cisco IO S XR Ro uting C onfigur ation Gui de Technica l Assista nce Description Link The Ci sco T echnical Suppo rt webs ite c ontain s thousa nds of pag es of search ab le technic al cont ent, includ ing links to produ cts, te chnolog ies, so lutions, technica l tips ,[...]

  • Page 211

    RC-195 Cisco IOS XR Routing Configuration Guide Implementing and Monitoring RIB on Cisco IOS XR Software Routing Informatio n Base (RIB) is a distribute d collection of informatio n about routing connecti vity among a ll no des of a netwo rk. Each ro uter ma intain s a RIB cont aining t he rout ing inform ation for that route r . RI B stores the be[...]

  • Page 212

    Implemen ting and M onitorin g RIB on Cisco IOS XR Soft ware Prerequisit es for Impleme nting RIB on Ci sco IOS XR Softw are RC-196 Cisco IO S XR Ro uting C onfigur ation Gui de Prerequisites for Implementin g RIB on Cisco IOS XR Sof tware • T o use this co mmand, yo u must be in a user gro up assoc iated with a tas k group that includ es the pro[...]

  • Page 213

    Impleme nting and M onitoring RIB on Cisco IOS XR Sof tware Information About RIB Configuration RC-197 Cisco IOS XR Routing Configuration Guide RIB Administrative D istance Forwarding is don e based o n the long est prefix match. If you are forwarding a packet destin ed to 10.0.2. 1, you p refe r 10.0.2. 0/24 over 10.0.0 .0/16 be caus e the mask /2[...]

  • Page 214

    Implemen ting and M onitorin g RIB on Cisco IOS XR Soft ware How t o Depl oy a nd Mo nitor RIB RC-198 Cisco IO S XR Ro uting C onfigur ation Gui de How to Deploy and Monito r RIB T o dep loy and moni tor RIB, you mu st understan d the following conc epts: • V erifying RIB Configur ation Usi ng the Routing T able, pa ge RC-198 (re quire d) • V e[...]

  • Page 215

    Impleme nting and M onitoring RIB on Cisco IOS XR Sof tware How to Depl oy and Mon itor RIB RC-199 Cisco IOS XR Routing Configuration Guide 5. show rout e [ afi-all | ipv4 | ipv6 ] [ unicast | multica st | safi- all ] loca l [ interfac e ] 6. show r oute [ afi -all | ipv4 | ipv6 ] [ unicast | multica st | safi- all ] ip-addr ess mask longer-prefixe[...]

  • Page 216

    Implemen ting and M onitorin g RIB on Cisco IOS XR Soft ware Configur ation Examp les for RIB Moni toring RC-200 Cisco IO S XR Ro uting C onfigur ation Gui de Configuration E xamples for RIB Monitoring RIB is not conf ig ured separatel y for the Cisco IOS XR system. RIB computes connecti vity of the router with othe r no des in the network ba sed o[...]

  • Page 217

    Impleme nting and M onitoring RIB on Cisco IOS XR Sof tware Configuration Examples for RIB Monitoring RC-201 Cisco IOS XR Routing Configuration Guide L 172.20.16.1/32 is directly connected, 1d21h, ATM4/0.1 C 10.6.100.0/24 is directly connected, 1d21h, Loopback1 L 10.6.200.21/32 is directly connected, 1d21h, Loopback0 S 192.168.40.0/24 [1/0] via 172[...]

  • Page 218

    Implemen ting and M onitorin g RIB on Cisco IOS XR Soft ware Where to Go Nex t RC-202 Cisco IO S XR Ro uting C onfigur ation Gui de L 192.168.20.2/32 is directly connected, 00:13:27, GigabitEthernet2/0 L 10.254.254.1/32 is directly connected, 00:13:26, GigabitEthernet2/2 Output of sho w route longer-prefix es Command: E xample The follo wing is sam[...]

  • Page 219

    Impleme nting and M onitoring RIB on Cisco IOS XR Sof tware Additional References RC-203 Cisco IOS XR Routing Configuration Guide Additional Ref erences The follo wing sections pro vide refer ences related to implementi ng RIB on Cisco I OS XR softw are: Related Do cuments Standa rds MIBs Related T o pic Document T itle Routing Info rmation Base c [...]

  • Page 220

    Implemen ting and M onitorin g RIB on Cisco IOS XR Soft ware Addition al Referenc es RC-204 Cisco IO S XR Ro uting C onfigur ation Gui de RFCs Technica l Assista nce RFCs T itle No new or m odified R FCs are suppo rted by thi s feature, and support for ex isting RFCs has not b een modif ied by th is feature. — Description Link The Ci sco T echnic[...]

  • Page 221

    RC-205 Cisco IOS XR Routing Configuration Guide Implementing Routing Policy on Cisco IOS XR Software A routing po licy inst ructs the router to inspect routes, f ilter them, and potentially modify their attrib utes as they are ac cepte d from a pe er, advertised to a pee r , or redistr ibuted from on e rout ing pro tocol t o anothe r . Routing prot[...]

  • Page 222

    Implementing Routing Policy on Cisco IOS XR Software Prerequisit es for Impleme nting Ro uting Policy RC-206 Cisco IO S XR Ro uting C onfigur ation Gui de Prerequisites for Implem enting Routing Policy The following are prerequisi tes for imple menting Rou ting Po licy on Cisco IOS XR Softwa re: • T o use this co mmand, yo u must be in a user gro[...]

  • Page 223

    Impleme nting Routing Policy on Cisco IOS XR Softw are Information About Implementing Routing Policy RC-207 Cisco IOS XR Routing Configuration Guide polic y . For exam ple, three p olicies that ar e identica l in ev ery wa y exce pt for the local pref erence v alue the y set can be repr esented as one c ommon parameterize d polic y that tak es the [...]

  • Page 224

    Implementing Routing Policy on Cisco IOS XR Software Informat ion About Imp lement ing Routing Pol icy RC-208 Cisco IO S XR Ro uting C onfigur ation Gui de surrounde d by parenthe ses as fol lows: (<elemen t-en try>,< elem ent-en try>,< elem ent-en try> , ...<el ement-e ntry>) , where <elem ent-en try> is an en try of [...]

  • Page 225

    Impleme nting Routing Policy on Cisco IOS XR Softw are Information About Implementing Routing Policy RC-209 Cisco IOS XR Routing Configuration Guide This set mat ches the same AS paths as the prev iously named set, bu t does not requ ire the e xtra ef fort of creat ing a named se t separa te from th e policy that uses it. community-set A community-[...]

  • Page 226

    Implementing Routing Policy on Cisco IOS XR Software Informat ion About Imp lement ing Routing Pol icy RC-210 Cisco IO S XR Ro uting C onfigur ation Gui de Inline Form (RT:1.2.3.4:666, RT:1234:6667, SoO:1.2.3.4:777, SoO:45678:777) (RT:$ipaddr:666, RT:1234:$tag, SoO:1.2.3.4:777, SoO:$tag2:777) As with commu nity sets, the inline fo rm supports param[...]

  • Page 227

    Impleme nting Routing Policy on Cisco IOS XR Softw are Information About Implementing Routing Policy RC-211 Cisco IOS XR Routing Configuration Guide The fol lo wing pref ix-set c onsists entir ely of in val id pref ix match specif ications: prefix-set ILLEGAL-PREFIX-EXAMPLES 10.1.1.1 ge 16, 10.1.2.1 le 16, 10.1.3.0/24 le 23, 10.1.4.0/24 ge 33, 10.1[...]

  • Page 228

    Implementing Routing Policy on Cisco IOS XR Software Informat ion About Imp lement ing Routing Pol icy RC-212 Cisco IO S XR Ro uting C onfigur ation Gui de route-policy quickstart-drop drop end-policy Ignore routes with specific AS numbers in the path The follo wing example sho ws the policy definit ion in three parts. First, the as-path- set comma[...]

  • Page 229

    Impleme nting Routing Policy on Cisco IOS XR Softw are Information About Implementing Routing Policy RC-213 Cisco IOS XR Routing Configuration Guide route-policy quickstart-localpref if community matches-any quickstart-communities then set local-preference 31 endif pass end-policy Persistent Remarks The foll o wing exa mple sho ws how commen ts are[...]

  • Page 230

    Implementing Routing Policy on Cisco IOS XR Software Informat ion About Imp lement ing Routing Pol icy RC-214 Cisco IO S XR Ro uting C onfigur ation Gui de route-policy drop-everything drop end-policy The nam e se rves as a ha ndle fo r bindi ng the policy to p rotoco ls. T o remove a policy de finition, issue the no ro ute-policy name comman d. Po[...]

  • Page 231

    Impleme nting Routing Policy on Cisco IOS XR Softw are Information About Implementing Routing Policy RC-215 Cisco IOS XR Routing Configuration Guide route-policy origin-10 if as-path originates-from ‘10’ then apply param-example(10) else pass endif end-policy route-policy origin-20 if as-path originates-from ‘20’ then apply param-example(20[...]

  • Page 232

    Implementing Routing Policy on Cisco IOS XR Software Informat ion About Imp lement ing Routing Pol icy RC-216 Cisco IO S XR Ro uting C onfigur ation Gui de then the ex pression, fully parenthesi zed, would look like the follow ing: ((not med eq 10) and destination in (10.1.3.0/24)) or community matches-any ([10..25]:35) Multiple Modifications of th[...]

  • Page 233

    Impleme nting Routing Policy on Cisco IOS XR Softw are Information About Implementing Routing Policy RC-217 Cisco IOS XR Routing Configuration Guide if med eq 12 then set med 42 if med eq 42 then drop endif endif This policy never ex ecu tes the drop statem ent be caus e the s eco nd test (me d eq 4 2) sees t he ori gina l, unmodified value of the [...]

  • Page 234

    Implementing Routing Policy on Cisco IOS XR Software Informat ion About Imp lement ing Routing Pol icy RC-218 Cisco IO S XR Ro uting C onfigur ation Gui de Polic y four c ould be re written in an equi valent way as follo ws: route-policy four-equivalent set weight 100 set med 200 set community (2:666) additive pass end-policy Note Th e pass stateme[...]

  • Page 235

    Impleme nting Routing Policy on Cisco IOS XR Softw are Information About Implementing Routing Policy RC-219 Cisco IOS XR Routing Configuration Guide Attached Policy Modi fication Policie s that are in u se do, on occas ion, n eed to be modified. Traditionall y , con figuration chan ges a re done by completely re moving the r ele va nt confi guratio[...]

  • Page 236

    Implementing Routing Policy on Cisco IOS XR Software Informat ion About Imp lement ing Routing Pol icy RC-220 Cisco IO S XR Ro uting C onfigur ation Gui de Unlike tr aditional !-com ments in the CLI, RPL remarks persist through reboots and when configu rations are saved to disk or a T FTP se rver an d then loa ded ba ck on to the rou ter . Disposit[...]

  • Page 237

    Impleme nting Routing Policy on Cisco IOS XR Softw are Information About Implementing Routing Policy RC-221 Cisco IOS XR Routing Configuration Guide Beca use th e effect of an explicit drop statem ent is im mediat e, rout es in 10.0. 0.0/16 le 32 are dr opped without a ny furth er polic y processing . Other routes a re then co nsidered to see if th[...]

  • Page 238

    Implementing Routing Policy on Cisco IOS XR Software Informat ion About Imp lement ing Routing Pol icy RC-222 Cisco IO S XR Ro uting C onfigur ation Gui de The statem ents with in an if stateme nt may themselv es b e if statemen ts, as sho wn in the follo wing example: if community matches-any (12:34,56:78) then if med eq 150 then drop endif set lo[...]

  • Page 239

    Impleme nting Routing Policy on Cisco IOS XR Softw are Information About Implementing Routing Policy RC-223 Cisco IOS XR Routing Configuration Guide W ith a set of p arentheses to expr ess the pr ecedence, th e result i s the follo wing: med eq 10 or ((not destination in (10.1.3.0/24)) and community matches-any ([12..34]:[56..78]) The f ollo wing i[...]

  • Page 240

    Implementing Routing Policy on Cisco IOS XR Software Informat ion About Imp lement ing Routing Pol icy RC-224 Cisco IO S XR Ro uting C onfigur ation Gui de Note Th e pr otocol c onfigurat ion re jects attemp ts t o att ach po licies tha t perf orm unsuppor ted op erati ons. The fo llowing sections describe th e protoc ol attach poi nts, incl uding [...]

  • Page 241

    Impleme nting Routing Policy on Cisco IOS XR Softw are Information About Implementing Routing Policy RC-225 Cisco IOS XR Routing Configuration Guide router bgp 2 address-family ipv4 aggregate-address 10.0.0.0/8 policy sample . . . Dampenin g The dampeni ng at tach point contro ls the defau lt ro ute-da mpen ing beh avior with in B GP . Unle ss over[...]

  • Page 242

    Implementing Routing Policy on Cisco IOS XR Software Informat ion About Imp lement ing Routing Pol icy RC-226 Cisco IO S XR Ro uting C onfigur ation Gui de Neighbor Export The ne ighbor export attach poin t select s the BGP r outes to send to a g i ven pee r or group of pee rs. The routes are se lecte d by runni ng the set of possibl e B GP rout es[...]

  • Page 243

    Impleme nting Routing Policy on Cisco IOS XR Softw are Information About Implementing Routing Policy RC-227 Cisco IOS XR Routing Configuration Guide router bgp 2 neighbor 10.0.0.1 remote-as 3 address-family ipv4 unicast route-policy sample_import in . . . Netwo rk The netw ork attach point co ntrols the injec tion of routes from the RIB into BGP . [...]

  • Page 244

    Implementing Routing Policy on Cisco IOS XR Software Informat ion About Imp lement ing Routing Pol icy RC-228 Cisco IO S XR Ro uting C onfigur ation Gui de Show bgp The show bgp att ach point allo ws the user to display selected BG P routes that pass the gi ven policy . Any routes that a re not dropp ed by the a ttac hed pol icy are displa yed in a[...]

  • Page 245

    Impleme nting Routing Policy on Cisco IOS XR Softw are Information About Implementing Routing Policy RC-229 Cisco IOS XR Routing Configuration Guide RP/0/RP0/CPU0:router# show bgp policy route-policy test2 10.0.0.0/8 is advertised to 10.0.101.2 Path info: neighbor:10.0.1.2 neighbor router id:10.0.1.2 valid external best Attributes after inbound pol[...]

  • Page 246

    Implementing Routing Policy on Cisco IOS XR Software Informat ion About Imp lement ing Routing Pol icy RC-230 Cisco IO S XR Ro uting C onfigur ation Gui de Some B GP rout e attrib utes are inacces sible from s ome BGP attach points for va rious r easons . Fo r example, th e set med ig p-cost only comm and m akes se nse w hen there is a co nfigured [...]

  • Page 247

    Impleme nting Routing Policy on Cisco IOS XR Softw are Information About Implementing Routing Policy RC-231 Cisco IOS XR Routing Configuration Guide OSPF Policy Attach Points This section describes each of t he OSPF policy attach points and pro vides a summary of t he OSPF attributes and operat ors. Defa ult Or igina te The defa ult originat e atta[...]

  • Page 248

    Implementing Routing Policy on Cisco IOS XR Software Informat ion About Imp lement ing Routing Pol icy RC-232 Cisco IO S XR Ro uting C onfigur ation Gui de route-policy OSPF-redist set metric-type type-2 if tag eq 10 then set cost 100 elseif tag eq 20 then set cost 200 else drop endif end-policy router ospf 1 redistribute isis instance_10 policy OS[...]

  • Page 249

    Impleme nting Routing Policy on Cisco IOS XR Softw are Information About Implementing Routing Policy RC-233 Cisco IOS XR Routing Configuration Guide router ospfv3 1 default-information originate policy ospfv3-originate . . . Redistr ibute The redistr ibute attach point within OSPFv3 in jects routes fro m other rout ing protocol sources into the OSP[...]

  • Page 250

    Implementing Routing Policy on Cisco IOS XR Software Informat ion About Imp lement ing Routing Pol icy RC-234 Cisco IO S XR Ro uting C onfigur ation Gui de IS-IS Policy Attach Points This section describ es each of the IS-IS policy attac h points and provid es a summary of the BGP attributes and operat ors. Redistr ibute The re distribute at tach p[...]

  • Page 251

    Impleme nting Routing Policy on Cisco IOS XR Softw are Information About Implementing Routing Policy RC-235 Cisco IOS XR Routing Configuration Guide Attached Polic y Modification Policie s that are in u se do, on occas ion, n eed to be modi fied. In th e tr aditio nal configurat ion m odel , a policy modi fication would be d one by com plete ly rem[...]

  • Page 252

    Implementing Routing Policy on Cisco IOS XR Software Informat ion About Imp lement ing Routing Pol icy RC-236 Cisco IO S XR Ro uting C onfigur ation Gui de RP/0/RP0/CPU0:router# edit route-policy policy_A ---------------------------------------- == MicroEMACS 3.8b () == rpl_edit.139281 == if destination in (2001::/8) then drop endif end-policy ! ==[...]

  • Page 253

    Impleme nting Routing Policy on Cisco IOS XR Softw are How to Implement Routing Policy RC-237 Cisco IOS XR Routing Configuration Guide How to Implement Routing Policy This se ction conta ins th e fo llowing proc edur es: • Defining a Ro ute Poli cy , page RC-2 37 (req uired) • Attachi ng a Routing Po licy to a BGP Neighbor, page RC-238 (re quir[...]

  • Page 254

    Implementing Routing Policy on Cisco IOS XR Software How to Implem ent Routing Policy RC-238 Cisco IO S XR Ro uting C onfigur ation Gui de Attaching a Routing Po licy to a BGP Neighbor This task exp lains how to attach a rou ting pol icy to a BGP neigh bor . The proced ure to attac h a routin g policy to an IS-IS or OSPF neighbor is the same as BGP[...]

  • Page 255

    Impleme nting Routing Policy on Cisco IOS XR Softw are How to Implement Routing Policy RC-239 Cisco IOS XR Routing Configuration Guide DETAILED STEP S Comm and or Acti on Pur pose Step 1 configure Example : RP/0/RP0/CPU0:router# configure Enters gl obal configurat ion mode. Step 2 router bgp as-number Example : RP/0/RP0/CPU0:router(config)# router [...]

  • Page 256

    Implementing Routing Policy on Cisco IOS XR Software How to Implem ent Routing Policy RC-240 Cisco IO S XR Ro uting C onfigur ation Gui de Modifying a Routing Policy Us ing the M icroemac s Editor This t ask expla ins how to mo dify an existi ng ro uting policy usin g the microe macs editor . SUMMARY ST EPS 1. edit { route-policy | pref ix-set | as[...]

  • Page 257

    Impleme nting Routing Policy on Cisco IOS XR Softw are Configuration Examples for Implementing Routing Policy RC-241 Cisco IOS XR Routing Configuration Guide DETAILED STEP S Configuration E xamples for Impleme nting Rou ting Policy This section pro vides the follo wing config uration ex amples: • Routing Po licy Definitio n: Examp le, page RC-2 4[...]

  • Page 258

    Implementing Routing Policy on Cisco IOS XR Software Conf igu rat ion Exam ples for Impl ementi ng Ro utin g Po li cy RC-242 Cisco IO S XR Ro uting C onfigur ation Gui de configure route-policy sample1 if destination in test then drop else set med 200 set community (2:100) additive endif end-policy end show config running route-policy sample1 Build[...]

  • Page 259

    Impleme nting Routing Policy on Cisco IOS XR Softw are Configuration Examples for Implementing Routing Policy RC-243 Cisco IOS XR Routing Configuration Guide endif else set community (2:999) additive endif end-policy router bgp 2 neighbor 10.0.1.2 address-family ipv4 unicast route-policy inbound-tx in Modular Inb ound P olicy: Example The fo llowin[...]

  • Page 260

    Implementing Routing Policy on Cisco IOS XR Software Addition al Referenc es RC-244 Cisco IO S XR Ro uting C onfigur ation Gui de pass endif end-policy ! route-policy common-inbound apply filter-bogons set origin igp set community (2:333) end-policy ! route-policy set-lpref-prepend($lpref,$as,$prependcnt) set local-preference $lpref prepend as-path[...]

  • Page 261

    Impleme nting Routing Policy on Cisco IOS XR Softw are Additional References RC-245 Cisco IOS XR Routing Configuration Guide MIBs RFCs Technica l Assista nce MIB s MIB s Link There are no applicable MI Bs for this mo dule. T o locate and do wnload MIBs for sel ected platf orms usin g Cisco IOS XR software, use the Cisco MIB Locator found at the fol[...]

  • Page 262

    Implementing Routing Policy on Cisco IOS XR Software Addition al Referenc es RC-246 Cisco IO S XR Ro uting C onfigur ation Gui de[...]

  • Page 263

    RC-247 Cisco IOS XR Routing Configuration Guide Implementing Static Routes on Cisco IOS XR Software Static rou tes are use r- def ined route s that cau se packe ts movi ng betwee n a source an d a destinati on to take a specified path . Static ro utes can be im portant i f the Cisco IO S XR software cannot build a route to a part icular desti natio[...]

  • Page 264

    Implem enting St atic R outes on C isco IOS X R Soft ware Prerequisit es for I mpleme nting Stat ic Rout es on Cisco I OS X R Software RC-248 Cisco IO S XR Ro uting C onfigur ation Gui de Prerequisites for Implementin g Static Routes o n Cisco IOS XR Software T o use this co mmand , you must be in a user gr oup asso ciated with a task g roup tha t [...]

  • Page 265

    Impleme nting Static Rout es on Cisco IOS XR Software Information About Implementing Static Routes on Cisco IOS XR Software RC-249 Cisco IOS XR Routing Configuration Guide routes. For e xample, you could have routes installe d by the O pen Shortest Pa th First (OSPF) protocol with an administrative distance of 120. T o have a static route that woul[...]

  • Page 266

    Implem enting St atic R outes on C isco IOS X R Soft ware How to Implement Stat ic Routes on Cisco IOS XR Software RC-250 Cisco IO S XR Ro uting C onfigur ation Gui de Fully Specified St atic Routes In a fully specifie d static ro ute, both the ou tput int erface a nd next ho p are spec ified. This f orm of sta tic route is us ed when the outpu t i[...]

  • Page 267

    Impleme nting Static Rout es on Cisco IOS XR Software How to Implement Static Routes on Cisco IOS XR Software RC-251 Cisco IOS XR Routing Configuration Guide 3. end or commit DETAILED STEP S Configur ing a Fl oating St atic Rou te This t ask explai ns how to c onfigure a f loating sta tic route . SUMMARY ST EPS 1. conf igure 2. rou t e { ipv 4 | ip[...]

  • Page 268

    Implem enting St atic R outes on C isco IOS X R Soft ware How to Implement Stat ic Routes on Cisco IOS XR Software RC-252 Cisco IO S XR Ro uting C onfigur ation Gui de 3. end or commit DETAILED STEP S Comm and or Acti on Pur pose Step 1 configure Example : RP/0/RP0/CPU0:router# configure Enters gl obal configurat ion mode. Step 2 route { ipv4 | ipv[...]

  • Page 269

    Impleme nting Static Rout es on Cisco IOS XR Software How to Implement Static Routes on Cisco IOS XR Software RC-253 Cisco IOS XR Routing Configuration Guide Changing the Maximum Numb er of Allow able Static Routes This t ask explai ns how to c hange the ma ximum numbe r of al lowable static route s. Restrictions The number of stat ic r outes t hat[...]

  • Page 270

    Implem enting St atic R outes on C isco IOS X R Soft ware How to Implement Stat ic Routes on Cisco IOS XR Software RC-254 Cisco IO S XR Ro uting C onfigur ation Gui de DETAILED STEP S Comm and or Acti on Pur pose Step 1 configure Example : RP/0/RP0/CPU0:router# configure Enters gl obal configurat ion mode. Step 2 route maximum { ipv4 | ipv6 } value[...]

  • Page 271

    Impleme nting Static Rout es on Cisco IOS XR Software Configuration Examples RC-255 Cisco IOS XR Routing Configuration Guide Configuration E xamples This section pro vides the follo wing config uration exam ples: • Conf iguri ng T raf fic Disc ard: Exa mple • Conf igurin g a Fix ed Def aul t Rout e: Exam ple • Configuring a Floati ng Stat ic [...]

  • Page 272

    Implem enting St atic R outes on C isco IOS X R Soft ware Addition al Referenc es RC-256 Cisco IO S XR Ro uting C onfigur ation Gui de Additional Ref erences The follo wing sections provide r eferences r elated to imple menting static route s on Cisco IOS XR software. Related Do cuments Standa rds MIBs RFCs Technica l Assista nce Related T o pic Do[...]

  • Page 273

    HC Cisc o IOS X R In terfac e a nd Hard war e Com ponen t Config uration G uide IC Cisco I OS XR IP Addr esses a nd Ser vices Configu ratio n Guid e MCC Cisco IO S XR Mul ticast Co nfigurat ion Gu ide MPC Cis co I OS XR MP LS Confi gur atio n Guid e QC Cisco IOS XR Modu lar Qualit y of Servic e Configurat ion Guide RC Cisco IO S XR Rou ting Con fig[...]

  • Page 274

    Index RC-258 Cisco IOS XR Routi ng Configu ration Gu ide bgp dam peni ng co mman d RC-49 bgp defaul t loc al-pref erence command RC-3 6 bgp globa l address famil y submod e RC-5 aggreg ate-addre ss com mand RC-44 bgp dam peni ng co mman d RC-49 distan ce bgp comm and RC -54 network c omman d RC-42 redistri bute co mmand RC- 47 See a ddress fa mily [...]

  • Page 275

    Inde x RC-259 Cisco IOS XR Routing Configuration Guide distan ce com mand RC-121 dmz- lin k-ban dwid th c omma nd RC-56 Draft-ietf -idr-bgp4- 24.txt, BGP RC-80, RC-244 Draft-ietf -idr-bgp4-m ib-15.txt, BGP RC-80 draft- ietf-i dr-cea se-sub code-05. txt RC -80 Draft-ie tf-isis- igp-p2p- over- lan-05.t xt, Point- to-poi nt operati on over LAN RC-124 [...]

  • Page 276

    Index RC-260 Cisco IOS XR Routi ng Configu ration Gu ide interior routers RC- 134 IPv6 IS-IS su pport multitopo logy RC-88 single-top ology RC-87 RIB suppor t RC-19 7 routin g RC-86 IS-IS (I nter mediate Sys tem-to -Inter mediate System) adjacenc ies, tuning RC-113 attached bit on a n instance RC-90 authe nticat ion, c onfigur ing RC-108 Cisco IO S[...]

  • Page 277

    Inde x RC-261 Cisco IOS XR Routing Configuration Guide M maximum- paths c ommand RC-121 max-l sp-lifetim e command RC-103 mesh-gro up comm and RC-104 messag e-dig est-ke y command RC-156 metric-s tyle wide command RC-112 MPLS TE (Mul tiprotocol Lab el Switching tr affic engine ering) confi guring IS-IS RC-110 OSPFv2 RC-175 mpls traffic- eng area co[...]

  • Page 278

    Index RC-262 Cisco IOS XR Routi ng Configu ration Gu ide on an OSPF ABR RC- 164 types RC-137 MD5 authentic ation R C-135 MPLS TE, configur ing R C-175 neighbo rs, adja cency RC-136 neighbo rs, nonbr oadcas t net works, con figu ring RC-150 nonstop for wardi ng config uring RC- 173 descript ion RC-140 policy a ttach points default originate RC-231 r[...]

  • Page 279

    Inde x RC-263 Cisco IOS XR Routing Configuration Guide P passwo rd accep t comman d RC-57 password-di sable c ommand RC-57 point-t o-point n etwor ks RC-135 policy, mo dify ing atta ched RC- 235 nonatt ach ed RC-235 R range co mmand RC- 165 recei ve-b uffer -si ze co mman d RC-57 redistri bute co mmand RC-47, RC -168 redistri bute is is comman d RC[...]

  • Page 280

    Index RC-264 Cisco IOS XR Routi ng Configu ration Gu ide mpls traffi c-eng comman d RC-111 mpls traffic- eng rou ter-i d comman d RC-112 redi st rib ute is is co mm and RC-121 set-attac hed-bit command R C-122 single-top ology c ommand RC-96 spf-in terval co mmand RC-117 summ ary-pre fix co mmand RC-121 router isis comman d RC-100 router isis confi[...]

  • Page 281

    Inde x RC-265 Cisco IOS XR Routing Configuration Guide Area B order Router s (ABR s) RC-134 Autonomou s System Bound ary R outers (ASBRs) RC-134 autonom ous system s RC-132 backbon e ar ea RC-133 Designat ed Router (D R) RC-136 interior routers RC- 134 not-so-stu bby a rea RC-133 stub ar ea RC-133 routin g domain c onfed erati on RC-24 routing pol [...]

  • Page 282

    Index RC-266 Cisco IOS XR Routi ng Configu ration Gu ide show isis dat abase comma nd RC-1 05 show is is datab ase-log c ommand RC-105 show isis interface command RC-116 show isis lsp- log comma nd RC-10 5 show isis mpls command RC-112 show i sis mp ls traff ic- eng adj acenc y-log comm and RC-112 show isis mpls traffic -eng advertis ements comm an[...]