blob: 5952c0511680e27dff0fd202a3b9985dd3bce121 [file] [log] [blame]
paul718e3742002-12-13 20:15:29 +00001@node OSPFv2, OSPFv3, RIPng, Top
2@comment node-name, next, previous, up
3@chapter OSPFv2
4
5 OSPF version 2 is a routing protocol which described in
6@asis{RFC2328} - @cite{OSPF Version 2}. OSPF is IGP (Interior Gateway
7Protocols). Compared with RIP, OSPF can provide scalable network
8support and faster convergence time. OSPF is widely used in large
9networks such as ISP backbone and enterprise networks.
10
11@menu
12* Configuring ospfd::
13* OSPF router::
14* OSPF area::
15* OSPF interface::
16* Redistribute routes to OSPF::
17* Showing OSPF information::
18* Debugging OSPF::
19@end menu
20
21@node Configuring ospfd, OSPF router, OSPFv2, OSPFv2
22@comment node-name, next, previous, up
23@section Configuring ospfd
24
25There is no @command{ospfd} specific options. Common options can be
26specified (@pxref{Common Invocation Options}) to @command{ospfd}.
27@command{ospfd} needs interface information from @command{zebra}. So
28please make it sure @command{zebra} is running before invoking
29@command{ospfd}.
30
31Like other daemons, @command{ospfd} configuration is done in OSPF
32specific configuration file @file{ospfd.conf}.
33
34@node OSPF router, OSPF area, Configuring ospfd, OSPFv2
35@comment node-name, next, previous, up
36@section OSPF router
37
38To start OSPF process you have to specify the OSPF router. As of this
39writing, @command{ospfd} does not support multiple OSPF processes.
40
41@deffn Command {router ospf} {}
42@deffnx Command {no router ospf} {}
43Enable or disable the OSPF process. @command{ospfd} does not yet
44support multiple OSPF processes. So you can not specify an OSPF process
45number.
46@end deffn
47
48@deffn {OSPF Command} {ospf router-id @var{a.b.c.d}} {}
49@deffnx {OSPF Command} {no ospf router-id} {}
50@end deffn
51
52@deffn {OSPF Command} {ospf abr-type @var{type}} {}
53@deffnx {OSPF Command} {no ospf abr-type @var{type}} {}
54@var{type} can be cisco|ibm|shortcut|standard
55@end deffn
56
57@deffn {OSPF Command} {ospf rfc1583compatibility} {}
58@deffnx {OSPF Command} {no ospf rfc1583compatibility} {}
59@end deffn
60
61@deffn {OSPF Command} {passive interface @var{interface}} {}
62@deffnx {OSPF Command} {no passive interface @var{interface}} {}
63@end deffn
64
65@deffn {OSPF Command} {timers spf <0-4294967295> <0-4294967295>} {}
66@deffnx {OSPF Command} {no timers spf} {}
67@end deffn
68
69@deffn {OSPF Command} {refresh group-limit <0-10000>} {}
70@deffnx {OSPF Command} {refresh per-slice <0-10000>} {}
71@deffnx {OSPF Command} {refresh age-diff <0-10000>} {}
72@end deffn
73
74@deffn {OSPF Command} {auto-cost refrence-bandwidth <1-4294967>} {}
75@deffnx {OSPF Command} {no auto-cost refrence-bandwidth} {}
76@end deffn
77
78@deffn {OSPF Command} {network @var{a.b.c.d/m} area @var{a.b.c.d}} {}
79@deffnx {OSPF Command} {network @var{a.b.c.d/m} area @var{<0-4294967295>}} {}
80@deffnx {OSPF Command} {no network @var{a.b.c.d/m} area @var{a.b.c.d}} {}
81@deffnx {OSPF Command} {no network @var{a.b.c.d/m} area @var{<0-4294967295>}} {}
82This command specifies the OSPF enabled interface. If the interface has
83an address of 10.0.0.1/8 then the command below provides network
84information to the ospf routers
85@example
86@group
87router ospf
88 network 10.0.0.0/8 area 0
89@end group
90@end example
91the network command's mask length should be the same as the interface
92address's mask.
93@end deffn
94
95@node OSPF area, OSPF interface, OSPF router, OSPFv2
96@comment node-name, next, previous, up
97@section OSPF area
98
99@deffn {OSPF Command} {area @var{a.b.c.d} range @var{a.b.c.d/m}} {}
100@deffnx {OSPF Command} {area <0-4294967295> range @var{a.b.c.d/m}} {}
101@deffnx {OSPF Command} {no area @var{a.b.c.d} range @var{a.b.c.d/m}} {}
102@deffnx {OSPF Command} {no area <0-4294967295> range @var{a.b.c.d/m}} {}
103@end deffn
104
105@deffn {OSPF Command} {area @var{a.b.c.d} range IPV4_PREFIX suppress} {}
106@deffnx {OSPF Command} {no area @var{a.b.c.d} range IPV4_PREFIX suppress} {}
107@deffnx {OSPF Command} {area @var{a.b.c.d} range IPV4_PREFIX substitute IPV4_PREFIX} {}
108@deffnx {OSPF Command} {no area @var{a.b.c.d} range IPV4_PREFIX substitute IPV4_PREFIX} {}
109@end deffn
110
111@deffn {OSPF Command} {area @var{a.b.c.d} virtual-link @var{a.b.c.d}} {}
112@deffnx {OSPF Command} {area <0-4294967295> virtual-link @var{a.b.c.d}} {}
113@deffnx {OSPF Command} {no area @var{a.b.c.d} virtual-link @var{a.b.c.d}} {}
114@deffnx {OSPF Command} {no area <0-4294967295> virtual-link @var{a.b.c.d}} {}
115@end deffn
116
117@deffn {OSPF Command} {area @var{a.b.c.d} shortcut} {}
118@deffnx {OSPF Command} {area <0-4294967295> shortcut} {}
119@deffnx {OSPF Command} {no area @var{a.b.c.d} shortcut} {}
120@deffnx {OSPF Command} {no area <0-4294967295> shortcut} {}
121@end deffn
122
123@deffn {OSPF Command} {area @var{a.b.c.d} stub} {}
124@deffnx {OSPF Command} {area <0-4294967295> stub} {}
125@deffnx {OSPF Command} {no area @var{a.b.c.d} stub} {}
126@deffnx {OSPF Command} {no area <0-4294967295> stub} {}
127@end deffn
128
129@deffn {OSPF Command} {area @var{a.b.c.d} stub no-summary} {}
130@deffnx {OSPF Command} {area <0-4294967295> stub no-summary} {}
131@deffnx {OSPF Command} {no area @var{a.b.c.d} stub no-summary} {}
132@deffnx {OSPF Command} {no area <0-4294967295> stub no-summary} {}
133@end deffn
134
135@deffn {OSPF Command} {area @var{a.b.c.d} default-cost <0-16777215>} {}
136@deffnx {OSPF Command} {no area @var{a.b.c.d} default-cost <0-16777215>} {}
137@end deffn
138
139@deffn {OSPF Command} {area @var{a.b.c.d} export-list NAME} {}
140@deffnx {OSPF Command} {area <0-4294967295> export-list NAME} {}
141@deffnx {OSPF Command} {no area @var{a.b.c.d} export-list NAME} {}
142@deffnx {OSPF Command} {no area <0-4294967295> export-list NAME} {}
143@end deffn
144
145@deffn {OSPF Command} {area @var{a.b.c.d} import-list NAME} {}
146@deffnx {OSPF Command} {area <0-4294967295> import-list NAME} {}
147@deffnx {OSPF Command} {no area @var{a.b.c.d} import-list NAME} {}
148@deffnx {OSPF Command} {no area <0-4294967295> import-list NAME} {}
149@end deffn
150
151@deffn {OSPF Command} {area @var{a.b.c.d} authentication} {}
152@deffnx {OSPF Command} {area <0-4294967295> authentication} {}
153@deffnx {OSPF Command} {no area @var{a.b.c.d} authentication} {}
154@deffnx {OSPF Command} {no area <0-4294967295> authentication} {}
155@end deffn
156
157@deffn {OSPF Command} {area @var{a.b.c.d} authentication message-digest} {}
158@deffnx {OSPF Command} {area <0-4294967295> authentication message-digest} {}
159@end deffn
160
161@node OSPF interface, Redistribute routes to OSPF, OSPF area, OSPFv2
162@comment node-name, next, previous, up
163@section OSPF interface
164
165@deffn {Interface Command} {ip ospf authentication-key AUTH_KEY} {}
166@deffnx {Interface Command} {no ip ospf authentication-key} {}
167Set OSPF authentication key to a simple password. After setting @var{AUTH_KEY},
168all OSPF packets are authenticated. @var{AUTH_KEY} has length up to 8 chars.
169@end deffn
170
171@deffn {Interface Command} {ip ospf message-digest-key KEYID md5 KEY} {}
172@deffnx {Interface Command} {no ip ospf message-digest-key} {}
173Set OSPF authentication key to a cryptographic password. The cryptographic
174algorithm is MD5. KEYID identifies secret key used to create the message
175digest. KEY is the actual message digest key up to 16 chars.
176@end deffn
177
178@deffn {Interface Command} {ip ospf cost <1-65535>} {}
179@deffnx {Interface Command} {no ip ospf cost} {}
180Set link cost for the specified interface. The cost value is set to router-LSA's
181metric field and used for SPF calculation.
182@end deffn
183
184@deffn {Interface Command} {ip ospf dead-interval <1-65535>} {}
185@deffnx {Interface Command} {no ip ospf dead-interval} {}
186Set number of seconds for RouterDeadInterval timer value used for Wait Timer
187and Inactivity Timer. This value must be the same for all routers attached
188to a common network. The default value is 40 seconds.
189@end deffn
190
191@deffn {Interface Command} {ip ospf hello-interval <1-65535>} {}
192@deffnx {Interface Command} {no ip ospf hello-interval} {}
193Set number of seconds for HelloInterval timer value. Setting this value,
194Hello packet will be sent every timer value seconds on the specified interface.
195This value must be the same for all routers attached to a common network.
196The default value is 10 seconds.
197@end deffn
198
199@deffn {Interface Command} {ip ospf network (broadcast|non-broadcast|point-to-multipoint|point-to-point)} {}
200@deffnx {Interface Command} {no ip ospf network} {}
201Set explicitly network type for specifed interface.
202@end deffn
203
204@deffn {Interface Command} {ip ospf priority <0-255>} {}
205@deffnx {Interface Command} {no ip ospf priority} {}
206Set RouterPriority integer value. Setting higher value, router will be more
207eligible to become Designated Router. Setting the value to 0, router is no
208longer eligible to Designated Router.
209The default value is 1.
210@end deffn
211
212@deffn {Interface Command} {ip ospf retransmit-interval <1-65535>} {}
213@deffnx {Interface Command} {no ip ospf retransmit interval} {}
214Set number of seconds for RxmtInterval timer value. This value is used
215when retransmitting Database Description and Link State Request packets.
216The default value is 5 seconds.
217@end deffn
218
219@deffn {Interface Command} {ip ospf transmit-delay} {}
220@deffnx {Interface Command} {no ip ospf transmit-delay} {}
221Set number of seconds for InfTransDelay value. LSAs' age should be
222incremented by this value when transmitting.
223The default value is 1 seconds.
224@end deffn
225
226@node Redistribute routes to OSPF, Showing OSPF information, OSPF interface, OSPFv2
227@comment node-name, next, previous, up
228@section Redistribute routes to OSPF
229
230@deffn {OSPF Command} {redistribute (kernel|connected|static|rip|bgp)} {}
231@deffnx {OSPF Command} {redistribute (kernel|connected|static|rip|bgp) @var{route-map}} {}
232@deffnx {OSPF Command} {redistribute (kernel|connected|static|rip|bgp) metric-type (1|2)} {}
233@deffnx {OSPF Command} {redistribute (kernel|connected|static|rip|bgp) metric-type (1|2) route-map @var{word}} {}
234@deffnx {OSPF Command} {redistribute (kernel|connected|static|rip|bgp) metric <0-16777214>} {}
235@deffnx {OSPF Command} {redistribute (kernel|connected|static|rip|bgp) metric <0-16777214> route-map @var{word}} {}
236@deffnx {OSPF Command} {redistribute (kernel|connected|static|rip|bgp) metric-type (1|2) metric <0-16777214>} {}
237@deffnx {OSPF Command} {redistribute (kernel|connected|static|rip|bgp) metric-type (1|2) metric <0-16777214> route-map @var{word}} {}
238@deffnx {OSPF Command} {no redistribute (kernel|connected|static|rip|bgp)} {}
239@end deffn
240
241@deffn {OSPF Command} {default-information originate} {}
242@deffnx {OSPF Command} {default-information originate metric <0-16777214>} {}
243@deffnx {OSPF Command} {default-information originate metric <0-16777214> metric-type (1|2)} {}
244@deffnx {OSPF Command} {default-information originate metric <0-16777214> metric-type (1|2) route-map @var{word}} {}
245@deffnx {OSPF Command} {default-information originate always} {}
246@deffnx {OSPF Command} {default-information originate always metric <0-16777214>} {}
247@deffnx {OSPF Command} {default-information originate always metric <0-16777214> metric-type (1|2)} {}
248@deffnx {OSPF Command} {default-information originate always metric <0-16777214> metric-type (1|2) route-map @var{word}} {}
249@deffnx {OSPF Command} {no default-information originate} {}
250@end deffn
251
252@deffn {OSPF Command} {distribute-list NAME out (kernel|connected|static|rip|ospf} {}
253@deffnx {OSPF Command} {no distribute-list NAME out (kernel|connected|static|rip|ospf} {}
254@end deffn
255
256@deffn {OSPF Command} {default-metric <0-16777214>} {}
257@deffnx {OSPF Command} {no default-metric} {}
258@end deffn
259
260@deffn {OSPF Command} {distance <1-255>} {}
261@deffnx {OSPF Command} {no distance <1-255>} {}
262@end deffn
263
264@deffn {OSPF Command} {distance ospf (intra-area|inter-area|external) <1-255>} {}
265@deffnx {OSPF Command} {no distance ospf} {}
266@end deffn
267
268@deffn {Command} {router zebra} {}
269@deffnx {Command} {no router zebra} {}
270@end deffn
271
272@node Showing OSPF information, Debugging OSPF, Redistribute routes to OSPF, OSPFv2
273@comment node-name, next, previous, up
274@section Showing OSPF information
275
276@deffn {Command} {show ip ospf} {}
277@end deffn
278
279@deffn {Command} {show ip ospf interface [INTERFACE]} {}
280@end deffn
281
282@deffn {Command} {show ip ospf neighbor} {}
283@deffnx {Command} {show ip ospf neighbor INTERFACE} {}
284@deffnx {Command} {show ip ospf neighbor detail} {}
285@deffnx {Command} {show ip ospf neighbor INTERFACE detail} {}
286@end deffn
287
288@deffn {Command} {show ip ospf database} {}
289@end deffn
290
291@deffn {Command} {show ip ospf database (asbr-summary|external|network|router|summary)} {}
292@deffnx {Command} {show ip ospf database (asbr-summary|external|network|router|summary) @var{link-state-id}} {}
293@deffnx {Command} {show ip ospf database (asbr-summary|external|network|router|summary) @var{link-state-id} adv-router @var{adv-router}} {}
294@deffnx {Command} {show ip ospf database (asbr-summary|external|network|router|summary) adv-router @var{adv-router}} {}
295@deffnx {Command} {show ip ospf database (asbr-summary|external|network|router|summary) @var{link-state-id} self-originate} {}
296@deffnx {Command} {show ip ospf database (asbr-summary|external|network|router|summary) self-originate} {}
297@end deffn
298
299@deffn {Command} {show ip ospf database max-age} {}
300@end deffn
301
302@deffn {Command} {show ip ospf database self-originate} {}
303@end deffn
304
305@deffn {Command} {show ip ospf refresher} {}
306@end deffn
307
308@deffn {Command} {show ip ospf route} {}
309@end deffn
310
311@node Debugging OSPF, , Showing OSPF information, OSPFv2
312@comment node-name, next, previous, up
313@section Debugging OSPF
314
315@deffn {Command} {debug ospf packet (hello|dd|ls-request|ls-update|ls-ack|all) (send|recv) [detail]} {}
316@deffnx {Command} {no debug ospf packet (hello|dd|ls-request|ls-update|ls-ack|all) (send|recv) [detail]} {}
317@end deffn
318
319@deffn {Command} {debug ospf ism} {}
320@deffnx {Command} {debug ospf ism (status|events|timers)} {}
321@deffnx {Command} {no debug ospf ism} {}
322@deffnx {Command} {no debug ospf ism (status|events|timers)} {}
323@end deffn
324
325@deffn {Command} {debug ospf nsm} {}
326@deffnx {Command} {debug ospf nsm (status|events|timers)} {}
327@deffnx {Command} {no debug ospf nsm} {}
328@deffnx {Command} {no debug ospf nsm (status|events|timers)} {}
329@end deffn
330
331@deffn {Command} {debug ospf lsa} {}
332@deffnx {Command} {debug ospf lsa (generate|flooding|refresh)} {}
333@deffnx {Command} {no debug ospf lsa} {}
334@deffnx {Command} {no debug ospf lsa (generate|flooding|refresh)} {}
335@end deffn
336
337@deffn {Command} {debug ospf zebra} {}
338@deffnx {Command} {debug ospf zebra (interface|redistribute)} {}
339@deffnx {Command} {no debug ospf zebra} {}
340@deffnx {Command} {no debug ospf zebra (interface|redistribute)} {}
341@end deffn
342
343@deffn {Command} {show debugging ospf} {}
344@end deffn
345