]>
Commit | Line | Data |
---|---|---|
11ab5329 | 1 | .. _ospfv2: |
42fc5d26 QY |
2 | |
3 | ****** | |
4 | OSPFv2 | |
5 | ****** | |
6 | ||
c1a54c05 QY |
7 | :abbr:`OSPF (Open Shortest Path First)` version 2 is a routing protocol which |
8 | is described in :rfc:`2328`. OSPF is an :abbr:`IGP (Interior Gateway | |
9 | Protocol)`. Compared with :abbr:`RIP`, :abbr:`OSPF` can provide scalable | |
10 | network support and faster convergence times. OSPF is widely used in large | |
11 | networks such as :abbr:`ISP (Internet Service Provider)` backbone and | |
12 | enterprise networks. | |
42fc5d26 | 13 | |
c1a54c05 | 14 | .. include:: ospf_fundamentals.rst |
42fc5d26 | 15 | |
c1a54c05 | 16 | .. _configuring-ospfd: |
42fc5d26 | 17 | |
e6f1b831 QY |
18 | Configuring OSPF |
19 | ================ | |
42fc5d26 | 20 | |
e6f1b831 QY |
21 | *ospfd* accepts all :ref:`common-invocation-options`. |
22 | ||
23 | .. option:: -n, --instance | |
24 | ||
25 | Specify the instance number for this invocation of *ospfd*. | |
26 | ||
27 | .. option:: -a, --apiserver | |
28 | ||
37f92f22 | 29 | Enable the OSPF API server. This is required to use ``ospfclient``. |
e6f1b831 QY |
30 | |
31 | *ospfd* must acquire interface information from *zebra* in order to function. | |
32 | Therefore *zebra* must be running before invoking *ospfd*. Also, if *zebra* is | |
33 | restarted then *ospfd* must be too. | |
42fc5d26 | 34 | |
c1a54c05 | 35 | Like other daemons, *ospfd* configuration is done in :abbr:`OSPF` specific |
e6f1b831 QY |
36 | configuration file :file:`ospfd.conf` when the integrated config is not used. |
37 | ||
38 | .. _ospf-multi-instance: | |
39 | ||
40 | Multi-instance Support | |
41 | ---------------------- | |
42 | ||
43 | OSPF supports multiple instances. Each instance is identified by a positive | |
44 | nonzero integer that must be provided when adding configuration items specific | |
45 | to that instance. Enabling instances is done with :file:`/etc/frr/daemons` in | |
46 | the following manner: | |
47 | ||
48 | :: | |
49 | ||
50 | ... | |
51 | ospfd=yes | |
52 | ospfd_instances=1,5,6 | |
53 | ... | |
54 | ||
55 | The ``ospfd_instances`` variable controls which instances are started and what | |
56 | their IDs are. In this example, after starting FRR you should see the following | |
57 | processes: | |
58 | ||
59 | .. code-block:: shell | |
60 | ||
61 | # ps -ef | grep "ospfd" | |
62 | frr 11816 1 0 17:30 ? 00:00:00 /usr/lib/frr/ospfd --daemon -A 127.0.0.1 -n 1 | |
63 | frr 11822 1 0 17:30 ? 00:00:00 /usr/lib/frr/ospfd --daemon -A 127.0.0.1 -n 2 | |
64 | frr 11828 1 0 17:30 ? 00:00:00 /usr/lib/frr/ospfd --daemon -A 127.0.0.1 -n 3 | |
65 | ||
66 | ||
67 | The instance number should be specified in the config when addressing a particular instance: | |
68 | ||
69 | .. code-block:: frr | |
70 | ||
71 | router ospf 5 | |
349ee664 | 72 | ospf router-id 1.2.3.4 |
e6f1b831 QY |
73 | area 0.0.0.0 authentication message-digest |
74 | ... | |
42fc5d26 | 75 | |
0efdf0fe | 76 | .. _ospf-router: |
42fc5d26 | 77 | |
e6f1b831 QY |
78 | Routers |
79 | ------- | |
42fc5d26 | 80 | |
e6f1b831 | 81 | To start OSPF process you have to specify the OSPF router. |
42fc5d26 | 82 | |
5ebb2239 | 83 | .. clicmd:: router ospf [{(1-65535)|vrf NAME}] |
42fc5d26 | 84 | |
42fc5d26 | 85 | |
e6f1b831 | 86 | Enable or disable the OSPF process. |
42fc5d26 | 87 | |
5ebb2239 | 88 | Multiple instances don't support `vrf NAME`. |
89 | ||
c1a54c05 | 90 | .. clicmd:: ospf router-id A.B.C.D |
42fc5d26 | 91 | |
42fc5d26 | 92 | |
e6f1b831 QY |
93 | This sets the router-ID of the OSPF process. The router-ID may be an IP |
94 | address of the router, but need not be - it can be any arbitrary 32bit | |
95 | number. However it MUST be unique within the entire OSPF domain to the OSPF | |
96 | speaker - bad things will happen if multiple OSPF speakers are configured | |
97 | with the same router-ID! If one is not specified then *ospfd* will obtain a | |
98 | router-ID automatically from *zebra*. | |
42fc5d26 | 99 | |
c1a54c05 QY |
100 | .. clicmd:: ospf abr-type TYPE |
101 | ||
c1a54c05 | 102 | |
6ee602cd QY |
103 | `type` can be cisco|ibm|shortcut|standard. The "Cisco" and "IBM" types |
104 | are equivalent. | |
105 | ||
106 | The OSPF standard for ABR behaviour does not allow an ABR to consider | |
107 | routes through non-backbone areas when its links to the backbone are | |
108 | down, even when there are other ABRs in attached non-backbone areas | |
109 | which still can reach the backbone - this restriction exists primarily | |
110 | to ensure routing-loops are avoided. | |
111 | ||
d1e7591e QY |
112 | With the "Cisco" or "IBM" ABR type, the default in this release of FRR, this |
113 | restriction is lifted, allowing an ABR to consider summaries learned from | |
114 | other ABRs through non-backbone areas, and hence route via non-backbone | |
115 | areas as a last resort when, and only when, backbone links are down. | |
6ee602cd QY |
116 | |
117 | Note that areas with fully-adjacent virtual-links are considered to be | |
118 | "transit capable" and can always be used to route backbone traffic, and | |
119 | hence are unaffected by this setting (:clicmd:`area A.B.C.D virtual-link A.B.C.D`). | |
120 | ||
121 | More information regarding the behaviour controlled by this command can | |
122 | be found in :rfc:`3509`, and :t:`draft-ietf-ospf-shortcut-abr-02.txt`. | |
123 | ||
124 | Quote: "Though the definition of the :abbr:`ABR (Area Border Router)` | |
125 | in the OSPF specification does not require a router with multiple | |
126 | attached areas to have a backbone connection, it is actually | |
127 | necessary to provide successful routing to the inter-area and | |
128 | external destinations. If this requirement is not met, all traffic | |
129 | destined for the areas not connected to such an ABR or out of the | |
130 | OSPF domain, is dropped. This document describes alternative ABR | |
131 | behaviors implemented in Cisco and IBM routers." | |
42fc5d26 | 132 | |
c1a54c05 | 133 | .. clicmd:: ospf rfc1583compatibility |
a8c90e15 | 134 | |
42fc5d26 | 135 | |
d1e7591e | 136 | :rfc:`2328`, the successor to :rfc:`1583`, suggests according |
c1a54c05 QY |
137 | to section G.2 (changes) in section 16.4 a change to the path |
138 | preference algorithm that prevents possible routing loops that were | |
139 | possible in the old version of OSPFv2. More specifically it demands | |
140 | that inter-area paths and intra-area backbone path are now of equal preference | |
141 | but still both preferred to external paths. | |
142 | ||
143 | This command should NOT be set normally. | |
144 | ||
c1a54c05 QY |
145 | .. clicmd:: log-adjacency-changes [detail] |
146 | ||
c1a54c05 QY |
147 | |
148 | Configures ospfd to log changes in adjacency. With the optional | |
149 | detail argument, all changes in adjacency status are shown. Without detail, | |
150 | only changes to full or regressions are shown. | |
151 | ||
29ec6244 | 152 | .. clicmd:: passive-interface default |
c1a54c05 | 153 | |
29ec6244 IR |
154 | Make all interfaces that belong to this router passive by default. For the |
155 | description of passive interface look at :clicmd:`ip ospf passive [A.B.C.D]`. | |
156 | Per-interface configuration takes precedence over the default value. | |
c1a54c05 | 157 | |
fc0a7cad | 158 | .. clicmd:: timers throttle spf (0-600000) (0-600000) (0-600000) |
c1a54c05 | 159 | |
c1a54c05 QY |
160 | This command sets the initial `delay`, the `initial-holdtime` |
161 | and the `maximum-holdtime` between when SPF is calculated and the | |
162 | event which triggered the calculation. The times are specified in | |
163 | milliseconds and must be in the range of 0 to 600000 milliseconds. | |
164 | ||
165 | The `delay` specifies the minimum amount of time to delay SPF | |
166 | calculation (hence it affects how long SPF calculation is delayed after | |
167 | an event which occurs outside of the holdtime of any previous SPF | |
168 | calculation, and also serves as a minimum holdtime). | |
169 | ||
d1e7591e | 170 | Consecutive SPF calculations will always be separated by at least |
c1a54c05 QY |
171 | 'hold-time' milliseconds. The hold-time is adaptive and initially is |
172 | set to the `initial-holdtime` configured with the above command. | |
173 | Events which occur within the holdtime of the previous SPF calculation | |
174 | will cause the holdtime to be increased by `initial-holdtime`, bounded | |
175 | by the `maximum-holdtime` configured with this command. If the adaptive | |
d1e7591e | 176 | hold-time elapses without any SPF-triggering event occurring then |
c1a54c05 | 177 | the current holdtime is reset to the `initial-holdtime`. The current |
6ee602cd | 178 | holdtime can be viewed with :clicmd:`show ip ospf`, where it is expressed as |
c1a54c05 | 179 | a multiplier of the `initial-holdtime`. |
42fc5d26 | 180 | |
9eb95b3b | 181 | .. code-block:: frr |
c1a54c05 QY |
182 | |
183 | router ospf | |
184 | timers throttle spf 200 400 10000 | |
185 | ||
186 | ||
187 | In this example, the `delay` is set to 200ms, the initial holdtime is set to | |
188 | 400ms and the `maximum holdtime` to 10s. Hence there will always be at least | |
189 | 200ms between an event which requires SPF calculation and the actual SPF | |
d1e7591e | 190 | calculation. Further consecutive SPF calculations will always be separated |
c1a54c05 QY |
191 | by between 400ms to 10s, the hold-time increasing by 400ms each time an |
192 | SPF-triggering event occurs within the hold-time of the previous SPF | |
193 | calculation. | |
42fc5d26 | 194 | |
56f0bea7 | 195 | This command supersedes the *timers spf* command in previous FRR |
c1a54c05 | 196 | releases. |
42fc5d26 | 197 | |
5027538a | 198 | .. clicmd:: max-metric router-lsa [on-startup (5-86400)|on-shutdown (5-100)] |
42fc5d26 | 199 | |
c1a54c05 QY |
200 | .. clicmd:: max-metric router-lsa administrative |
201 | ||
42fc5d26 | 202 | |
c1a54c05 QY |
203 | This enables :rfc:`3137` support, where the OSPF process describes its |
204 | transit links in its router-LSA as having infinite distance so that other | |
205 | routers will avoid calculating transit paths through the router while still | |
206 | being able to reach networks through the router. | |
42fc5d26 | 207 | |
c1a54c05 QY |
208 | This support may be enabled administratively (and indefinitely) or |
209 | conditionally. Conditional enabling of max-metric router-lsas can be for a | |
210 | period of seconds after startup and/or for a period of seconds prior to | |
211 | shutdown. | |
42fc5d26 | 212 | |
c1a54c05 QY |
213 | Enabling this for a period after startup allows OSPF to converge fully first |
214 | without affecting any existing routes used by other routers, while still | |
215 | allowing any connected stub links and/or redistributed routes to be | |
216 | reachable. Enabling this for a period of time in advance of shutdown allows | |
217 | the router to gracefully excuse itself from the OSPF domain. | |
42fc5d26 | 218 | |
c1a54c05 QY |
219 | Enabling this feature administratively allows for administrative |
220 | intervention for whatever reason, for an indefinite period of time. Note | |
221 | that if the configuration is written to file, this administrative form of | |
222 | the stub-router command will also be written to file. If *ospfd* is | |
223 | restarted later, the command will then take effect until manually | |
224 | deconfigured. | |
42fc5d26 | 225 | |
c1a54c05 QY |
226 | Configured state of this feature as well as current status, such as the |
227 | number of second remaining till on-startup or on-shutdown ends, can be | |
6ee602cd | 228 | viewed with the :clicmd:`show ip ospf` command. |
42fc5d26 | 229 | |
c1a54c05 | 230 | .. clicmd:: auto-cost reference-bandwidth (1-4294967) |
42fc5d26 | 231 | |
42fc5d26 | 232 | |
c1a54c05 QY |
233 | This sets the reference |
234 | bandwidth for cost calculations, where this bandwidth is considered | |
235 | equivalent to an OSPF cost of 1, specified in Mbits/s. The default is | |
236 | 100Mbit/s (i.e. a link of bandwidth 100Mbit/s or higher will have a | |
237 | cost of 1. Cost of lower bandwidth links will be scaled with reference | |
238 | to this cost). | |
42fc5d26 | 239 | |
c1a54c05 QY |
240 | This configuration setting MUST be consistent across all routers within the |
241 | OSPF domain. | |
42fc5d26 | 242 | |
c1a54c05 | 243 | .. clicmd:: network A.B.C.D/M area A.B.C.D |
42fc5d26 | 244 | |
c1a54c05 | 245 | .. clicmd:: network A.B.C.D/M area (0-4294967295) |
42fc5d26 | 246 | |
42fc5d26 | 247 | |
42fc5d26 | 248 | |
c1a54c05 QY |
249 | This command specifies the OSPF enabled interface(s). If the interface has |
250 | an address from range 192.168.1.0/24 then the command below enables ospf | |
251 | on this interface so router can provide network information to the other | |
252 | ospf routers via this interface. | |
42fc5d26 | 253 | |
9eb95b3b | 254 | .. code-block:: frr |
a8c90e15 | 255 | |
9eb95b3b QY |
256 | router ospf |
257 | network 192.168.1.0/24 area 0.0.0.0 | |
42fc5d26 | 258 | |
d1e7591e | 259 | Prefix length in interface must be equal or bigger (i.e. smaller network) than |
c1a54c05 QY |
260 | prefix length in network statement. For example statement above doesn't enable |
261 | ospf on interface with address 192.168.1.1/23, but it does on interface with | |
262 | address 192.168.1.129/25. | |
42fc5d26 | 263 | |
c1a54c05 QY |
264 | Note that the behavior when there is a peer address |
265 | defined on an interface changed after release 0.99.7. | |
266 | Currently, if a peer prefix has been configured, | |
267 | then we test whether the prefix in the network command contains | |
268 | the destination prefix. Otherwise, we test whether the network command prefix | |
269 | contains the local address prefix of the interface. | |
42fc5d26 | 270 | |
3c07b475 JAG |
271 | It is also possible to enable OSPF on a per interface/subnet basis |
272 | using the interface command (:clicmd:`ip ospf area AREA [ADDR]`). | |
273 | However, mixing both network commands (:clicmd:`network`) and interface | |
274 | commands (:clicmd:`ip ospf`) on the same router is not supported. | |
42fc5d26 | 275 | |
dfb2ee85 JU |
276 | .. clicmd:: proactive-arp |
277 | ||
dfb2ee85 JU |
278 | |
279 | This command enables or disables sending ARP requests to update neighbor | |
280 | table entries. It speeds up convergence for /32 networks on a P2P | |
b832909b | 281 | connection. |
dfb2ee85 JU |
282 | |
283 | This feature is enabled by default. | |
42fc5d26 | 284 | |
f91ce319 MR |
285 | .. clicmd:: clear ip ospf [(1-65535)] process |
286 | ||
287 | This command can be used to clear the ospf process data structures. This | |
288 | will clear the ospf neighborship as well and it will get re-established. | |
289 | This will clear the LSDB too. This will be helpful when there is a change | |
290 | in router-id and if user wants the router-id change to take effect, user can | |
291 | use this cli instead of restarting the ospfd daemon. | |
292 | ||
f91ce319 MR |
293 | .. clicmd:: clear ip ospf [(1-65535)] neighbor |
294 | ||
295 | This command can be used to clear the ospf neighbor data structures. This | |
296 | will clear the ospf neighborship and it will get re-established. This | |
297 | command can be used when the neighbor state get stuck at some state and | |
298 | this can be used to recover it from that state. | |
299 | ||
25d6c967 | 300 | .. clicmd:: maximum-paths (1-64) |
3d5b9855 | 301 | |
25d6c967 IR |
302 | Use this command to control the maximum number of equal cost paths to reach |
303 | a specific destination. The upper limit may differ if you change the value | |
304 | of MULTIPATH_NUM during compilation. The default is MULTIPATH_NUM (64). | |
3d5b9855 | 305 | |
44db98df PR |
306 | .. clicmd:: write-multiplier (1-100) |
307 | ||
308 | Use this command to tune the amount of work done in the packet read and | |
309 | write threads before relinquishing control. The parameter is the number | |
310 | of packets to process before returning. The defult value of this parameter | |
311 | is 20. | |
312 | ||
6e6e1020 MS |
313 | .. clicmd:: socket buffer <send | recv | all> (1-4000000000) |
314 | ||
315 | This command controls the ospf instance's socket buffer sizes. The | |
316 | 'no' form resets one or both values to the default. | |
317 | ||
86a36bad MS |
318 | .. clicmd:: no socket-per-interface |
319 | ||
320 | Ordinarily, ospfd uses a socket per interface for sending | |
321 | packets. This command disables those per-interface sockets, and | |
322 | causes ospfd to use a single socket per ospf instance for sending | |
323 | and receiving packets. | |
324 | ||
0efdf0fe | 325 | .. _ospf-area: |
42fc5d26 | 326 | |
e6f1b831 QY |
327 | Areas |
328 | ----- | |
42fc5d26 | 329 | |
dea89532 | 330 | .. clicmd:: area A.B.C.D range A.B.C.D/M [advertise [cost (0-16777215)]] |
42fc5d26 | 331 | |
dea89532 | 332 | .. clicmd:: area (0-4294967295) range A.B.C.D/M [advertise [cost (0-16777215)]] |
42fc5d26 | 333 | |
42fc5d26 | 334 | |
42fc5d26 | 335 | |
9eb95b3b QY |
336 | Summarize intra area paths from specified area into one Type-3 summary-LSA |
337 | announced to other areas. This command can be used only in ABR and ONLY | |
d1e7591e | 338 | router-LSAs (Type-1) and network-LSAs (Type-2) (i.e. LSAs with scope area) can |
9eb95b3b | 339 | be summarized. Type-5 AS-external-LSAs can't be summarized - their scope is AS. |
42fc5d26 | 340 | |
9eb95b3b | 341 | .. code-block:: frr |
42fc5d26 | 342 | |
9eb95b3b QY |
343 | router ospf |
344 | network 192.168.1.0/24 area 0.0.0.0 | |
345 | network 10.0.0.0/8 area 0.0.0.10 | |
346 | area 0.0.0.10 range 10.0.0.0/8 | |
a8c90e15 | 347 | |
42fc5d26 | 348 | |
9eb95b3b QY |
349 | With configuration above one Type-3 Summary-LSA with routing info 10.0.0.0/8 is |
350 | announced into backbone area if area 0.0.0.10 contains at least one intra-area | |
d1e7591e | 351 | network (i.e. described with router or network LSA) from this range. |
42fc5d26 | 352 | |
8bb8273f | 353 | .. clicmd:: area A.B.C.D range A.B.C.D/M not-advertise |
354 | ||
355 | .. clicmd:: area (0-4294967295) range A.B.C.D/M not-advertise | |
42fc5d26 | 356 | |
42fc5d26 | 357 | |
d1e7591e | 358 | Instead of summarizing intra area paths filter them - i.e. intra area paths from this |
c1a54c05 QY |
359 | range are not advertised into other areas. |
360 | This command makes sense in ABR only. | |
42fc5d26 | 361 | |
dea89532 | 362 | .. clicmd:: area A.B.C.D range A.B.C.D/M {substitute A.B.C.D/M|cost (0-16777215)} |
8bb8273f | 363 | |
dea89532 | 364 | .. clicmd:: area (0-4294967295) range A.B.C.D/M {substitute A.B.C.D/M|cost (0-16777215)} |
42fc5d26 | 365 | |
42fc5d26 | 366 | |
c1a54c05 | 367 | Substitute summarized prefix with another prefix. |
42fc5d26 | 368 | |
9eb95b3b | 369 | .. code-block:: frr |
42fc5d26 | 370 | |
9eb95b3b QY |
371 | router ospf |
372 | network 192.168.1.0/24 area 0.0.0.0 | |
373 | network 10.0.0.0/8 area 0.0.0.10 | |
374 | area 0.0.0.10 range 10.0.0.0/8 substitute 11.0.0.0/8 | |
a8c90e15 | 375 | |
42fc5d26 | 376 | |
c1a54c05 | 377 | One Type-3 summary-LSA with routing info 11.0.0.0/8 is announced into backbone area if |
d1e7591e | 378 | area 0.0.0.10 contains at least one intra-area network (i.e. described with router-LSA or |
c1a54c05 | 379 | network-LSA) from range 10.0.0.0/8. |
dea89532 | 380 | |
381 | By default, the metric of the summary route is calculated as the highest | |
382 | metric among the summarized routes. The `cost` option, however, can be used | |
383 | to set an explicit metric. | |
384 | ||
c1a54c05 | 385 | This command makes sense in ABR only. |
42fc5d26 | 386 | |
c1a54c05 | 387 | .. clicmd:: area A.B.C.D virtual-link A.B.C.D |
42fc5d26 | 388 | |
c1a54c05 | 389 | .. clicmd:: area (0-4294967295) virtual-link A.B.C.D |
42fc5d26 | 390 | |
42fc5d26 | 391 | |
42fc5d26 | 392 | |
c1a54c05 | 393 | .. clicmd:: area A.B.C.D shortcut |
42fc5d26 | 394 | |
c1a54c05 | 395 | .. clicmd:: area (0-4294967295) shortcut |
42fc5d26 | 396 | |
42fc5d26 | 397 | |
42fc5d26 | 398 | |
c1a54c05 QY |
399 | Configure the area as Shortcut capable. See :rfc:`3509`. This requires |
400 | that the 'abr-type' be set to 'shortcut'. | |
42fc5d26 | 401 | |
c1a54c05 | 402 | .. clicmd:: area A.B.C.D stub |
42fc5d26 | 403 | |
c1a54c05 | 404 | .. clicmd:: area (0-4294967295) stub |
42fc5d26 | 405 | |
42fc5d26 | 406 | |
42fc5d26 | 407 | |
c1a54c05 QY |
408 | Configure the area to be a stub area. That is, an area where no router |
409 | originates routes external to OSPF and hence an area where all external | |
410 | routes are via the ABR(s). Hence, ABRs for such an area do not need | |
411 | to pass AS-External LSAs (type-5s) or ASBR-Summary LSAs (type-4) into the | |
412 | area. They need only pass Network-Summary (type-3) LSAs into such an area, | |
413 | along with a default-route summary. | |
42fc5d26 | 414 | |
c1a54c05 | 415 | .. clicmd:: area A.B.C.D stub no-summary |
42fc5d26 | 416 | |
c1a54c05 | 417 | .. clicmd:: area (0-4294967295) stub no-summary |
42fc5d26 | 418 | |
42fc5d26 | 419 | |
42fc5d26 | 420 | |
c1a54c05 QY |
421 | Prevents an *ospfd* ABR from injecting inter-area |
422 | summaries into the specified stub area. | |
42fc5d26 | 423 | |
8807d9f7 | 424 | .. clicmd:: area A.B.C.D nssa |
425 | ||
426 | .. clicmd:: area (0-4294967295) nssa | |
427 | ||
428 | Configure the area to be a NSSA (Not-So-Stubby Area). This is an area that | |
429 | allows OSPF to import external routes into a stub area via a new LSA type | |
430 | (type 7). An NSSA autonomous system boundary router (ASBR) will generate this | |
431 | type of LSA. The area border router (ABR) translates the LSA type 7 into LSA | |
432 | type 5, which is propagated into the OSPF domain. NSSA areas are defined in | |
433 | RFC 3101. | |
434 | ||
d71494e6 | 435 | .. clicmd:: area A.B.C.D nssa suppress-fa |
436 | ||
437 | .. clicmd:: area (0-4294967295) nssa suppress-fa | |
438 | ||
439 | Configure the router to set the forwarding address to 0.0.0.0 in all LSA type 5 | |
440 | translated from LSA type 7. The router needs to be elected the translator of the | |
441 | area for this command to take effect. This feature causes routers that are | |
442 | configured not to advertise forwarding addresses into the backbone to direct | |
443 | forwarded traffic to the NSSA ABR translator. | |
444 | ||
017714e3 RW |
445 | .. clicmd:: area A.B.C.D nssa default-information-originate [metric-type (1-2)] [metric (0-16777214)] |
446 | ||
447 | .. clicmd:: area (0-4294967295) nssa default-information-originate [metric-type (1-2)] [metric (0-16777214)] | |
448 | ||
449 | NSSA ABRs and ASBRs can be configured with the `default-information-originate` | |
450 | option to originate a Type-7 default route into the NSSA area. In the case | |
451 | of NSSA ASBRs, the origination of the default route is conditioned to the | |
452 | existence of a default route in the RIB that wasn't learned via the OSPF | |
453 | protocol. | |
454 | ||
f07ff222 RW |
455 | .. clicmd:: area A.B.C.D nssa range A.B.C.D/M [<not-advertise|cost (0-16777215)>] |
456 | ||
457 | .. clicmd:: area (0-4294967295) nssa range A.B.C.D/M [<not-advertise|cost (0-16777215)>] | |
458 | ||
459 | Summarize a group of external subnets into a single Type-7 LSA, which is | |
460 | then translated to a Type-5 LSA and avertised to the backbone. | |
461 | This command can only be used at the area boundary (NSSA ABR router). | |
462 | ||
463 | By default, the metric of the summary route is calculated as the highest | |
464 | metric among the summarized routes. The `cost` option, however, can be used | |
465 | to set an explicit metric. | |
466 | ||
467 | The `not-advertise` option, when present, prevents the summary route from | |
468 | being advertised, effectively filtering the summarized routes. | |
469 | ||
c1a54c05 | 470 | .. clicmd:: area A.B.C.D default-cost (0-16777215) |
42fc5d26 | 471 | |
42fc5d26 | 472 | |
c1a54c05 | 473 | Set the cost of default-summary LSAs announced to stubby areas. |
42fc5d26 | 474 | |
c1a54c05 | 475 | .. clicmd:: area A.B.C.D export-list NAME |
42fc5d26 | 476 | |
c1a54c05 | 477 | .. clicmd:: area (0-4294967295) export-list NAME |
42fc5d26 | 478 | |
42fc5d26 | 479 | |
42fc5d26 | 480 | |
c1a54c05 QY |
481 | Filter Type-3 summary-LSAs announced to other areas originated from intra- |
482 | area paths from specified area. | |
42fc5d26 | 483 | |
9eb95b3b | 484 | .. code-block:: frr |
a8c90e15 | 485 | |
9eb95b3b QY |
486 | router ospf |
487 | network 192.168.1.0/24 area 0.0.0.0 | |
488 | network 10.0.0.0/8 area 0.0.0.10 | |
489 | area 0.0.0.10 export-list foo | |
490 | ! | |
491 | access-list foo permit 10.10.0.0/16 | |
492 | access-list foo deny any | |
42fc5d26 | 493 | |
c1a54c05 QY |
494 | With example above any intra-area paths from area 0.0.0.10 and from range |
495 | 10.10.0.0/16 (for example 10.10.1.0/24 and 10.10.2.128/30) are announced into | |
496 | other areas as Type-3 summary-LSA's, but any others (for example 10.11.0.0/16 | |
497 | or 10.128.30.16/30) aren't. | |
42fc5d26 | 498 | |
c1a54c05 QY |
499 | This command is only relevant if the router is an ABR for the specified |
500 | area. | |
42fc5d26 | 501 | |
c1a54c05 | 502 | .. clicmd:: area A.B.C.D import-list NAME |
42fc5d26 | 503 | |
c1a54c05 | 504 | .. clicmd:: area (0-4294967295) import-list NAME |
42fc5d26 | 505 | |
42fc5d26 | 506 | |
42fc5d26 | 507 | |
9eb95b3b QY |
508 | Same as export-list, but it applies to paths announced into specified area |
509 | as Type-3 summary-LSAs. | |
42fc5d26 | 510 | |
c1a54c05 | 511 | .. clicmd:: area A.B.C.D filter-list prefix NAME in |
42fc5d26 | 512 | |
c1a54c05 | 513 | .. clicmd:: area A.B.C.D filter-list prefix NAME out |
42fc5d26 | 514 | |
c1a54c05 | 515 | .. clicmd:: area (0-4294967295) filter-list prefix NAME in |
42fc5d26 | 516 | |
c1a54c05 | 517 | .. clicmd:: area (0-4294967295) filter-list prefix NAME out |
42fc5d26 | 518 | |
42fc5d26 | 519 | |
42fc5d26 | 520 | |
42fc5d26 | 521 | |
42fc5d26 | 522 | |
9eb95b3b QY |
523 | Filtering Type-3 summary-LSAs to/from area using prefix lists. This command |
524 | makes sense in ABR only. | |
42fc5d26 | 525 | |
c1a54c05 | 526 | .. clicmd:: area A.B.C.D authentication |
42fc5d26 | 527 | |
c1a54c05 | 528 | .. clicmd:: area (0-4294967295) authentication |
42fc5d26 | 529 | |
42fc5d26 | 530 | |
42fc5d26 | 531 | |
9eb95b3b QY |
532 | Specify that simple password authentication should be used for the given |
533 | area. | |
42fc5d26 | 534 | |
c1a54c05 | 535 | .. clicmd:: area A.B.C.D authentication message-digest |
42fc5d26 | 536 | |
c1a54c05 | 537 | .. clicmd:: area (0-4294967295) authentication message-digest |
42fc5d26 | 538 | |
6ee602cd QY |
539 | Specify that OSPF packets must be authenticated with MD5 HMACs within the |
540 | given area. Keying material must also be configured on a per-interface basis | |
541 | (:clicmd:`ip ospf message-digest-key`). | |
42fc5d26 | 542 | |
6ee602cd QY |
543 | MD5 authentication may also be configured on a per-interface basis |
544 | (:clicmd:`ip ospf authentication message-digest`). Such per-interface | |
545 | settings will override any per-area authentication setting. | |
42fc5d26 | 546 | |
0efdf0fe | 547 | .. _ospf-interface: |
42fc5d26 | 548 | |
e6f1b831 QY |
549 | Interfaces |
550 | ---------- | |
42fc5d26 | 551 | |
c1a54c05 | 552 | .. clicmd:: ip ospf area AREA [ADDR] |
42fc5d26 | 553 | |
42fc5d26 | 554 | |
c1a54c05 | 555 | Enable OSPF on the interface, optionally restricted to just the IP address |
3c07b475 JAG |
556 | given by `ADDR`, putting it in the `AREA` area. If you have a lot of |
557 | interfaces, and/or a lot of subnets, then enabling OSPF via this command | |
558 | instead of (:clicmd:`network A.B.C.D/M area A.B.C.D`) may result in a | |
559 | slight performance improvement. | |
560 | ||
561 | Notice that, mixing both network commands (:clicmd:`network`) and interface | |
562 | commands (:clicmd:`ip ospf`) on the same router is not supported. | |
563 | If (:clicmd:`ip ospf`) is present, (:clicmd:`network`) commands will fail. | |
42fc5d26 | 564 | |
c1a54c05 | 565 | .. clicmd:: ip ospf authentication-key AUTH_KEY |
42fc5d26 | 566 | |
42fc5d26 | 567 | |
c1a54c05 QY |
568 | Set OSPF authentication key to a simple password. After setting `AUTH_KEY`, |
569 | all OSPF packets are authenticated. `AUTH_KEY` has length up to 8 chars. | |
42fc5d26 | 570 | |
c1a54c05 | 571 | Simple text password authentication is insecure and deprecated in favour of |
6ee602cd | 572 | MD5 HMAC authentication. |
42fc5d26 | 573 | |
c1a54c05 | 574 | .. clicmd:: ip ospf authentication message-digest |
42fc5d26 | 575 | |
6ee602cd QY |
576 | Specify that MD5 HMAC authentication must be used on this interface. MD5 |
577 | keying material must also be configured. Overrides any authentication | |
578 | enabled on a per-area basis | |
579 | (:clicmd:`area A.B.C.D authentication message-digest`) | |
42fc5d26 | 580 | |
c1a54c05 QY |
581 | Note that OSPF MD5 authentication requires that time never go backwards |
582 | (correct time is NOT important, only that it never goes backwards), even | |
d1e7591e | 583 | across resets, if ospfd is to be able to promptly reestablish adjacencies |
6ee602cd | 584 | with its neighbours after restarts/reboots. The host should have system time |
d1e7591e | 585 | be set at boot from an external or non-volatile source (e.g. battery backed |
6ee602cd | 586 | clock, NTP, etc.) or else the system clock should be periodically saved to |
d1e7591e | 587 | non-volatile storage and restored at boot if MD5 authentication is to be |
6ee602cd | 588 | expected to work reliably. |
42fc5d26 | 589 | |
c1a54c05 | 590 | .. clicmd:: ip ospf message-digest-key KEYID md5 KEY |
42fc5d26 | 591 | |
42fc5d26 | 592 | |
6ee602cd QY |
593 | Set OSPF authentication key to a cryptographic password. The cryptographic |
594 | algorithm is MD5. | |
42fc5d26 | 595 | |
9eb95b3b QY |
596 | KEYID identifies secret key used to create the message digest. This ID is |
597 | part of the protocol and must be consistent across routers on a link. | |
42fc5d26 | 598 | |
9eb95b3b QY |
599 | KEY is the actual message digest key, of up to 16 chars (larger strings will |
600 | be truncated), and is associated with the given KEYID. | |
42fc5d26 | 601 | |
c1a54c05 | 602 | .. clicmd:: ip ospf cost (1-65535) |
42fc5d26 | 603 | |
42fc5d26 | 604 | |
9eb95b3b QY |
605 | Set link cost for the specified interface. The cost value is set to |
606 | router-LSA's metric field and used for SPF calculation. | |
42fc5d26 | 607 | |
c1a54c05 | 608 | .. clicmd:: ip ospf dead-interval (1-65535) |
42fc5d26 | 609 | |
c1a54c05 | 610 | .. clicmd:: ip ospf dead-interval minimal hello-multiplier (2-20) |
42fc5d26 | 611 | |
42fc5d26 | 612 | |
6ee602cd QY |
613 | Set number of seconds for RouterDeadInterval timer value used for Wait Timer |
614 | and Inactivity Timer. This value must be the same for all routers attached | |
615 | to a common network. The default value is 40 seconds. | |
42fc5d26 | 616 | |
6ee602cd QY |
617 | If 'minimal' is specified instead, then the dead-interval is set to 1 second |
618 | and one must specify a hello-multiplier. The hello-multiplier specifies how | |
619 | many Hellos to send per second, from 2 (every 500ms) to 20 (every 50ms). | |
620 | Thus one can have 1s convergence time for OSPF. If this form is specified, | |
621 | then the hello-interval advertised in Hello packets is set to 0 and the | |
622 | hello-interval on received Hello packets is not checked, thus the | |
623 | hello-multiplier need NOT be the same across multiple routers on a common | |
624 | link. | |
42fc5d26 | 625 | |
c1a54c05 | 626 | .. clicmd:: ip ospf hello-interval (1-65535) |
42fc5d26 | 627 | |
42fc5d26 | 628 | |
c1a54c05 QY |
629 | Set number of seconds for HelloInterval timer value. Setting this value, |
630 | Hello packet will be sent every timer value seconds on the specified interface. | |
631 | This value must be the same for all routers attached to a common network. | |
632 | The default value is 10 seconds. | |
42fc5d26 | 633 | |
6ee602cd QY |
634 | This command has no effect if |
635 | :clicmd:`ip ospf dead-interval minimal hello-multiplier (2-20)` is also | |
c1a54c05 | 636 | specified for the interface. |
42fc5d26 | 637 | |
0c05ceae RW |
638 | .. clicmd:: ip ospf graceful-restart hello-delay (1-1800) |
639 | ||
640 | Set the length of time during which Grace-LSAs are sent at 1-second intervals | |
641 | while coming back up after an unplanned outage. During this time, no hello | |
642 | packets are sent. | |
643 | ||
644 | A higher hello delay will increase the chance that all neighbors are notified | |
645 | about the ongoing graceful restart before receiving a hello packet (which is | |
646 | crucial for the graceful restart to succeed). The hello delay shouldn't be set | |
647 | too high, however, otherwise the adjacencies might time out. As a best practice, | |
648 | it's recommended to set the hello delay and hello interval with the same values. | |
649 | The default value is 10 seconds. | |
650 | ||
78980c28 | 651 | .. clicmd:: ip ospf network (broadcast|non-broadcast|point-to-multipoint|point-to-point [dmvpn]) |
42fc5d26 | 652 | |
56f9b9bf DS |
653 | When configuring a point-to-point network on an interface and the interface |
654 | has a /32 address associated with then OSPF will treat the interface | |
655 | as being `unnumbered`. If you are doing this you *must* set the | |
656 | net.ipv4.conf.<interface name>.rp_filter value to 0. In order for | |
657 | the ospf multicast packets to be delivered by the kernel. | |
658 | ||
78980c28 RD |
659 | When used in a DMVPN network at a spoke, this OSPF will be configured in |
660 | point-to-point, but the HUB will be a point-to-multipoint. To make this | |
661 | topology work, specify the optional 'dmvpn' parameter at the spoke. | |
42fc5d26 | 662 | |
d1e7591e | 663 | Set explicitly network type for specified interface. |
42fc5d26 | 664 | |
c1a54c05 | 665 | .. clicmd:: ip ospf priority (0-255) |
42fc5d26 | 666 | |
42fc5d26 | 667 | |
9eb95b3b QY |
668 | Set RouterPriority integer value. The router with the highest priority will |
669 | be more eligible to become Designated Router. Setting the value to 0, makes | |
670 | the router ineligible to become Designated Router. The default value is 1. | |
42fc5d26 | 671 | |
c1a54c05 | 672 | .. clicmd:: ip ospf retransmit-interval (1-65535) |
42fc5d26 | 673 | |
42fc5d26 | 674 | |
9eb95b3b QY |
675 | Set number of seconds for RxmtInterval timer value. This value is used when |
676 | retransmitting Database Description and Link State Request packets. The | |
677 | default value is 5 seconds. | |
42fc5d26 | 678 | |
7db1c0f0 | 679 | .. clicmd:: ip ospf transmit-delay (1-65535) [A.B.C.D] |
42fc5d26 | 680 | |
42fc5d26 | 681 | |
c1a54c05 | 682 | Set number of seconds for InfTransDelay value. LSAs' age should be |
9eb95b3b | 683 | incremented by this value when transmitting. The default value is 1 second. |
42fc5d26 | 684 | |
29ec6244 IR |
685 | .. clicmd:: ip ospf passive [A.B.C.D] |
686 | ||
687 | Do not speak OSPF on the interface, but do advertise the interface as a stub | |
688 | link in the router-:abbr:`LSA (Link State Advertisement)` for this router. | |
689 | This allows one to advertise addresses on such connected interfaces without | |
690 | having to originate AS-External/Type-5 LSAs (which have global flooding | |
691 | scope) - as would occur if connected addresses were redistributed into | |
692 | OSPF (:ref:`redistribute-routes-to-ospf`). This is the only way to | |
693 | advertise non-OSPF links into stub areas. | |
694 | ||
c1a54c05 | 695 | .. clicmd:: ip ospf area (A.B.C.D|(0-4294967295)) |
42fc5d26 | 696 | |
42fc5d26 | 697 | |
9eb95b3b | 698 | Enable ospf on an interface and set associated area. |
42fc5d26 | 699 | |
243892e0 DA |
700 | OSPF route-map |
701 | ============== | |
702 | ||
703 | Usage of *ospfd*'s route-map support. | |
704 | ||
243892e0 DA |
705 | .. clicmd:: set metric [+|-](0-4294967295) |
706 | ||
707 | Set a metric for matched route when sending announcement. Use plus (+) sign | |
708 | to add a metric value to an existing metric. Use minus (-) sign to | |
709 | substract a metric value from an existing metric. | |
710 | ||
0efdf0fe | 711 | .. _redistribute-routes-to-ospf: |
42fc5d26 | 712 | |
e6f1b831 QY |
713 | Redistribution |
714 | -------------- | |
42fc5d26 | 715 | |
0efdf0fe | 716 | .. _ospf-redistribute: |
42fc5d26 | 717 | |
1e31580f QY |
718 | .. clicmd:: redistribute <babel|bgp|connected|eigrp|isis|kernel|openfabric|ospf|rip|sharp|static|table> [metric-type (1-2)] [metric (0-16777214)] [route-map WORD] |
719 | ||
9eb95b3b QY |
720 | Redistribute routes of the specified protocol or kind into OSPF, with the |
721 | metric type and metric set if specified, filtering the routes using the | |
722 | given route-map if specified. Redistributed routes may also be filtered | |
723 | with distribute-lists, see | |
11ab5329 | 724 | :ref:`ospf distribute-list configuration <ospf-distribute-list>`. |
42fc5d26 | 725 | |
9eb95b3b QY |
726 | Redistributed routes are distributed as into OSPF as Type-5 External LSAs |
727 | into links to areas that accept external routes, Type-7 External LSAs for | |
728 | NSSA areas and are not redistributed at all into Stub areas, where external | |
729 | routes are not permitted. | |
42fc5d26 | 730 | |
29ec6244 IR |
731 | Note that for connected routes, one may instead use the |
732 | :clicmd:`ip ospf passive [A.B.C.D]` configuration. | |
42fc5d26 | 733 | |
c1a54c05 | 734 | .. clicmd:: default-information originate |
42fc5d26 | 735 | |
c1a54c05 | 736 | .. clicmd:: default-information originate metric (0-16777214) |
42fc5d26 | 737 | |
c1a54c05 | 738 | .. clicmd:: default-information originate metric (0-16777214) metric-type (1|2) |
42fc5d26 | 739 | |
c1a54c05 | 740 | .. clicmd:: default-information originate metric (0-16777214) metric-type (1|2) route-map WORD |
42fc5d26 | 741 | |
c1a54c05 | 742 | .. clicmd:: default-information originate always |
42fc5d26 | 743 | |
c1a54c05 | 744 | .. clicmd:: default-information originate always metric (0-16777214) |
42fc5d26 | 745 | |
c1a54c05 | 746 | .. clicmd:: default-information originate always metric (0-16777214) metric-type (1|2) |
42fc5d26 | 747 | |
c1a54c05 | 748 | .. clicmd:: default-information originate always metric (0-16777214) metric-type (1|2) route-map WORD |
42fc5d26 | 749 | |
42fc5d26 | 750 | |
9eb95b3b QY |
751 | Originate an AS-External (type-5) LSA describing a default route into all |
752 | external-routing capable areas, of the specified metric and metric type. If | |
753 | the 'always' keyword is given then the default is always advertised, even | |
754 | when there is no default present in the routing table. | |
42fc5d26 | 755 | |
0efdf0fe | 756 | .. _ospf-distribute-list: |
42fc5d26 | 757 | |
e3cb363a IR |
758 | .. clicmd:: distribute-list NAME out <kernel|connected|static|rip|isis|bgp|eigrp|nhrp|table|vnc|babel|openfabric> |
759 | ||
9eb95b3b | 760 | Apply the access-list filter, NAME, to redistributed routes of the given |
e3cb363a | 761 | type before allowing the routes to be redistributed into OSPF |
9eb95b3b | 762 | (:ref:`ospf redistribution <ospf-redistribute>`). |
42fc5d26 | 763 | |
c1a54c05 | 764 | .. clicmd:: default-metric (0-16777214) |
42fc5d26 | 765 | |
42fc5d26 | 766 | |
c1a54c05 | 767 | .. clicmd:: distance (1-255) |
42fc5d26 | 768 | |
42fc5d26 | 769 | |
c1a54c05 | 770 | .. clicmd:: distance ospf (intra-area|inter-area|external) (1-255) |
42fc5d26 | 771 | |
42fc5d26 | 772 | |
42fc5d26 | 773 | |
10514170 RW |
774 | Graceful Restart |
775 | ================ | |
776 | ||
777 | .. clicmd:: graceful-restart [grace-period (1-1800)] | |
778 | ||
779 | ||
780 | Configure Graceful Restart (RFC 3623) restarting support. | |
781 | When enabled, the default grace period is 120 seconds. | |
782 | ||
783 | To perform a graceful shutdown, the "graceful-restart prepare ip ospf" | |
784 | EXEC-level command needs to be issued before restarting the ospfd daemon. | |
cc1a92d8 | 785 | |
ab749e7e RW |
786 | When Graceful Restart is enabled and the ospfd daemon crashes or is killed |
787 | abruptely (e.g. SIGKILL), it will attempt an unplanned Graceful Restart once | |
788 | it restarts. | |
789 | ||
859bce81 | 790 | .. clicmd:: graceful-restart helper enable [A.B.C.D] |
cc1a92d8 | 791 | |
cc1a92d8 | 792 | |
793 | Configure Graceful Restart (RFC 3623) helper support. | |
794 | By default, helper support is disabled for all neighbours. | |
795 | This config enables/disables helper support on this router | |
796 | for all neighbours. | |
797 | To enable/disable helper support for a specific | |
798 | neighbour, the router-id (A.B.C.D) has to be specified. | |
799 | ||
cc1a92d8 | 800 | .. clicmd:: graceful-restart helper strict-lsa-checking |
801 | ||
cc1a92d8 | 802 | |
803 | If 'strict-lsa-checking' is configured then the helper will | |
804 | abort the Graceful Restart when a LSA change occurs which | |
805 | affects the restarting router. | |
806 | By default 'strict-lsa-checking' is enabled" | |
807 | ||
cc1a92d8 | 808 | .. clicmd:: graceful-restart helper supported-grace-time |
809 | ||
cc1a92d8 | 810 | |
811 | Supports as HELPER for configured grace period. | |
812 | ||
cc1a92d8 | 813 | .. clicmd:: graceful-restart helper planned-only |
814 | ||
cc1a92d8 | 815 | |
816 | It helps to support as HELPER only for planned | |
817 | restarts. By default, it supports both planned and | |
818 | unplanned outages. | |
42fc5d26 | 819 | |
10514170 RW |
820 | |
821 | .. clicmd:: graceful-restart prepare ip ospf | |
822 | ||
823 | ||
824 | Initiate a graceful restart for all OSPF instances configured with the | |
825 | "graceful-restart" command. The ospfd daemon should be restarted during | |
826 | the instance-specific grace period, otherwise the graceful restart will fail. | |
827 | ||
828 | This is an EXEC-level command. | |
829 | ||
830 | ||
0efdf0fe | 831 | .. _showing-ospf-information: |
42fc5d26 | 832 | |
e6f1b831 QY |
833 | Showing Information |
834 | =================== | |
42fc5d26 | 835 | |
0efdf0fe | 836 | .. _show-ip-ospf: |
42fc5d26 | 837 | |
118e4e8c | 838 | .. clicmd:: show ip ospf [vrf <NAME|all>] [json] |
42fc5d26 | 839 | |
c1a54c05 QY |
840 | Show information on a variety of general OSPF and area state and |
841 | configuration information. | |
42fc5d26 | 842 | |
f328dc60 | 843 | .. clicmd:: show ip ospf interface [INTERFACE] [json] |
42fc5d26 | 844 | |
c1a54c05 QY |
845 | Show state and configuration of OSPF the specified interface, or all |
846 | interfaces if no interface is given. | |
42fc5d26 | 847 | |
f328dc60 | 848 | .. clicmd:: show ip ospf neighbor [json] |
42fc5d26 | 849 | |
2e861983 | 850 | .. clicmd:: show ip ospf [vrf <NAME|all>] neighbor INTERFACE [json] |
42fc5d26 | 851 | |
f328dc60 | 852 | .. clicmd:: show ip ospf neighbor detail [json] |
42fc5d26 | 853 | |
2e861983 | 854 | .. clicmd:: show ip ospf [vrf <NAME|all>] neighbor A.B.C.D [detail] [json] |
e8a8b116 | 855 | |
2e861983 | 856 | .. clicmd:: show ip ospf [vrf <NAME|all>] neighbor INTERFACE detail [json] |
42fc5d26 | 857 | |
f328dc60 | 858 | Display lsa information of LSDB. |
859 | Json o/p of this command covers base route information | |
860 | i.e all LSAs except opaque lsa info. | |
42fc5d26 | 861 | |
b131b1ed | 862 | .. clicmd:: show ip ospf [vrf <NAME|all>] database [self-originate] [json] |
42fc5d26 | 863 | |
b131b1ed | 864 | Show the OSPF database summary. |
42fc5d26 | 865 | |
b131b1ed | 866 | .. clicmd:: show ip ospf [vrf <NAME|all>] database max-age [json] |
42fc5d26 | 867 | |
b131b1ed | 868 | Show all MaxAge LSAs present in the OSPF link-state database. |
42fc5d26 | 869 | |
a08f41b9 RW |
870 | .. clicmd:: show ip ospf [vrf <NAME|all>] database detail [LINK-STATE-ID] [adv-router A.B.C.D] [json] |
871 | ||
872 | .. clicmd:: show ip ospf [vrf <NAME|all>] database detail [LINK-STATE-ID] [self-originate] [json] | |
873 | ||
b131b1ed | 874 | .. clicmd:: show ip ospf [vrf <NAME|all>] database (asbr-summary|external|network|router|summary|nssa-external|opaque-link|opaque-area|opaque-as) [LINK-STATE-ID] [adv-router A.B.C.D] [json] |
42fc5d26 | 875 | |
b131b1ed | 876 | .. clicmd:: show ip ospf [vrf <NAME|all>] database (asbr-summary|external|network|router|summary|nssa-external|opaque-link|opaque-area|opaque-as) [LINK-STATE-ID] [self-originate] [json] |
a605d719 | 877 | |
b131b1ed | 878 | Show detailed information about the OSPF link-state database. |
f328dc60 | 879 | |
f328dc60 | 880 | .. clicmd:: show ip ospf route [json] |
42fc5d26 | 881 | |
9eb95b3b QY |
882 | Show the OSPF routing table, as determined by the most recent SPF |
883 | calculation. | |
42fc5d26 | 884 | |
33d7e50d CS |
885 | .. clicmd:: show ip ospf [vrf <NAME|all>] border-routers [json] |
886 | ||
887 | Show the list of ABR and ASBR border routers summary learnt via | |
888 | OSPFv2 Type-3 (Summary LSA) and Type-4 (Summary ASBR LSA). | |
889 | User can get that information as JSON format when ``json`` keyword | |
890 | at the end of cli is presented. | |
891 | ||
cc1a92d8 | 892 | .. clicmd:: show ip ospf graceful-restart helper [detail] [json] |
893 | ||
894 | Displays the Grcaeful Restart Helper details including helper | |
895 | config changes. | |
896 | ||
0efdf0fe | 897 | .. _opaque-lsa: |
42fc5d26 QY |
898 | |
899 | Opaque LSA | |
900 | ========== | |
901 | ||
c1a54c05 | 902 | .. clicmd:: ospf opaque-lsa |
42fc5d26 | 903 | |
c1a54c05 | 904 | .. clicmd:: capability opaque |
42fc5d26 | 905 | |
42fc5d26 | 906 | |
42fc5d26 | 907 | |
85400b29 MS |
908 | *ospfd* supports Opaque LSA (:rfc:`2370`) as partial support for |
909 | MPLS Traffic Engineering LSAs. The opaque-lsa capability must be | |
910 | enabled in the configuration. An alternate command could be | |
911 | "mpls-te on" (:ref:`ospf-traffic-engineering`). Note that FRR | |
912 | offers only partial support for some of the routing protocol | |
913 | extensions that are used with MPLS-TE; it does not support a | |
914 | complete RSVP-TE solution. | |
42fc5d26 | 915 | |
a605d719 | 916 | .. clicmd:: show ip ospf [vrf <NAME|all>] database (opaque-link|opaque-area|opaque-external) |
42fc5d26 | 917 | |
a605d719 | 918 | .. clicmd:: show ip ospf [vrf <NAME|all>] database (opaque-link|opaque-area|opaque-external) LINK-STATE-ID |
42fc5d26 | 919 | |
a605d719 | 920 | .. clicmd:: show ip ospf [vrf <NAME|all>] database (opaque-link|opaque-area|opaque-external) LINK-STATE-ID adv-router ADV-ROUTER |
42fc5d26 | 921 | |
a605d719 | 922 | .. clicmd:: show ip ospf [vrf <NAME|all>] database (opaque-link|opaque-area|opaque-external) adv-router ADV-ROUTER |
42fc5d26 | 923 | |
a605d719 | 924 | .. clicmd:: show ip ospf [vrf <NAME|all>] database (opaque-link|opaque-area|opaque-external) LINK-STATE-ID self-originate |
42fc5d26 | 925 | |
a605d719 | 926 | .. clicmd:: show ip ospf [vrf <NAME|all>] database (opaque-link|opaque-area|opaque-external) self-originate |
42fc5d26 | 927 | |
c1a54c05 | 928 | Show Opaque LSA from the database. |
42fc5d26 | 929 | |
d86760ac CH |
930 | .. clicmd:: show ip ospf (1-65535) reachable-routers |
931 | ||
932 | .. clicmd:: show ip ospf [vrf <NAME|all>] reachable-routers | |
933 | ||
934 | Show routing table of reachable routers. | |
935 | ||
c1a54c05 | 936 | .. _ospf-traffic-engineering: |
42fc5d26 QY |
937 | |
938 | Traffic Engineering | |
939 | =================== | |
940 | ||
85400b29 MS |
941 | .. note:: |
942 | ||
943 | At this time, FRR offers partial support for some of the routing | |
944 | protocol extensions that can be used with MPLS-TE. FRR does not | |
945 | support a complete RSVP-TE solution currently. | |
946 | ||
c1a54c05 | 947 | .. clicmd:: mpls-te on |
42fc5d26 | 948 | |
42fc5d26 | 949 | |
c1a54c05 | 950 | Enable Traffic Engineering LSA flooding. |
42fc5d26 | 951 | |
c1a54c05 | 952 | .. clicmd:: mpls-te router-address <A.B.C.D> |
42fc5d26 | 953 | |
c1a54c05 QY |
954 | Configure stable IP address for MPLS-TE. This IP address is then advertise |
955 | in Opaque LSA Type-10 TLV=1 (TE) option 1 (Router-Address). | |
42fc5d26 | 956 | |
c1a54c05 | 957 | .. clicmd:: mpls-te inter-as area <area-id>|as |
42fc5d26 | 958 | |
42fc5d26 | 959 | |
c1a54c05 QY |
960 | Enable :rfc:`5392` support - Inter-AS TE v2 - to flood Traffic Engineering |
961 | parameters of Inter-AS link. 2 modes are supported: AREA and AS; LSA are | |
962 | flood in AREA <area-id> with Opaque Type-10, respectively in AS with Opaque | |
963 | Type-11. In all case, Opaque-LSA TLV=6. | |
42fc5d26 | 964 | |
9977e56c | 965 | .. clicmd:: mpls-te export |
f173deb3 OD |
966 | |
967 | Export Traffic Engineering Data Base to other daemons through the ZAPI | |
968 | Opaque Link State messages. | |
969 | ||
c1a54c05 | 970 | .. clicmd:: show ip ospf mpls-te interface |
42fc5d26 | 971 | |
c1a54c05 | 972 | .. clicmd:: show ip ospf mpls-te interface INTERFACE |
42fc5d26 | 973 | |
c1a54c05 | 974 | Show MPLS Traffic Engineering parameters for all or specified interface. |
42fc5d26 | 975 | |
c1a54c05 | 976 | .. clicmd:: show ip ospf mpls-te router |
42fc5d26 | 977 | |
c1a54c05 | 978 | Show Traffic Engineering router parameters. |
42fc5d26 | 979 | |
f173deb3 OD |
980 | .. clicmd:: show ip ospf mpls-te database [verbose|json] |
981 | ||
f173deb3 OD |
982 | .. clicmd:: show ip ospf mpls-te database vertex [self-originate|adv-router ADV-ROUTER] [verbose|json] |
983 | ||
f173deb3 OD |
984 | .. clicmd:: show ip ospf mpls-te database edge [A.B.C.D] [verbose|json] |
985 | ||
f173deb3 OD |
986 | .. clicmd:: show ip ospf mpls-te database subnet [A.B.C.D/M] [verbose|json] |
987 | ||
988 | Show Traffic Engineering Database | |
989 | ||
0efdf0fe | 990 | .. _router-information: |
42fc5d26 QY |
991 | |
992 | Router Information | |
993 | ================== | |
994 | ||
ddd73a96 | 995 | .. clicmd:: router-info [as | area] |
42fc5d26 | 996 | |
42fc5d26 | 997 | |
c1a54c05 | 998 | Enable Router Information (:rfc:`4970`) LSA advertisement with AS scope |
ddd73a96 OD |
999 | (default) or Area scope flooding when area is specified. Old syntax |
1000 | `router-info area <A.B.C.D>` is always supported but mark as deprecated | |
1001 | as the area ID is no more necessary. Indeed, router information support | |
1002 | multi-area and detect automatically the areas. | |
42fc5d26 | 1003 | |
c1a54c05 | 1004 | .. clicmd:: pce address <A.B.C.D> |
42fc5d26 | 1005 | |
42fc5d26 | 1006 | |
c1a54c05 | 1007 | .. clicmd:: pce domain as (0-65535) |
42fc5d26 | 1008 | |
42fc5d26 | 1009 | |
c1a54c05 | 1010 | .. clicmd:: pce neighbor as (0-65535) |
42fc5d26 | 1011 | |
42fc5d26 | 1012 | |
c1a54c05 | 1013 | .. clicmd:: pce flag BITPATTERN |
42fc5d26 | 1014 | |
42fc5d26 | 1015 | |
c1a54c05 | 1016 | .. clicmd:: pce scope BITPATTERN |
42fc5d26 | 1017 | |
42fc5d26 | 1018 | |
9eb95b3b | 1019 | The commands are conform to :rfc:`5088` and allow OSPF router announce Path |
d1e7591e QY |
1020 | Computation Element (PCE) capabilities through the Router Information (RI) |
1021 | LSA. Router Information must be enable prior to this. The command set/unset | |
1022 | respectively the PCE IP address, Autonomous System (AS) numbers of | |
9eb95b3b QY |
1023 | controlled domains, neighbor ASs, flag and scope. For flag and scope, please |
1024 | refer to :rfc`5088` for the BITPATTERN recognition. Multiple 'pce neighbor' | |
1025 | command could be specified in order to specify all PCE neighbours. | |
42fc5d26 | 1026 | |
c1a54c05 | 1027 | .. clicmd:: show ip ospf router-info |
42fc5d26 | 1028 | |
c1a54c05 | 1029 | Show Router Capabilities flag. |
9eb95b3b | 1030 | |
c1a54c05 | 1031 | .. clicmd:: show ip ospf router-info pce |
42fc5d26 | 1032 | |
c1a54c05 | 1033 | Show Router Capabilities PCE parameters. |
42fc5d26 | 1034 | |
50cc7127 QY |
1035 | Segment Routing |
1036 | =============== | |
1037 | ||
6f751f14 OD |
1038 | This is an EXPERIMENTAL support of Segment Routing as per `RFC 8665` for MPLS |
1039 | dataplane. | |
50cc7127 | 1040 | |
03750f1e | 1041 | .. clicmd:: segment-routing on |
50cc7127 QY |
1042 | |
1043 | Enable Segment Routing. Even if this also activate routing information | |
1044 | support, it is preferable to also activate routing information, and set | |
1045 | accordingly the Area or AS flooding. | |
1046 | ||
6443a4be | 1047 | .. clicmd:: segment-routing global-block (16-1048575) (16-1048575) [local-block (16-1048575) (16-1048575)] |
50cc7127 | 1048 | |
6443a4be EDP |
1049 | Set the Segment Routing Global Block i.e. the label range used by MPLS to |
1050 | store label in the MPLS FIB for Prefix SID. Optionally also set the Local | |
1051 | Block, i.e. the label range used for Adjacency SID. The negative version | |
1052 | of the command always unsets both ranges. | |
6f751f14 | 1053 | |
03750f1e | 1054 | .. clicmd:: segment-routing node-msd (1-16) |
50cc7127 QY |
1055 | |
1056 | Fix the Maximum Stack Depth supported by the router. The value depend of the | |
1057 | MPLS dataplane. E.g. for Linux kernel, since version 4.13 it is 32. | |
1058 | ||
03750f1e | 1059 | .. clicmd:: segment-routing prefix A.B.C.D/M [index (0-65535)|no-php-flag|explicit-null] |
50cc7127 | 1060 | |
9eb95b3b QY |
1061 | prefix with /32 corresponding to a loopback interface are currently |
1062 | supported. The 'no-php-flag' means NO Penultimate Hop Popping that allows SR | |
f786c4d7 OD |
1063 | node to request to its neighbor to not pop the label. The 'explicit-null' means that |
1064 | neighbor nodes must swap the incoming label by the MPLS Explicit Null label | |
1065 | before delivering the packet. | |
50cc7127 | 1066 | |
e3e3afff | 1067 | .. clicmd:: show ip ospf database segment-routing <adv-router ADVROUTER|self-originate> [json] |
50cc7127 | 1068 | |
d1e7591e | 1069 | Show Segment Routing Data Base, all SR nodes, specific advertised router or |
e3e3afff QY |
1070 | self router. Optional JSON output can be obtained by appending 'json' to the |
1071 | end of the command. | |
50cc7127 | 1072 | |
077abf3b | 1073 | External Route Summarisation |
1074 | ============================ | |
1075 | This feature summarises originated external LSAs(Type-5 and Type-7). | |
1076 | Summary Route will be originated on-behalf of all matched external LSAs. | |
1077 | ||
03750f1e | 1078 | .. clicmd:: summary-address A.B.C.D/M [tag (1-4294967295)] |
077abf3b | 1079 | |
1080 | This command enable/disables summarisation for the configured address | |
1081 | range. Tag is the optional parameter. If tag configured Summary route | |
1082 | will be originated with the configured tag. | |
1083 | ||
03750f1e | 1084 | .. clicmd:: summary-address A.B.C.D/M no-advertise |
077abf3b | 1085 | |
1086 | This command to ensure not advertise the summary lsa for the matched | |
1087 | external LSAs. | |
1088 | ||
077abf3b | 1089 | .. clicmd:: aggregation timer (5-1800) |
1090 | ||
1091 | Configure aggregation delay timer interval. Summarisation starts only after | |
94184417 | 1092 | this delay timer expiry. By default, delay interval is 5 seconds. |
077abf3b | 1093 | |
077abf3b | 1094 | |
94184417 | 1095 | The no form of the command resets the aggregation delay interval to default |
1096 | value. | |
077abf3b | 1097 | |
077abf3b | 1098 | .. clicmd:: show ip ospf [vrf <NAME|all>] summary-address [detail] [json] |
1099 | ||
1100 | Show configuration for display all configured summary routes with | |
1101 | matching external LSA information. | |
1102 | ||
7fd0729f G |
1103 | TI-LFA |
1104 | ====== | |
1105 | ||
1106 | Experimental support for Topology Independent LFA (Loop-Free Alternate), see | |
1107 | for example 'draft-bashandy-rtgwg-segment-routing-ti-lfa-05'. Note that | |
1108 | TI-LFA requires a proper Segment Routing configuration. | |
1109 | ||
385a1e07 | 1110 | .. clicmd:: fast-reroute ti-lfa [node-protection] |
7fd0729f G |
1111 | |
1112 | Configured on the router level. Activates TI-LFA for all interfaces. | |
7fd0729f | 1113 | |
3e94c9a4 G |
1114 | Note that so far only P2P interfaces are supported. |
1115 | ||
cb00030f IR |
1116 | .. _debugging-ospf: |
1117 | ||
42fc5d26 QY |
1118 | Debugging OSPF |
1119 | ============== | |
1120 | ||
e9212498 | 1121 | .. clicmd:: debug ospf [(1-65535)] bfd |
e5c2d3a8 RZ |
1122 | |
1123 | Enable or disable debugging for BFD events. This will show BFD integration | |
1124 | library messages and OSPF BFD integration messages that are mostly state | |
1125 | transitions and validation problems. | |
1126 | ||
e9212498 | 1127 | .. clicmd:: debug ospf [(1-65535)] client-api |
a6c39c3d CH |
1128 | |
1129 | Show debug information for the OSPF opaque data client API. | |
1130 | ||
e9212498 | 1131 | .. clicmd:: debug ospf [(1-65535)] default-information |
42fc5d26 | 1132 | |
e9212498 | 1133 | Show debug information of default information |
42fc5d26 | 1134 | |
e9212498 | 1135 | .. clicmd:: debug ospf [(1-65535)] packet (hello|dd|ls-request|ls-update|ls-ack|all) (send|recv) [detail] |
42fc5d26 | 1136 | |
42fc5d26 | 1137 | |
e9212498 | 1138 | Dump Packet for debugging |
42fc5d26 | 1139 | |
e9212498 | 1140 | .. clicmd:: debug ospf [(1-65535)] ism [status|events|timers] |
42fc5d26 | 1141 | |
42fc5d26 | 1142 | |
42fc5d26 | 1143 | |
e9212498 | 1144 | Show debug information of Interface State Machine |
42fc5d26 | 1145 | |
e9212498 | 1146 | .. clicmd:: debug ospf [(1-65535)] nsm [status|events|timers] |
42fc5d26 | 1147 | |
42fc5d26 | 1148 | |
42fc5d26 | 1149 | |
c1a54c05 | 1150 | Show debug information of Network State Machine |
42fc5d26 | 1151 | |
e9212498 | 1152 | .. clicmd:: debug ospf [(1-65535)] event |
42fc5d26 | 1153 | |
42fc5d26 | 1154 | |
c1a54c05 | 1155 | Show debug information of OSPF event |
42fc5d26 | 1156 | |
e9212498 | 1157 | .. clicmd:: debug ospf [(1-65535)] nssa |
42fc5d26 | 1158 | |
42fc5d26 | 1159 | |
c1a54c05 | 1160 | Show debug information about Not So Stub Area |
42fc5d26 | 1161 | |
e9212498 MK |
1162 | .. clicmd:: debug ospf [(1-65535)] ldp-sync |
1163 | ||
1164 | Show debug information about LDP-Sync | |
42fc5d26 | 1165 | |
e9212498 | 1166 | .. clicmd:: debug ospf [(1-65535)] lsa [aggregate|flooding|generate|install|refresh] |
42fc5d26 | 1167 | |
42fc5d26 | 1168 | |
42fc5d26 | 1169 | |
c1a54c05 | 1170 | Show debug detail of Link State messages |
42fc5d26 | 1171 | |
e9212498 MK |
1172 | .. clicmd:: debug ospf [(1-65535)] sr |
1173 | ||
1174 | Show debug information about Segment Routing | |
1175 | ||
1176 | .. clicmd:: debug ospf [(1-65535)] te | |
42fc5d26 | 1177 | |
42fc5d26 | 1178 | |
c1a54c05 | 1179 | Show debug information about Traffic Engineering LSA |
42fc5d26 | 1180 | |
e9212498 | 1181 | .. clicmd:: debug ospf [(1-65535)] ti-lfa |
42fc5d26 | 1182 | |
e9212498 MK |
1183 | Show debug information about SR TI-LFA |
1184 | ||
1185 | .. clicmd:: debug ospf [(1-65535)] zebra [interface|redistribute] | |
42fc5d26 | 1186 | |
42fc5d26 | 1187 | |
42fc5d26 | 1188 | |
c1a54c05 | 1189 | Show debug information of ZEBRA API |
42fc5d26 | 1190 | |
e9212498 | 1191 | .. clicmd:: debug ospf [(1-65535)] graceful-restart |
cc1a92d8 | 1192 | |
cc1a92d8 | 1193 | |
1194 | Enable/disable debug information for OSPF Graceful Restart Helper | |
1195 | ||
c1a54c05 | 1196 | .. clicmd:: show debugging ospf |
42fc5d26 | 1197 | |
077abf3b | 1198 | |
b832909b QY |
1199 | |
1200 | Sample Configuration | |
1201 | ==================== | |
42fc5d26 QY |
1202 | |
1203 | A simple example, with MD5 authentication enabled: | |
1204 | ||
9eb95b3b | 1205 | .. code-block:: frr |
42fc5d26 | 1206 | |
c1a54c05 QY |
1207 | ! |
1208 | interface bge0 | |
1209 | ip ospf authentication message-digest | |
1210 | ip ospf message-digest-key 1 md5 ABCDEFGHIJK | |
1211 | ! | |
1212 | router ospf | |
1213 | network 192.168.0.0/16 area 0.0.0.1 | |
1214 | area 0.0.0.1 authentication message-digest | |
a8c90e15 | 1215 | |
42fc5d26 | 1216 | |
d50b2aa0 | 1217 | An :abbr:`ABR` router, with MD5 authentication and performing summarisation |
42fc5d26 QY |
1218 | of networks between the areas: |
1219 | ||
9eb95b3b | 1220 | .. code-block:: frr |
42fc5d26 | 1221 | |
c1a54c05 QY |
1222 | ! |
1223 | password ABCDEF | |
1224 | log file /var/log/frr/ospfd.log | |
1225 | service advanced-vty | |
1226 | ! | |
1227 | interface eth0 | |
1228 | ip ospf authentication message-digest | |
1229 | ip ospf message-digest-key 1 md5 ABCDEFGHIJK | |
1230 | ! | |
1231 | interface ppp0 | |
29ec6244 | 1232 | ip ospf passive |
c1a54c05 QY |
1233 | ! |
1234 | interface br0 | |
1235 | ip ospf authentication message-digest | |
1236 | ip ospf message-digest-key 2 md5 XYZ12345 | |
1237 | ! | |
1238 | router ospf | |
1239 | ospf router-id 192.168.0.1 | |
1240 | redistribute connected | |
c1a54c05 QY |
1241 | network 192.168.0.0/24 area 0.0.0.0 |
1242 | network 10.0.0.0/16 area 0.0.0.0 | |
1243 | network 192.168.1.0/24 area 0.0.0.1 | |
1244 | area 0.0.0.0 authentication message-digest | |
1245 | area 0.0.0.0 range 10.0.0.0/16 | |
1246 | area 0.0.0.0 range 192.168.0.0/24 | |
1247 | area 0.0.0.1 authentication message-digest | |
1248 | area 0.0.0.1 range 10.2.0.0/16 | |
1249 | ! | |
a8c90e15 | 1250 | |
42fc5d26 QY |
1251 | |
1252 | A Traffic Engineering configuration, with Inter-ASv2 support. | |
1253 | ||
9eb95b3b QY |
1254 | First, the :file:`zebra.conf` part: |
1255 | ||
1256 | .. code-block:: frr | |
c1a54c05 | 1257 | |
c1a54c05 QY |
1258 | interface eth0 |
1259 | ip address 198.168.1.1/24 | |
612b3314 QY |
1260 | link-params |
1261 | enable | |
1262 | admin-grp 0xa1 | |
1263 | metric 100 | |
1264 | max-bw 1.25e+07 | |
1265 | max-rsv-bw 1.25e+06 | |
1266 | unrsv-bw 0 1.25e+06 | |
1267 | unrsv-bw 1 1.25e+06 | |
1268 | unrsv-bw 2 1.25e+06 | |
1269 | unrsv-bw 3 1.25e+06 | |
1270 | unrsv-bw 4 1.25e+06 | |
1271 | unrsv-bw 5 1.25e+06 | |
1272 | unrsv-bw 6 1.25e+06 | |
1273 | unrsv-bw 7 1.25e+06 | |
c1a54c05 QY |
1274 | ! |
1275 | interface eth1 | |
1276 | ip address 192.168.2.1/24 | |
612b3314 QY |
1277 | link-params |
1278 | enable | |
1279 | metric 10 | |
1280 | max-bw 1.25e+07 | |
1281 | max-rsv-bw 1.25e+06 | |
1282 | unrsv-bw 0 1.25e+06 | |
1283 | unrsv-bw 1 1.25e+06 | |
1284 | unrsv-bw 2 1.25e+06 | |
1285 | unrsv-bw 3 1.25e+06 | |
1286 | unrsv-bw 4 1.25e+06 | |
1287 | unrsv-bw 5 1.25e+06 | |
1288 | unrsv-bw 6 1.25e+06 | |
1289 | unrsv-bw 7 1.25e+06 | |
1290 | neighbor 192.168.2.2 as 65000 | |
1291 | hostname HOSTNAME | |
1292 | password PASSWORD | |
1293 | log file /var/log/zebra.log | |
1294 | ! | |
1295 | interface eth0 | |
1296 | ip address 198.168.1.1/24 | |
50cc7127 QY |
1297 | link-params |
1298 | enable | |
1299 | admin-grp 0xa1 | |
1300 | metric 100 | |
1301 | max-bw 1.25e+07 | |
1302 | max-rsv-bw 1.25e+06 | |
1303 | unrsv-bw 0 1.25e+06 | |
1304 | unrsv-bw 1 1.25e+06 | |
1305 | unrsv-bw 2 1.25e+06 | |
1306 | unrsv-bw 3 1.25e+06 | |
1307 | unrsv-bw 4 1.25e+06 | |
1308 | unrsv-bw 5 1.25e+06 | |
1309 | unrsv-bw 6 1.25e+06 | |
1310 | unrsv-bw 7 1.25e+06 | |
612b3314 QY |
1311 | ! |
1312 | interface eth1 | |
1313 | ip address 192.168.2.1/24 | |
50cc7127 QY |
1314 | link-params |
1315 | enable | |
1316 | metric 10 | |
1317 | max-bw 1.25e+07 | |
1318 | max-rsv-bw 1.25e+06 | |
1319 | unrsv-bw 0 1.25e+06 | |
1320 | unrsv-bw 1 1.25e+06 | |
1321 | unrsv-bw 2 1.25e+06 | |
1322 | unrsv-bw 3 1.25e+06 | |
1323 | unrsv-bw 4 1.25e+06 | |
1324 | unrsv-bw 5 1.25e+06 | |
1325 | unrsv-bw 6 1.25e+06 | |
1326 | unrsv-bw 7 1.25e+06 | |
1327 | neighbor 192.168.2.2 as 65000 | |
c1a54c05 | 1328 | |
9eb95b3b QY |
1329 | Then the :file:`ospfd.conf` itself: |
1330 | ||
1331 | .. code-block:: frr | |
c1a54c05 QY |
1332 | |
1333 | hostname HOSTNAME | |
1334 | password PASSWORD | |
1335 | log file /var/log/ospfd.log | |
1336 | ! | |
1337 | ! | |
1338 | interface eth0 | |
1339 | ip ospf hello-interval 60 | |
1340 | ip ospf dead-interval 240 | |
1341 | ! | |
1342 | interface eth1 | |
1343 | ip ospf hello-interval 60 | |
1344 | ip ospf dead-interval 240 | |
1345 | ! | |
1346 | ! | |
1347 | router ospf | |
1348 | ospf router-id 192.168.1.1 | |
1349 | network 192.168.0.0/16 area 1 | |
1350 | ospf opaque-lsa | |
42fc5d26 QY |
1351 | mpls-te |
1352 | mpls-te router-address 192.168.1.1 | |
1353 | mpls-te inter-as area 1 | |
c1a54c05 QY |
1354 | ! |
1355 | line vty | |
a8c90e15 | 1356 | |
d1e7591e | 1357 | A router information example with PCE advertisement: |
42fc5d26 | 1358 | |
9eb95b3b | 1359 | .. code-block:: frr |
42fc5d26 | 1360 | |
c1a54c05 QY |
1361 | ! |
1362 | router ospf | |
1363 | ospf router-id 192.168.1.1 | |
1364 | network 192.168.0.0/16 area 1 | |
1365 | capability opaque | |
42fc5d26 QY |
1366 | mpls-te |
1367 | mpls-te router-address 192.168.1.1 | |
c1a54c05 | 1368 | router-info area 0.0.0.1 |
42fc5d26 QY |
1369 | pce address 192.168.1.1 |
1370 | pce flag 0x80 | |
1371 | pce domain as 65400 | |
1372 | pce neighbor as 65500 | |
1373 | pce neighbor as 65200 | |
1374 | pce scope 0x80 | |
c1a54c05 | 1375 | ! |