blob: 1cc7973a55f2f7a5d243e40ffc3418c231641595 [file] [log] [blame]
Olivier Dugeonec04b9f2016-04-19 19:18:18 +02001
Paul Jakmaf912cb42006-07-27 23:30:16 +00002@cindex OSPFv2
paul76b89b42004-11-06 17:13:09 +00003@node OSPFv2
paul718e3742002-12-13 20:15:29 +00004@chapter OSPFv2
5
paule5b308d2005-10-29 20:19:49 +00006@acronym{OSPF,Open Shortest Path First} version 2 is a routing protocol
7which is described in @cite{RFC2328, OSPF Version 2}. OSPF is an
Paul Jakmaf912cb42006-07-27 23:30:16 +00008@acronym{IGP,Interior Gateway Protocol}. Compared with @acronym{RIP},
paule5b308d2005-10-29 20:19:49 +00009@acronym{OSPF} can provide scalable network support and faster
10convergence times. OSPF is widely used in large networks such as
11@acronym{ISP,Internet Service Provider} backbone and enterprise
12networks.
paul718e3742002-12-13 20:15:29 +000013
14@menu
Paul Jakmae56aab92015-10-20 16:14:56 +010015* OSPF Fundamentals::
paul718e3742002-12-13 20:15:29 +000016* Configuring ospfd::
17* OSPF router::
18* OSPF area::
19* OSPF interface::
20* Redistribute routes to OSPF::
21* Showing OSPF information::
Olivier Dugeonec04b9f2016-04-19 19:18:18 +020022* Opaque LSA::
23* OSPF Traffic Engineering::
24* Router Information::
paul718e3742002-12-13 20:15:29 +000025* Debugging OSPF::
paule5b308d2005-10-29 20:19:49 +000026* OSPF Configuration Examples::
paul718e3742002-12-13 20:15:29 +000027@end menu
28
Paul Jakmae56aab92015-10-20 16:14:56 +010029@include ospf_fundamentals.texi
30
paul76b89b42004-11-06 17:13:09 +000031@node Configuring ospfd
paul718e3742002-12-13 20:15:29 +000032@section Configuring ospfd
33
paule5b308d2005-10-29 20:19:49 +000034There are no @command{ospfd} specific options. Common options can be
paul718e3742002-12-13 20:15:29 +000035specified (@pxref{Common Invocation Options}) to @command{ospfd}.
paule5b308d2005-10-29 20:19:49 +000036@command{ospfd} needs to acquire interface information from
37@command{zebra} in order to function. Therefore @command{zebra} must be
38running before invoking @command{ospfd}. Also, if @command{zebra} is
39restarted then @command{ospfd} must be too.
paul718e3742002-12-13 20:15:29 +000040
paule5b308d2005-10-29 20:19:49 +000041Like other daemons, @command{ospfd} configuration is done in @acronym{OSPF}
paul718e3742002-12-13 20:15:29 +000042specific configuration file @file{ospfd.conf}.
43
paul76b89b42004-11-06 17:13:09 +000044@node OSPF router
paul718e3742002-12-13 20:15:29 +000045@section OSPF router
46
47To start OSPF process you have to specify the OSPF router. As of this
48writing, @command{ospfd} does not support multiple OSPF processes.
49
50@deffn Command {router ospf} {}
51@deffnx Command {no router ospf} {}
52Enable or disable the OSPF process. @command{ospfd} does not yet
53support multiple OSPF processes. So you can not specify an OSPF process
54number.
55@end deffn
56
57@deffn {OSPF Command} {ospf router-id @var{a.b.c.d}} {}
58@deffnx {OSPF Command} {no ospf router-id} {}
Paul Jakmac3eab602006-07-28 04:42:39 +000059@anchor{ospf router-id}This sets the router-ID of the OSPF process. The
60router-ID may be an IP address of the router, but need not be - it can
61be any arbitrary 32bit number. However it MUST be unique within the
62entire OSPF domain to the OSPF speaker - bad things will happen if
63multiple OSPF speakers are configured with the same router-ID! If one
64is not specified then @command{ospfd} will obtain a router-ID
65automatically from @command{zebra}.
paul718e3742002-12-13 20:15:29 +000066@end deffn
67
68@deffn {OSPF Command} {ospf abr-type @var{type}} {}
69@deffnx {OSPF Command} {no ospf abr-type @var{type}} {}
Paul Jakmaf912cb42006-07-27 23:30:16 +000070@var{type} can be cisco|ibm|shortcut|standard. The "Cisco" and "IBM" types
71are equivalent.
72
73The OSPF standard for ABR behaviour does not allow an ABR to consider
74routes through non-backbone areas when its links to the backbone are
75down, even when there are other ABRs in attached non-backbone areas
76which still can reach the backbone - this restriction exists primarily
77to ensure routing-loops are avoided.
78
79With the "Cisco" or "IBM" ABR type, the default in this release of
80Quagga, this restriction is lifted, allowing an ABR to consider
81summaries learnt from other ABRs through non-backbone areas, and hence
82route via non-backbone areas as a last resort when, and only when,
83backbone links are down.
84
85Note that areas with fully-adjacent virtual-links are considered to be
86"transit capable" and can always be used to route backbone traffic, and
87hence are unaffected by this setting (@pxref{OSPF virtual-link}).
paule5b308d2005-10-29 20:19:49 +000088
pauld4f50312003-01-22 19:26:00 +000089More information regarding the behaviour controlled by this command can
paule5b308d2005-10-29 20:19:49 +000090be found in @cite{RFC 3509, Alternative Implementations of OSPF Area
91Border Routers}, and @cite{draft-ietf-ospf-shortcut-abr-02.txt}.
92
93Quote: "Though the definition of the @acronym{ABR,Area Border Router}
pauld4f50312003-01-22 19:26:00 +000094in the OSPF specification does not require a router with multiple
95attached areas to have a backbone connection, it is actually
96necessary to provide successful routing to the inter-area and
97external destinations. If this requirement is not met, all traffic
98destined for the areas not connected to such an ABR or out of the
99OSPF domain, is dropped. This document describes alternative ABR
100behaviors implemented in Cisco and IBM routers."
paul718e3742002-12-13 20:15:29 +0000101@end deffn
102
103@deffn {OSPF Command} {ospf rfc1583compatibility} {}
104@deffnx {OSPF Command} {no ospf rfc1583compatibility} {}
Paul Jakmaf912cb42006-07-27 23:30:16 +0000105@cite{RFC2328}, the sucessor to @cite{RFC1583}, suggests according
paule5b308d2005-10-29 20:19:49 +0000106to section G.2 (changes) in section 16.4 a change to the path
107preference algorithm that prevents possible routing loops that were
108possible in the old version of OSPFv2. More specifically it demands
Alexandre Chappuis37075da2011-09-13 16:33:45 +0400109that inter-area paths and intra-area backbone path are now of equal preference
paule5b308d2005-10-29 20:19:49 +0000110but still both preferred to external paths.
111
112This command should NOT be set normally.
paul718e3742002-12-13 20:15:29 +0000113@end deffn
114
Andrew J. Schorrd7e60dd2006-06-29 20:20:52 +0000115@deffn {OSPF Command} {log-adjacency-changes [detail]} {}
116@deffnx {OSPF Command} {no log-adjacency-changes [detail]} {}
117Configures ospfd to log changes in adjacency. With the optional
118detail argument, all changes in adjacency status are shown. Without detail,
119only changes to full or regressions are shown.
120@end deffn
121
Paul Jakmaf912cb42006-07-27 23:30:16 +0000122@deffn {OSPF Command} {passive-interface @var{interface}} {}
123@deffnx {OSPF Command} {no passive-interface @var{interface}} {}
Paul Jakmac3eab602006-07-28 04:42:39 +0000124@anchor{OSPF passive-interface} Do not speak OSPF interface on the
125given interface, but do advertise the interface as a stub link in the
126router-@acronym{LSA,Link State Advertisement} for this router. This
127allows one to advertise addresses on such connected interfaces without
128having to originate AS-External/Type-5 LSAs (which have global flooding
129scope) - as would occur if connected addresses were redistributed into
130OSPF (@pxref{Redistribute routes to OSPF})@. This is the only way to
131advertise non-OSPF links into stub areas.
paul718e3742002-12-13 20:15:29 +0000132@end deffn
133
paule5b308d2005-10-29 20:19:49 +0000134@deffn {OSPF Command} {timers throttle spf @var{delay} @var{initial-holdtime} @var{max-holdtime}} {}
135@deffnx {OSPF Command} {no timers throttle spf} {}
136This command sets the initial @var{delay}, the @var{initial-holdtime}
137and the @var{maximum-holdtime} between when SPF is calculated and the
138event which triggered the calculation. The times are specified in
139milliseconds and must be in the range of 0 to 600000 milliseconds.
140
141The @var{delay} specifies the minimum amount of time to delay SPF
142calculation (hence it affects how long SPF calculation is delayed after
143an event which occurs outside of the holdtime of any previous SPF
144calculation, and also serves as a minimum holdtime).
145
146Consecutive SPF calculations will always be seperated by at least
147'hold-time' milliseconds. The hold-time is adaptive and initially is
148set to the @var{initial-holdtime} configured with the above command.
149Events which occur within the holdtime of the previous SPF calculation
150will cause the holdtime to be increased by @var{initial-holdtime}, bounded
151by the @var{maximum-holdtime} configured with this command. If the adaptive
152hold-time elapses without any SPF-triggering event occuring then
153the current holdtime is reset to the @var{initial-holdtime}. The current
154holdtime can be viewed with @ref{show ip ospf}, where it is expressed as
155a multiplier of the @var{initial-holdtime}.
156
157@example
158@group
159router ospf
160 timers throttle spf 200 400 10000
161@end group
162@end example
163
164In this example, the @var{delay} is set to 200ms, the @var{initial
165holdtime} is set to 400ms and the @var{maximum holdtime} to 10s. Hence
166there will always be at least 200ms between an event which requires SPF
167calculation and the actual SPF calculation. Further consecutive SPF
168calculations will always be seperated by between 400ms to 10s, the
169hold-time increasing by 400ms each time an SPF-triggering event occurs
170within the hold-time of the previous SPF calculation.
171
172This command supercedes the @command{timers spf} command in previous Quagga
173releases.
paul718e3742002-12-13 20:15:29 +0000174@end deffn
175
paule5b308d2005-10-29 20:19:49 +0000176@deffn {OSPF Command} {max-metric router-lsa [on-startup|on-shutdown] <5-86400>} {}
177@deffnx {OSPF Command} {max-metric router-lsa administrative} {}
178@deffnx {OSPF Command} {no max-metric router-lsa [on-startup|on-shutdown|administrative]} {}
179This enables @cite{RFC3137, OSPF Stub Router Advertisement} support,
180where the OSPF process describes its transit links in its router-LSA as
181having infinite distance so that other routers will avoid calculating
182transit paths through the router while still being able to reach
183networks through the router.
184
185This support may be enabled administratively (and indefinitely) or
186conditionally. Conditional enabling of max-metric router-lsas can be
187for a period of seconds after startup and/or for a period of seconds
188prior to shutdown.
189
190Enabling this for a period after startup allows OSPF to converge fully
191first without affecting any existing routes used by other routers,
192while still allowing any connected stub links and/or redistributed
193routes to be reachable. Enabling this for a period of time in advance
194of shutdown allows the router to gracefully excuse itself from the OSPF
195domain.
196
197Enabling this feature administratively allows for administrative
198intervention for whatever reason, for an indefinite period of time.
199Note that if the configuration is written to file, this administrative
200form of the stub-router command will also be written to file. If
201@command{ospfd} is restarted later, the command will then take effect
202until manually deconfigured.
203
204Configured state of this feature as well as current status, such as the
205number of second remaining till on-startup or on-shutdown ends, can be
206viewed with the @ref{show ip ospf} command.
paul718e3742002-12-13 20:15:29 +0000207@end deffn
208
paule5b308d2005-10-29 20:19:49 +0000209@deffn {OSPF Command} {auto-cost reference-bandwidth <1-4294967>} {}
210@deffnx {OSPF Command} {no auto-cost reference-bandwidth} {}
Paul Jakmac3eab602006-07-28 04:42:39 +0000211@anchor{OSPF auto-cost reference-bandwidth}This sets the reference
212bandwidth for cost calculations, where this bandwidth is considered
213equivalent to an OSPF cost of 1, specified in Mbits/s. The default is
214100Mbit/s (i.e. a link of bandwidth 100Mbit/s or higher will have a
215cost of 1. Cost of lower bandwidth links will be scaled with reference
216to this cost).
paule5b308d2005-10-29 20:19:49 +0000217
218This configuration setting MUST be consistent across all routers within the
219OSPF domain.
paul718e3742002-12-13 20:15:29 +0000220@end deffn
221
222@deffn {OSPF Command} {network @var{a.b.c.d/m} area @var{a.b.c.d}} {}
223@deffnx {OSPF Command} {network @var{a.b.c.d/m} area @var{<0-4294967295>}} {}
224@deffnx {OSPF Command} {no network @var{a.b.c.d/m} area @var{a.b.c.d}} {}
225@deffnx {OSPF Command} {no network @var{a.b.c.d/m} area @var{<0-4294967295>}} {}
Paul Jakma8a667cf2009-08-27 16:51:42 +0100226@anchor{OSPF network command}
hassoa5b2b592004-04-17 10:09:29 +0000227This command specifies the OSPF enabled interface(s). If the interface has
228an address from range 192.168.1.0/24 then the command below enables ospf
229on this interface so router can provide network information to the other
230ospf routers via this interface.
paule5b308d2005-10-29 20:19:49 +0000231
paul718e3742002-12-13 20:15:29 +0000232@example
233@group
234router ospf
hassoa5b2b592004-04-17 10:09:29 +0000235 network 192.168.1.0/24 area 0.0.0.0
paul718e3742002-12-13 20:15:29 +0000236@end group
237@end example
paule5b308d2005-10-29 20:19:49 +0000238
hassoa5b2b592004-04-17 10:09:29 +0000239Prefix length in interface must be equal or bigger (ie. smaller network) than
240prefix length in network statement. For example statement above doesn't enable
241ospf on interface with address 192.168.1.1/23, but it does on interface with
242address 192.168.1.129/25.
Andrew J. Schorrf0ec8322007-04-30 16:52:05 +0000243
244Note that the behavior when there is a peer address
245defined on an interface changed after release 0.99.7.
246Currently, if a peer prefix has been configured,
247then we test whether the prefix in the network command contains
248the destination prefix. Otherwise, we test whether the network command prefix
249contains the local address prefix of the interface.
Paul Jakma8a667cf2009-08-27 16:51:42 +0100250
251In some cases it may be more convenient to enable OSPF on a per
252interface/subnet basis (@pxref{OSPF ip ospf area command}).
253
paul718e3742002-12-13 20:15:29 +0000254@end deffn
255
paul76b89b42004-11-06 17:13:09 +0000256@node OSPF area
paul718e3742002-12-13 20:15:29 +0000257@section OSPF area
258
259@deffn {OSPF Command} {area @var{a.b.c.d} range @var{a.b.c.d/m}} {}
260@deffnx {OSPF Command} {area <0-4294967295> range @var{a.b.c.d/m}} {}
261@deffnx {OSPF Command} {no area @var{a.b.c.d} range @var{a.b.c.d/m}} {}
262@deffnx {OSPF Command} {no area <0-4294967295> range @var{a.b.c.d/m}} {}
hasso63869f12004-04-19 14:43:46 +0000263Summarize intra area paths from specified area into one Type-3 summary-LSA
264announced to other areas. This command can be used only in ABR and ONLY
265router-LSAs (Type-1) and network-LSAs (Type-2) (ie. LSAs with scope area) can
266be summarized. Type-5 AS-external-LSAs can't be summarized - their scope is AS.
267Summarizing Type-7 AS-external-LSAs isn't supported yet by Quagga.
paule5b308d2005-10-29 20:19:49 +0000268
hasso63869f12004-04-19 14:43:46 +0000269@example
270@group
271router ospf
272 network 192.168.1.0/24 area 0.0.0.0
273 network 10.0.0.0/8 area 0.0.0.10
274 area 0.0.0.10 range 10.0.0.0/8
275@end group
276@end example
paule5b308d2005-10-29 20:19:49 +0000277
hasso63869f12004-04-19 14:43:46 +0000278With configuration above one Type-3 Summary-LSA with routing info 10.0.0.0/8 is
279announced into backbone area if area 0.0.0.10 contains at least one intra-area
280network (ie. described with router or network LSA) from this range.
paul718e3742002-12-13 20:15:29 +0000281@end deffn
282
hasso63869f12004-04-19 14:43:46 +0000283@deffn {OSPF Command} {area @var{a.b.c.d} range IPV4_PREFIX not-advertise} {}
284@deffnx {OSPF Command} {no area @var{a.b.c.d} range IPV4_PREFIX not-advertise} {}
285Instead of summarizing intra area paths filter them - ie. intra area paths from this
286range are not advertised into other areas.
287This command makes sense in ABR only.
288@end deffn
289
hasso6b3fac02004-04-20 04:11:36 +0000290@deffn {OSPF Command} {area @var{a.b.c.d} range IPV4_PREFIX substitute IPV4_PREFIX} {}
paul718e3742002-12-13 20:15:29 +0000291@deffnx {OSPF Command} {no area @var{a.b.c.d} range IPV4_PREFIX substitute IPV4_PREFIX} {}
hasso63869f12004-04-19 14:43:46 +0000292Substitute summarized prefix with another prefix.
paule5b308d2005-10-29 20:19:49 +0000293
hasso63869f12004-04-19 14:43:46 +0000294@example
295@group
296router ospf
297 network 192.168.1.0/24 area 0.0.0.0
298 network 10.0.0.0/8 area 0.0.0.10
299 area 0.0.0.10 range 10.0.0.0/8 substitute 11.0.0.0/8
300@end group
301@end example
paule5b308d2005-10-29 20:19:49 +0000302
hasso63869f12004-04-19 14:43:46 +0000303One Type-3 summary-LSA with routing info 11.0.0.0/8 is announced into backbone area if
304area 0.0.0.10 contains at least one intra-area network (ie. described with router-LSA or
305network-LSA) from range 10.0.0.0/8.
306This command makes sense in ABR only.
paul718e3742002-12-13 20:15:29 +0000307@end deffn
308
309@deffn {OSPF Command} {area @var{a.b.c.d} virtual-link @var{a.b.c.d}} {}
310@deffnx {OSPF Command} {area <0-4294967295> virtual-link @var{a.b.c.d}} {}
311@deffnx {OSPF Command} {no area @var{a.b.c.d} virtual-link @var{a.b.c.d}} {}
312@deffnx {OSPF Command} {no area <0-4294967295> virtual-link @var{a.b.c.d}} {}
Paul Jakmac3eab602006-07-28 04:42:39 +0000313@anchor{OSPF virtual-link}
paul718e3742002-12-13 20:15:29 +0000314@end deffn
315
316@deffn {OSPF Command} {area @var{a.b.c.d} shortcut} {}
317@deffnx {OSPF Command} {area <0-4294967295> shortcut} {}
318@deffnx {OSPF Command} {no area @var{a.b.c.d} shortcut} {}
319@deffnx {OSPF Command} {no area <0-4294967295> shortcut} {}
Paul Jakmaf912cb42006-07-27 23:30:16 +0000320Configure the area as Shortcut capable. See @cite{RFC3509}. This requires
paule5b308d2005-10-29 20:19:49 +0000321that the 'abr-type' be set to 'shortcut'.
paul718e3742002-12-13 20:15:29 +0000322@end deffn
323
324@deffn {OSPF Command} {area @var{a.b.c.d} stub} {}
325@deffnx {OSPF Command} {area <0-4294967295> stub} {}
326@deffnx {OSPF Command} {no area @var{a.b.c.d} stub} {}
327@deffnx {OSPF Command} {no area <0-4294967295> stub} {}
paule5b308d2005-10-29 20:19:49 +0000328Configure the area to be a stub area. That is, an area where no router
329originates routes external to OSPF and hence an area where all external
330routes are via the ABR(s). Hence, ABRs for such an area do not need
331to pass AS-External LSAs (type-5s) or ASBR-Summary LSAs (type-4) into the
332area. They need only pass Network-Summary (type-3) LSAs into such an area,
Paul Jakmaf912cb42006-07-27 23:30:16 +0000333along with a default-route summary.
paul718e3742002-12-13 20:15:29 +0000334@end deffn
335
336@deffn {OSPF Command} {area @var{a.b.c.d} stub no-summary} {}
337@deffnx {OSPF Command} {area <0-4294967295> stub no-summary} {}
338@deffnx {OSPF Command} {no area @var{a.b.c.d} stub no-summary} {}
339@deffnx {OSPF Command} {no area <0-4294967295> stub no-summary} {}
paule5b308d2005-10-29 20:19:49 +0000340Prevents an @command{ospfd} ABR from injecting inter-area
341summaries into the specified stub area.
paul718e3742002-12-13 20:15:29 +0000342@end deffn
343
344@deffn {OSPF Command} {area @var{a.b.c.d} default-cost <0-16777215>} {}
345@deffnx {OSPF Command} {no area @var{a.b.c.d} default-cost <0-16777215>} {}
paule5b308d2005-10-29 20:19:49 +0000346Set the cost of default-summary LSAs announced to stubby areas.
paul718e3742002-12-13 20:15:29 +0000347@end deffn
348
349@deffn {OSPF Command} {area @var{a.b.c.d} export-list NAME} {}
350@deffnx {OSPF Command} {area <0-4294967295> export-list NAME} {}
351@deffnx {OSPF Command} {no area @var{a.b.c.d} export-list NAME} {}
352@deffnx {OSPF Command} {no area <0-4294967295> export-list NAME} {}
hasso63869f12004-04-19 14:43:46 +0000353Filter Type-3 summary-LSAs announced to other areas originated from intra-
354area paths from specified area.
paule5b308d2005-10-29 20:19:49 +0000355
hasso63869f12004-04-19 14:43:46 +0000356@example
357@group
358router ospf
359 network 192.168.1.0/24 area 0.0.0.0
360 network 10.0.0.0/8 area 0.0.0.10
361 area 0.0.0.10 export-list foo
362!
363access-list foo permit 10.10.0.0/16
364access-list foo deny any
365@end group
366@end example
paule5b308d2005-10-29 20:19:49 +0000367
hasso63869f12004-04-19 14:43:46 +0000368With example above any intra-area paths from area 0.0.0.10 and from range
36910.10.0.0/16 (for example 10.10.1.0/24 and 10.10.2.128/30) are announced into
370other areas as Type-3 summary-LSA's, but any others (for example 10.11.0.0/16
371or 10.128.30.16/30) aren't.
paule5b308d2005-10-29 20:19:49 +0000372
373This command is only relevant if the router is an ABR for the specified
374area.
paul718e3742002-12-13 20:15:29 +0000375@end deffn
376
377@deffn {OSPF Command} {area @var{a.b.c.d} import-list NAME} {}
378@deffnx {OSPF Command} {area <0-4294967295> import-list NAME} {}
379@deffnx {OSPF Command} {no area @var{a.b.c.d} import-list NAME} {}
380@deffnx {OSPF Command} {no area <0-4294967295> import-list NAME} {}
hasso63869f12004-04-19 14:43:46 +0000381Same as export-list, but it applies to paths announced into specified area as
382Type-3 summary-LSAs.
383@end deffn
384
hasso808c0a72004-04-19 15:10:20 +0000385@deffn {OSPF Command} {area @var{a.b.c.d} filter-list prefix NAME in} {}
386@deffnx {OSPF Command} {area @var{a.b.c.d} filter-list prefix NAME out} {}
387@deffnx {OSPF Command} {area <0-4294967295> filter-list prefix NAME in} {}
388@deffnx {OSPF Command} {area <0-4294967295> filter-list prefix NAME out} {}
389@deffnx {OSPF Command} {no area @var{a.b.c.d} filter-list prefix NAME in} {}
390@deffnx {OSPF Command} {no area @var{a.b.c.d} filter-list prefix NAME out} {}
391@deffnx {OSPF Command} {no area <0-4294967295> filter-list prefix NAME in} {}
392@deffnx {OSPF Command} {no area <0-4294967295> filter-list prefix NAME out} {}
hassoc266ac72004-04-19 17:31:00 +0000393Filtering Type-3 summary-LSAs to/from area using prefix lists. This command
394makes sense in ABR only.
paul718e3742002-12-13 20:15:29 +0000395@end deffn
396
397@deffn {OSPF Command} {area @var{a.b.c.d} authentication} {}
398@deffnx {OSPF Command} {area <0-4294967295> authentication} {}
399@deffnx {OSPF Command} {no area @var{a.b.c.d} authentication} {}
400@deffnx {OSPF Command} {no area <0-4294967295> authentication} {}
paule5b308d2005-10-29 20:19:49 +0000401Specify that simple password authentication should be used for the given
402area.
paul718e3742002-12-13 20:15:29 +0000403@end deffn
404
405@deffn {OSPF Command} {area @var{a.b.c.d} authentication message-digest} {}
406@deffnx {OSPF Command} {area <0-4294967295> authentication message-digest} {}
Paul Jakmac3eab602006-07-28 04:42:39 +0000407
408@anchor{area authentication message-digest}Specify that OSPF packets
409must be authenticated with MD5 HMACs within the given area. Keying
410material must also be configured on a per-interface basis (@pxref{ip
411ospf message-digest-key}).
412
413MD5 authentication may also be configured on a per-interface basis
414(@pxref{ip ospf authentication message-digest}). Such per-interface
415settings will override any per-area authentication setting.
paul718e3742002-12-13 20:15:29 +0000416@end deffn
417
paul76b89b42004-11-06 17:13:09 +0000418@node OSPF interface
paul718e3742002-12-13 20:15:29 +0000419@section OSPF interface
420
Paul Jakma8a667cf2009-08-27 16:51:42 +0100421@deffn {Interface Command} {ip ospf area @var{AREA} [@var{ADDR}]} {}
422@deffnx {Interface Command} {no ip ospf area [@var{ADDR}]} {}
423@anchor{OSPF ip ospf area command}
424
425Enable OSPF on the interface, optionally restricted to just the IP address
426given by @var{ADDR}, putting it in the @var{AREA} area. Per interface area
427settings take precedence to network commands (@pxref{OSPF network command}).
428
429If you have a lot of interfaces, and/or a lot of subnets, then enabling OSPF
430via this command may result in a slight performance improvement.
431
432@end deffn
433
paule5b308d2005-10-29 20:19:49 +0000434@deffn {Interface Command} {ip ospf authentication-key @var{AUTH_KEY}} {}
paul718e3742002-12-13 20:15:29 +0000435@deffnx {Interface Command} {no ip ospf authentication-key} {}
436Set OSPF authentication key to a simple password. After setting @var{AUTH_KEY},
437all OSPF packets are authenticated. @var{AUTH_KEY} has length up to 8 chars.
Paul Jakmaf912cb42006-07-27 23:30:16 +0000438
439Simple text password authentication is insecure and deprecated in favour of
Paul Jakmac3eab602006-07-28 04:42:39 +0000440MD5 HMAC authentication (@pxref{ip ospf authentication message-digest}).
paul718e3742002-12-13 20:15:29 +0000441@end deffn
442
Paul Jakmac3eab602006-07-28 04:42:39 +0000443@deffn {Interface Command} {ip ospf authentication message-digest} {}
444@anchor{ip ospf authentication message-digest}Specify that MD5 HMAC
445authentication must be used on this interface. MD5 keying material must
446also be configured (@pxref{ip ospf message-digest-key}). Overrides any
447authentication enabled on a per-area basis (@pxref{area
448authentication message-digest}).
paule2ea9fe2004-10-11 14:33:23 +0000449
450Note that OSPF MD5 authentication requires that time never go backwards
paule5b308d2005-10-29 20:19:49 +0000451(correct time is NOT important, only that it never goes backwards), even
paule2ea9fe2004-10-11 14:33:23 +0000452across resets, if ospfd is to be able to promptly reestabish adjacencies
453with its neighbours after restarts/reboots. The host should have system
Paul Jakma466c9652006-06-26 12:55:58 +0000454time be set at boot from an external or non-volatile source (eg battery backed clock, NTP,
paule2ea9fe2004-10-11 14:33:23 +0000455etc.) or else the system clock should be periodically saved to non-volative
456storage and restored at boot if MD5 authentication is to be expected to work
457reliably.
paul718e3742002-12-13 20:15:29 +0000458@end deffn
459
Paul Jakmac3eab602006-07-28 04:42:39 +0000460@deffn {Interface Command} {ip ospf message-digest-key KEYID md5 KEY} {}
461@deffnx {Interface Command} {no ip ospf message-digest-key} {}
462@anchor{ip ospf message-digest-key}Set OSPF authentication key to a
463cryptographic password. The cryptographic algorithm is MD5.
464
465KEYID identifies secret key used to create the message digest. This ID
466is part of the protocol and must be consistent across routers on a
467link.
468
469KEY is the actual message digest key, of up to 16 chars (larger strings
470will be truncated), and is associated with the given KEYID.
471@end deffn
472
paul718e3742002-12-13 20:15:29 +0000473@deffn {Interface Command} {ip ospf cost <1-65535>} {}
474@deffnx {Interface Command} {no ip ospf cost} {}
475Set link cost for the specified interface. The cost value is set to router-LSA's
476metric field and used for SPF calculation.
477@end deffn
478
479@deffn {Interface Command} {ip ospf dead-interval <1-65535>} {}
paule5b308d2005-10-29 20:19:49 +0000480@deffnx {Interface Command} {ip ospf dead-interval minimal hello-multiplier <2-20>} {}
paul718e3742002-12-13 20:15:29 +0000481@deffnx {Interface Command} {no ip ospf dead-interval} {}
Paul Jakmac3eab602006-07-28 04:42:39 +0000482@anchor{ip ospf dead-interval minimal} Set number of seconds for
483RouterDeadInterval timer value used for Wait Timer and Inactivity
484Timer. This value must be the same for all routers attached to a
485common network. The default value is 40 seconds.
paule5b308d2005-10-29 20:19:49 +0000486
487If 'minimal' is specified instead, then the dead-interval is set to 1
488second and one must specify a hello-multiplier. The hello-multiplier
489specifies how many Hellos to send per second, from 2 (every 500ms) to
49020 (every 50ms). Thus one can have 1s convergence time for OSPF. If this form
491is specified, then the hello-interval advertised in Hello packets is set to
4920 and the hello-interval on received Hello packets is not checked, thus
493the hello-multiplier need NOT be the same across multiple routers on a common
494link.
paul718e3742002-12-13 20:15:29 +0000495@end deffn
496
497@deffn {Interface Command} {ip ospf hello-interval <1-65535>} {}
498@deffnx {Interface Command} {no ip ospf hello-interval} {}
499Set number of seconds for HelloInterval timer value. Setting this value,
500Hello packet will be sent every timer value seconds on the specified interface.
501This value must be the same for all routers attached to a common network.
502The default value is 10 seconds.
paule5b308d2005-10-29 20:19:49 +0000503
504This command has no effect if @ref{ip ospf dead-interval minimal} is also
505specified for the interface.
paul718e3742002-12-13 20:15:29 +0000506@end deffn
507
508@deffn {Interface Command} {ip ospf network (broadcast|non-broadcast|point-to-multipoint|point-to-point)} {}
509@deffnx {Interface Command} {no ip ospf network} {}
510Set explicitly network type for specifed interface.
511@end deffn
512
513@deffn {Interface Command} {ip ospf priority <0-255>} {}
514@deffnx {Interface Command} {no ip ospf priority} {}
Paul Jakmaf912cb42006-07-27 23:30:16 +0000515Set RouterPriority integer value. The router with the highest priority
516will be more eligible to become Designated Router. Setting the value
517to 0, makes the router ineligible to become Designated Router. The
518default value is 1.
paul718e3742002-12-13 20:15:29 +0000519@end deffn
520
521@deffn {Interface Command} {ip ospf retransmit-interval <1-65535>} {}
522@deffnx {Interface Command} {no ip ospf retransmit interval} {}
523Set number of seconds for RxmtInterval timer value. This value is used
524when retransmitting Database Description and Link State Request packets.
525The default value is 5 seconds.
526@end deffn
527
528@deffn {Interface Command} {ip ospf transmit-delay} {}
529@deffnx {Interface Command} {no ip ospf transmit-delay} {}
530Set number of seconds for InfTransDelay value. LSAs' age should be
531incremented by this value when transmitting.
532The default value is 1 seconds.
533@end deffn
534
paul76b89b42004-11-06 17:13:09 +0000535@node Redistribute routes to OSPF
paul718e3742002-12-13 20:15:29 +0000536@section Redistribute routes to OSPF
537
538@deffn {OSPF Command} {redistribute (kernel|connected|static|rip|bgp)} {}
539@deffnx {OSPF Command} {redistribute (kernel|connected|static|rip|bgp) @var{route-map}} {}
540@deffnx {OSPF Command} {redistribute (kernel|connected|static|rip|bgp) metric-type (1|2)} {}
541@deffnx {OSPF Command} {redistribute (kernel|connected|static|rip|bgp) metric-type (1|2) route-map @var{word}} {}
542@deffnx {OSPF Command} {redistribute (kernel|connected|static|rip|bgp) metric <0-16777214>} {}
543@deffnx {OSPF Command} {redistribute (kernel|connected|static|rip|bgp) metric <0-16777214> route-map @var{word}} {}
544@deffnx {OSPF Command} {redistribute (kernel|connected|static|rip|bgp) metric-type (1|2) metric <0-16777214>} {}
545@deffnx {OSPF Command} {redistribute (kernel|connected|static|rip|bgp) metric-type (1|2) metric <0-16777214> route-map @var{word}} {}
546@deffnx {OSPF Command} {no redistribute (kernel|connected|static|rip|bgp)} {}
Paul Jakmac3eab602006-07-28 04:42:39 +0000547@anchor{OSPF redistribute}Redistribute routes of the specified protocol
548or kind into OSPF, with the metric type and metric set if specified,
549filtering the routes using the given route-map if specified.
550Redistributed routes may also be filtered with distribute-lists, see
551@ref{ospf distribute-list}.
Paul Jakmaf912cb42006-07-27 23:30:16 +0000552
553Redistributed routes are distributed as into OSPF as Type-5 External
554LSAs into links to areas that accept external routes, Type-7 External LSAs
555for NSSA areas and are not redistributed at all into Stub areas, where
556external routes are not permitted.
557
558Note that for connected routes, one may instead use
559@dfn{passive-interface}, see @ref{OSPF passive-interface}.
paul718e3742002-12-13 20:15:29 +0000560@end deffn
561
562@deffn {OSPF Command} {default-information originate} {}
563@deffnx {OSPF Command} {default-information originate metric <0-16777214>} {}
564@deffnx {OSPF Command} {default-information originate metric <0-16777214> metric-type (1|2)} {}
565@deffnx {OSPF Command} {default-information originate metric <0-16777214> metric-type (1|2) route-map @var{word}} {}
566@deffnx {OSPF Command} {default-information originate always} {}
567@deffnx {OSPF Command} {default-information originate always metric <0-16777214>} {}
568@deffnx {OSPF Command} {default-information originate always metric <0-16777214> metric-type (1|2)} {}
569@deffnx {OSPF Command} {default-information originate always metric <0-16777214> metric-type (1|2) route-map @var{word}} {}
570@deffnx {OSPF Command} {no default-information originate} {}
paule5b308d2005-10-29 20:19:49 +0000571Originate an AS-External (type-5) LSA describing a default route into
572all external-routing capable areas, of the specified metric and metric
573type. If the 'always' keyword is given then the default is always
574advertised, even when there is no default present in the routing table.
paul718e3742002-12-13 20:15:29 +0000575@end deffn
576
577@deffn {OSPF Command} {distribute-list NAME out (kernel|connected|static|rip|ospf} {}
578@deffnx {OSPF Command} {no distribute-list NAME out (kernel|connected|static|rip|ospf} {}
Paul Jakmac3eab602006-07-28 04:42:39 +0000579@anchor{ospf distribute-list}Apply the access-list filter, NAME, to
580redistributed routes of the given type before allowing the routes to
581redistributed into OSPF (@pxref{OSPF redistribute}).
paul718e3742002-12-13 20:15:29 +0000582@end deffn
583
584@deffn {OSPF Command} {default-metric <0-16777214>} {}
585@deffnx {OSPF Command} {no default-metric} {}
586@end deffn
587
588@deffn {OSPF Command} {distance <1-255>} {}
589@deffnx {OSPF Command} {no distance <1-255>} {}
590@end deffn
591
592@deffn {OSPF Command} {distance ospf (intra-area|inter-area|external) <1-255>} {}
593@deffnx {OSPF Command} {no distance ospf} {}
594@end deffn
595
paul76b89b42004-11-06 17:13:09 +0000596@node Showing OSPF information
paul718e3742002-12-13 20:15:29 +0000597@section Showing OSPF information
598
599@deffn {Command} {show ip ospf} {}
Paul Jakmac3eab602006-07-28 04:42:39 +0000600@anchor{show ip ospf}Show information on a variety of general OSPF and
601area state and configuration information.
paul718e3742002-12-13 20:15:29 +0000602@end deffn
603
604@deffn {Command} {show ip ospf interface [INTERFACE]} {}
paule5b308d2005-10-29 20:19:49 +0000605Show state and configuration of OSPF the specified interface, or all
606interfaces if no interface is given.
paul718e3742002-12-13 20:15:29 +0000607@end deffn
608
609@deffn {Command} {show ip ospf neighbor} {}
610@deffnx {Command} {show ip ospf neighbor INTERFACE} {}
611@deffnx {Command} {show ip ospf neighbor detail} {}
612@deffnx {Command} {show ip ospf neighbor INTERFACE detail} {}
613@end deffn
614
615@deffn {Command} {show ip ospf database} {}
616@end deffn
617
618@deffn {Command} {show ip ospf database (asbr-summary|external|network|router|summary)} {}
619@deffnx {Command} {show ip ospf database (asbr-summary|external|network|router|summary) @var{link-state-id}} {}
620@deffnx {Command} {show ip ospf database (asbr-summary|external|network|router|summary) @var{link-state-id} adv-router @var{adv-router}} {}
621@deffnx {Command} {show ip ospf database (asbr-summary|external|network|router|summary) adv-router @var{adv-router}} {}
622@deffnx {Command} {show ip ospf database (asbr-summary|external|network|router|summary) @var{link-state-id} self-originate} {}
623@deffnx {Command} {show ip ospf database (asbr-summary|external|network|router|summary) self-originate} {}
624@end deffn
625
626@deffn {Command} {show ip ospf database max-age} {}
627@end deffn
628
629@deffn {Command} {show ip ospf database self-originate} {}
630@end deffn
631
paul718e3742002-12-13 20:15:29 +0000632@deffn {Command} {show ip ospf route} {}
paule5b308d2005-10-29 20:19:49 +0000633Show the OSPF routing table, as determined by the most recent SPF calculation.
paul718e3742002-12-13 20:15:29 +0000634@end deffn
635
Olivier Dugeonec04b9f2016-04-19 19:18:18 +0200636@node Opaque LSA
637@section Opaque LSA
638
639@deffn {OSPF Command} {ospf opaque-lsa} {}
640@deffnx {OSPF Command} {capability opaque} {}
641@deffnx {OSPF Command} {no ospf opaque-lsa} {}
642@deffnx {OSPF Command} {no capability opaque} {}
643@command{ospfd} support Opaque LSA (RFC2370) as fondment for MPLS Traffic Engineering LSA. Prior to used MPLS TE, opaque-lsa must be enable in the configuration file. Alternate command could be "mpls-te on" (@ref{OSPF Traffic Engineering}).
644@end deffn
645
646@deffn {Command} {show ip ospf database (opaque-link|opaque-area|opaque-external)} {}
647@deffnx {Command} {show ip ospf database (opaque-link|opaque-area|opaque-external) @var{link-state-id}} {}
648@deffnx {Command} {show ip ospf database (opaque-link|opaque-area|opaque-external) @var{link-state-id} adv-router @var{adv-router}} {}
649@deffnx {Command} {show ip ospf database (opaque-link|opaque-area|opaque-external) adv-router @var{adv-router}} {}
650@deffnx {Command} {show ip ospf database (opaque-link|opaque-area|opaque-external) @var{link-state-id} self-originate} {}
651@deffnx {Command} {show ip ospf database (opaque-link|opaque-area|opaque-external) self-originate} {}
652Show Opaque LSA from the database.
653@end deffn
654
655@node OSPF Traffic Engineering
656@section Traffic Engineering
657
658@deffn {OSPF Command} {mpls-te on} {}
659@deffnx {OSPF Command} {no mpls-te} {}
660Enable Traffic Engineering LSA flooding.
661@end deffn
662
663@deffn {OSPF Command} {mpls-te router-address <A.B.C.D>} {}
664@deffnx {OSPF Command} {no mpls-te} {}
665Configure stable IP address for MPLS-TE. This IP address is then advertise in Opaque LSA Type-10 TLV=1 (TE)
666option 1 (Router-Address).
667@end deffn
668
669@deffn {OSPF Command} {mpls-te inter-as area <area-id>|as} {}
670@deffnx {OSPF Command} {no mpls-te inter-as} {}
671Enable RFC5392 suuport - Inter-AS TE v2 - to flood Traffic Engineering parameters of Inter-AS link.
6722 modes are supported: AREA and AS; LSA are flood in AREA <area-id> with Opaque Type-10,
673respectively in AS with Opaque Type-11. In all case, Opaque-LSA TLV=6.
674@end deffn
675
676@deffn {Command} {show ip ospf mpls-te interface} {}
677@deffnx {Command} {show ip ospf mpls-te interface @var{interface}} {}
678Show MPLS Traffic Engineering parameters for all or specified interface.
679@end deffn
680
681@deffn {Command} {show ip ospf mpls-te router} {}
682Show Traffic Engineering router parameters.
683@end deffn
684
685@node Router Information
686@section Router Information
687
688@deffn {OSPF Command} {router-info [as | area <A.B.C.D>]} {}
689@deffnx {OSPF Command} {no router-info} {}
690Enable Router Information (RFC4970) LSA advertisement with AS scope (default) or Area scope flooding
691when area is specified.
692@end deffn
693
694@deffn {OSPF Command} {pce address <A.B.C.D>} {}
695@deffnx {OSPF Command} {no pce address} {}
696@deffnx {OSPF Command} {pce domain as <0-65535>} {}
697@deffnx {OSPF Command} {no pce domain as <0-65535>} {}
698@deffnx {OSPF Command} {pce neighbor as <0-65535>} {}
699@deffnx {OSPF Command} {no pce neighbor as <0-65535>} {}
700@deffnx {OSPF Command} {pce flag BITPATTERN} {}
701@deffnx {OSPF Command} {no pce flag} {}
702@deffnx {OSPF Command} {pce scope BITPATTERN} {}
703@deffnx {OSPF Command} {no pce scope} {}
704The commands are conform to RFC 5088 and allow OSPF router announce Path Compuatation Elemenent (PCE) capabilities
705through the Router Information (RI) LSA. Router Information must be enable prior to this. The command set/unset
706respectively the PCE IP adress, Autonomous System (AS) numbers of controlled domains, neighbor ASs, flag and scope.
707For flag and scope, please refer to RFC5088 for the BITPATTERN recognition. Multiple 'pce neighbor' command could
708be specified in order to specify all PCE neighbours.
709@end deffn
710
711@deffn {Command} {show ip ospf router-info} {}
712Show Router Capabilities flag.
713@end deffn
714@deffn {Command} {show ip ospf router-info pce} {}
715Show Router Capabilities PCE parameters.
716@end deffn
717
paul76b89b42004-11-06 17:13:09 +0000718@node Debugging OSPF
paul718e3742002-12-13 20:15:29 +0000719@section Debugging OSPF
720
721@deffn {Command} {debug ospf packet (hello|dd|ls-request|ls-update|ls-ack|all) (send|recv) [detail]} {}
722@deffnx {Command} {no debug ospf packet (hello|dd|ls-request|ls-update|ls-ack|all) (send|recv) [detail]} {}
Olivier Dugeonec04b9f2016-04-19 19:18:18 +0200723Dump Packet for debugging
paul718e3742002-12-13 20:15:29 +0000724@end deffn
725
726@deffn {Command} {debug ospf ism} {}
727@deffnx {Command} {debug ospf ism (status|events|timers)} {}
728@deffnx {Command} {no debug ospf ism} {}
729@deffnx {Command} {no debug ospf ism (status|events|timers)} {}
Olivier Dugeonec04b9f2016-04-19 19:18:18 +0200730Show debug information of Interface State Machine
paul718e3742002-12-13 20:15:29 +0000731@end deffn
732
733@deffn {Command} {debug ospf nsm} {}
734@deffnx {Command} {debug ospf nsm (status|events|timers)} {}
735@deffnx {Command} {no debug ospf nsm} {}
736@deffnx {Command} {no debug ospf nsm (status|events|timers)} {}
Olivier Dugeonec04b9f2016-04-19 19:18:18 +0200737Show debug information of Network State Machine
738@end deffn
739
740@deffn {Command} {debug ospf event} {}
741@deffnx {Command} {no debug ospf event} {}
742Show debug information of OSPF event
743@end deffn
744
745@deffn {Command} {debug ospf nssa} {}
746@deffnx {Command} {no debug ospf nssa} {}
747Show debug information about Not So Stub Area
paul718e3742002-12-13 20:15:29 +0000748@end deffn
749
750@deffn {Command} {debug ospf lsa} {}
751@deffnx {Command} {debug ospf lsa (generate|flooding|refresh)} {}
752@deffnx {Command} {no debug ospf lsa} {}
753@deffnx {Command} {no debug ospf lsa (generate|flooding|refresh)} {}
Olivier Dugeonec04b9f2016-04-19 19:18:18 +0200754Show debug detail of Link State messages
755@end deffn
756
757@deffn {Command} {debug ospf te} {}
758@deffnx {Command} {no debug ospf te} {}
759Show debug information about Traffic Engineering LSA
paul718e3742002-12-13 20:15:29 +0000760@end deffn
761
762@deffn {Command} {debug ospf zebra} {}
763@deffnx {Command} {debug ospf zebra (interface|redistribute)} {}
764@deffnx {Command} {no debug ospf zebra} {}
765@deffnx {Command} {no debug ospf zebra (interface|redistribute)} {}
Olivier Dugeonec04b9f2016-04-19 19:18:18 +0200766Show debug information of ZEBRA API
paul718e3742002-12-13 20:15:29 +0000767@end deffn
768
769@deffn {Command} {show debugging ospf} {}
770@end deffn
771
paule5b308d2005-10-29 20:19:49 +0000772@node OSPF Configuration Examples
773@section OSPF Configuration Examples
774A simple example, with MD5 authentication enabled:
775
776@example
777@group
778!
779interface bge0
780 ip ospf authentication message-digest
781 ip ospf message-digest-key 1 md5 ABCDEFGHIJK
782!
783router ospf
784 network 192.168.0.0/16 area 0.0.0.1
785 area 0.0.0.1 authentication message-digest
786@end group
787@end example
788
789An @acronym{ABR} router, with MD5 authentication and performing summarisation
790of networks between the areas:
791
792@example
793@group
794!
795password ABCDEF
796log file /var/log/quagga/ospfd.log
797service advanced-vty
798!
799interface eth0
800 ip ospf authentication message-digest
801 ip ospf message-digest-key 1 md5 ABCDEFGHIJK
802!
803interface ppp0
804!
805interface br0
806 ip ospf authentication message-digest
807 ip ospf message-digest-key 2 md5 XYZ12345
808!
809router ospf
810 ospf router-id 192.168.0.1
811 redistribute connected
812 passive interface ppp0
813 network 192.168.0.0/24 area 0.0.0.0
814 network 10.0.0.0/16 area 0.0.0.0
815 network 192.168.1.0/24 area 0.0.0.1
816 area 0.0.0.0 authentication message-digest
817 area 0.0.0.0 range 10.0.0.0/16
818 area 0.0.0.0 range 192.168.0.0/24
819 area 0.0.0.1 authentication message-digest
820 area 0.0.0.1 range 10.2.0.0/16
821!
822@end group
823@end example
Olivier Dugeonec04b9f2016-04-19 19:18:18 +0200824
825A Traffic Engineering configuration, with Inter-ASv2 support.
826
827 - First, the 'zebra.conf' part:
828
829@example
830@group
831hostname HOSTNAME
832password PASSWORD
833log file /var/log/zebra.log
834!
835interface eth0
836 ip address 198.168.1.1/24
837 mpls-te on
838 mpls-te link metric 10
839 mpls-te link max-bw 1.25e+06
840 mpls-te link max-rsv-bw 1.25e+06
841 mpls-te link unrsv-bw 0 1.25e+06
842 mpls-te link unrsv-bw 1 1.25e+06
843 mpls-te link unrsv-bw 2 1.25e+06
844 mpls-te link unrsv-bw 3 1.25e+06
845 mpls-te link unrsv-bw 4 1.25e+06
846 mpls-te link unrsv-bw 5 1.25e+06
847 mpls-te link unrsv-bw 6 1.25e+06
848 mpls-te link unrsv-bw 7 1.25e+06
849 mpls-te link rsc-clsclr 0xab
850!
851interface eth1
852 ip address 192.168.2.1/24
853 mpls-te on
854 mpls-te link metric 10
855 mpls-te link max-bw 1.25e+06
856 mpls-te link max-rsv-bw 1.25e+06
857 mpls-te link unrsv-bw 0 1.25e+06
858 mpls-te link unrsv-bw 1 1.25e+06
859 mpls-te link unrsv-bw 2 1.25e+06
860 mpls-te link unrsv-bw 3 1.25e+06
861 mpls-te link unrsv-bw 4 1.25e+06
862 mpls-te link unrsv-bw 5 1.25e+06
863 mpls-te link unrsv-bw 6 1.25e+06
864 mpls-te link unrsv-bw 7 1.25e+06
865 mpls-te link rsc-clsclr 0xab
866 mpls-te neighbor 192.168.2.2 as 65000
867@end group
868@end example
869
870 - Then the 'ospfd.conf' itself:
871
872@example
873@group
874hostname HOSTNAME
875password PASSWORD
876log file /var/log/ospfd.log
877!
878!
879interface eth0
880 ip ospf hello-interval 60
881 ip ospf dead-interval 240
882!
883interface eth1
884 ip ospf hello-interval 60
885 ip ospf dead-interval 240
886!
887!
888router ospf
889 ospf router-id 192.168.1.1
890 network 192.168.0.0/16 area 1
891 ospf opaque-lsa
892 mpls-te
893 mpls-te router-address 192.168.1.1
894 mpls-te inter-as area 1
895!
896line vty
897@end group
898@end example
899
900A router information example with PCE advsertisement:
901
902@example
903@group
904!
905router ospf
906 ospf router-id 192.168.1.1
907 network 192.168.0.0/16 area 1
908 capability opaque
909 mpls-te
910 mpls-te router-address 192.168.1.1
911 router-info area 0.0.0.1
912 pce address 192.168.1.1
913 pce flag 0x80
914 pce domain as 65400
915 pce neighbor as 65500
916 pce neighbor as 65200
917 pce scope 0x80
918!
919@end group
920@end example