1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
|
.. _OSPFv2:
******
OSPFv2
******
:abbr:`OSPF (Open Shortest Path First)` version 2 is a routing protocol
which is described in :rfc:`2328`. OSPF is an
:abbr:`IGP (Interior Gateway Protocol)`. Compared with :abbr:`RIP`,
:abbr:`OSPF` can provide scalable network support and faster
convergence times. OSPF is widely used in large networks such as
:abbr:`ISP (Internet Service Provider)` backbone and enterprise
networks.
@include ospf_fundamentals.texi
.. _Configuring_ospfd:
Configuring ospfd
=================
There are no *ospfd* specific options. Common options can be
specified (:ref:`Common_Invocation_Options`) to *ospfd*.
*ospfd* needs to acquire interface information from
*zebra* in order to function. Therefore *zebra* must be
running before invoking *ospfd*. Also, if *zebra* is
restarted then *ospfd* must be too.
Like other daemons, *ospfd* configuration is done in :abbr:`OSPF`
specific configuration file :file:`ospfd.conf`.
.. _OSPF_router:
OSPF router
===========
To start OSPF process you have to specify the OSPF router. As of this
writing, *ospfd* does not support multiple OSPF processes.
.. index:: Command {router ospf} {}
Command {router ospf} {}
.. index:: Command {no router ospf} {}
Command {no router ospf} {}
Enable or disable the OSPF process. *ospfd* does not yet
support multiple OSPF processes. So you can not specify an OSPF process
number.
.. index:: {OSPF Command} {ospf router-id `a.b.c.d`} {}
{OSPF Command} {ospf router-id `a.b.c.d`} {}
.. index:: {OSPF Command} {no ospf router-id} {}
{OSPF Command} {no ospf router-id} {}
.. _ospf_router-id:
This sets the router-ID of the OSPF process. The
router-ID may be an IP address of the router, but need not be - it can
be any arbitrary 32bit number. However it MUST be unique within the
entire OSPF domain to the OSPF speaker - bad things will happen if
multiple OSPF speakers are configured with the same router-ID! If one
is not specified then *ospfd* will obtain a router-ID
automatically from *zebra*.
.. index:: {OSPF Command} {ospf abr-type `type`} {}
{OSPF Command} {ospf abr-type `type`} {}
.. index:: {OSPF Command} {no ospf abr-type `type`} {}
{OSPF Command} {no ospf abr-type `type`} {}
`type` can be cisco|ibm|shortcut|standard. The "Cisco" and "IBM" types
are equivalent.
The OSPF standard for ABR behaviour does not allow an ABR to consider
routes through non-backbone areas when its links to the backbone are
down, even when there are other ABRs in attached non-backbone areas
which still can reach the backbone - this restriction exists primarily
to ensure routing-loops are avoided.
With the "Cisco" or "IBM" ABR type, the default in this release of
FRR, this restriction is lifted, allowing an ABR to consider
summaries learnt from other ABRs through non-backbone areas, and hence
route via non-backbone areas as a last resort when, and only when,
backbone links are down.
Note that areas with fully-adjacent virtual-links are considered to be
"transit capable" and can always be used to route backbone traffic, and
hence are unaffected by this setting (:ref:`OSPF_virtual-link`).
More information regarding the behaviour controlled by this command can
be found in :rfc:`3509`, and :t:`draft-ietf-ospf-shortcut-abr-02.txt`.
Quote: "Though the definition of the :abbr:`ABR (Area Border Router)`
in the OSPF specification does not require a router with multiple
attached areas to have a backbone connection, it is actually
necessary to provide successful routing to the inter-area and
external destinations. If this requirement is not met, all traffic
destined for the areas not connected to such an ABR or out of the
OSPF domain, is dropped. This document describes alternative ABR
behaviors implemented in Cisco and IBM routers."
.. index:: {OSPF Command} {ospf rfc1583compatibility} {}
{OSPF Command} {ospf rfc1583compatibility} {}
.. index:: {OSPF Command} {no ospf rfc1583compatibility} {}
{OSPF Command} {no ospf rfc1583compatibility} {}
:rfc:`2328`, the sucessor to :rfc:`1583`, suggests according
to section G.2 (changes) in section 16.4 a change to the path
preference algorithm that prevents possible routing loops that were
possible in the old version of OSPFv2. More specifically it demands
that inter-area paths and intra-area backbone path are now of equal preference
but still both preferred to external paths.
This command should NOT be set normally.
.. index:: {OSPF Command} {log-adjacency-changes [detail]} {}
{OSPF Command} {log-adjacency-changes [detail]} {}
.. index:: {OSPF Command} {no log-adjacency-changes [detail]} {}
{OSPF Command} {no log-adjacency-changes [detail]} {}
Configures ospfd to log changes in adjacency. With the optional
detail argument, all changes in adjacency status are shown. Without detail,
only changes to full or regressions are shown.
.. index:: {OSPF Command} {passive-interface `interface`} {}
{OSPF Command} {passive-interface `interface`} {}
.. index:: {OSPF Command} {no passive-interface `interface`} {}
{OSPF Command} {no passive-interface `interface`} {}
.. _OSPF_passive-interface:
Do not speak OSPF interface on the
given interface, but do advertise the interface as a stub link in the
router-:abbr:`LSA (Link State Advertisement)` for this router. This
allows one to advertise addresses on such connected interfaces without
having to originate AS-External/Type-5 LSAs (which have global flooding
scope) - as would occur if connected addresses were redistributed into
OSPF (:ref:`Redistribute_routes_to_OSPF`)@. This is the only way to
advertise non-OSPF links into stub areas.
.. index:: {OSPF Command} {timers throttle spf `delay` `initial-holdtime` `max-holdtime`} {}
{OSPF Command} {timers throttle spf `delay` `initial-holdtime` `max-holdtime`} {}
.. index:: {OSPF Command} {no timers throttle spf} {}
{OSPF Command} {no timers throttle spf} {}
This command sets the initial `delay`, the `initial-holdtime`
and the `maximum-holdtime` between when SPF is calculated and the
event which triggered the calculation. The times are specified in
milliseconds and must be in the range of 0 to 600000 milliseconds.
The `delay` specifies the minimum amount of time to delay SPF
calculation (hence it affects how long SPF calculation is delayed after
an event which occurs outside of the holdtime of any previous SPF
calculation, and also serves as a minimum holdtime).
Consecutive SPF calculations will always be seperated by at least
'hold-time' milliseconds. The hold-time is adaptive and initially is
set to the `initial-holdtime` configured with the above command.
Events which occur within the holdtime of the previous SPF calculation
will cause the holdtime to be increased by `initial-holdtime`, bounded
by the `maximum-holdtime` configured with this command. If the adaptive
hold-time elapses without any SPF-triggering event occuring then
the current holdtime is reset to the `initial-holdtime`. The current
holdtime can be viewed with :ref:`show_ip_ospf`, where it is expressed as
a multiplier of the `initial-holdtime`.
::
router ospf
timers throttle spf 200 400 10000
In this example, the `delay` is set to 200ms, the @var{initial
holdtime} is set to 400ms and the `maximum holdtime` to 10s. Hence
there will always be at least 200ms between an event which requires SPF
calculation and the actual SPF calculation. Further consecutive SPF
calculations will always be seperated by between 400ms to 10s, the
hold-time increasing by 400ms each time an SPF-triggering event occurs
within the hold-time of the previous SPF calculation.
This command supercedes the *timers spf* command in previous FRR
releases.
.. index:: {OSPF Command} {max-metric router-lsa [on-startup|on-shutdown] (5-86400)} {}
{OSPF Command} {max-metric router-lsa [on-startup|on-shutdown] (5-86400)} {}
.. index:: {OSPF Command} {max-metric router-lsa administrative} {}
{OSPF Command} {max-metric router-lsa administrative} {}
.. index:: {OSPF Command} {no max-metric router-lsa [on-startup|on-shutdown|administrative]} {}
{OSPF Command} {no max-metric router-lsa [on-startup|on-shutdown|administrative]} {}
This enables :rfc:`3137` support,
where the OSPF process describes its transit links in its router-LSA as
having infinite distance so that other routers will avoid calculating
transit paths through the router while still being able to reach
networks through the router.
This support may be enabled administratively (and indefinitely) or
conditionally. Conditional enabling of max-metric router-lsas can be
for a period of seconds after startup and/or for a period of seconds
prior to shutdown.
Enabling this for a period after startup allows OSPF to converge fully
first without affecting any existing routes used by other routers,
while still allowing any connected stub links and/or redistributed
routes to be reachable. Enabling this for a period of time in advance
of shutdown allows the router to gracefully excuse itself from the OSPF
domain.
Enabling this feature administratively allows for administrative
intervention for whatever reason, for an indefinite period of time.
Note that if the configuration is written to file, this administrative
form of the stub-router command will also be written to file. If
*ospfd* is restarted later, the command will then take effect
until manually deconfigured.
Configured state of this feature as well as current status, such as the
number of second remaining till on-startup or on-shutdown ends, can be
viewed with the :ref:`show_ip_ospf` command.
.. index:: {OSPF Command} {auto-cost reference-bandwidth (1-4294967)} {}
{OSPF Command} {auto-cost reference-bandwidth (1-4294967)} {}
.. index:: {OSPF Command} {no auto-cost reference-bandwidth} {}
{OSPF Command} {no auto-cost reference-bandwidth} {}
.. _OSPF_auto-cost_reference-bandwidth:
This sets the reference
bandwidth for cost calculations, where this bandwidth is considered
equivalent to an OSPF cost of 1, specified in Mbits/s. The default is
100Mbit/s (i.e. a link of bandwidth 100Mbit/s or higher will have a
cost of 1. Cost of lower bandwidth links will be scaled with reference
to this cost).
This configuration setting MUST be consistent across all routers within the
OSPF domain.
.. index:: {OSPF Command} {network `a.b.c.d/m` area `a.b.c.d`} {}
{OSPF Command} {network `a.b.c.d/m` area `a.b.c.d`} {}
.. index:: {OSPF Command} {network `a.b.c.d/m` area `(0-4294967295)`} {}
{OSPF Command} {network `a.b.c.d/m` area `(0-4294967295)`} {}
.. index:: {OSPF Command} {no network `a.b.c.d/m` area `a.b.c.d`} {}
{OSPF Command} {no network `a.b.c.d/m` area `a.b.c.d`} {}
.. index:: {OSPF Command} {no network `a.b.c.d/m` area `(0-4294967295)`} {}
{OSPF Command} {no network `a.b.c.d/m` area `(0-4294967295)`} {}
.. _OSPF_network_command:
This command specifies the OSPF enabled interface(s). If the interface has
an address from range 192.168.1.0/24 then the command below enables ospf
on this interface so router can provide network information to the other
ospf routers via this interface.
::
router ospf
network 192.168.1.0/24 area 0.0.0.0
Prefix length in interface must be equal or bigger (ie. smaller network) than
prefix length in network statement. For example statement above doesn't enable
ospf on interface with address 192.168.1.1/23, but it does on interface with
address 192.168.1.129/25.
Note that the behavior when there is a peer address
defined on an interface changed after release 0.99.7.
Currently, if a peer prefix has been configured,
then we test whether the prefix in the network command contains
the destination prefix. Otherwise, we test whether the network command prefix
contains the local address prefix of the interface.
In some cases it may be more convenient to enable OSPF on a per
interface/subnet basis (:ref:`OSPF_ip_ospf_area_command`).
.. _OSPF_area:
OSPF area
=========
.. index:: {OSPF Command} {area `a.b.c.d` range `a.b.c.d/m`} {}
{OSPF Command} {area `a.b.c.d` range `a.b.c.d/m`} {}
.. index:: {OSPF Command} {area (0-4294967295) range `a.b.c.d/m`} {}
{OSPF Command} {area (0-4294967295) range `a.b.c.d/m`} {}
.. index:: {OSPF Command} {no area `a.b.c.d` range `a.b.c.d/m`} {}
{OSPF Command} {no area `a.b.c.d` range `a.b.c.d/m`} {}
.. index:: {OSPF Command} {no area (0-4294967295) range `a.b.c.d/m`} {}
{OSPF Command} {no area (0-4294967295) range `a.b.c.d/m`} {}
Summarize intra area paths from specified area into one Type-3 summary-LSA
announced to other areas. This command can be used only in ABR and ONLY
router-LSAs (Type-1) and network-LSAs (Type-2) (ie. LSAs with scope area) can
be summarized. Type-5 AS-external-LSAs can't be summarized - their scope is AS.
Summarizing Type-7 AS-external-LSAs isn't supported yet by FRR.
::
router ospf
network 192.168.1.0/24 area 0.0.0.0
network 10.0.0.0/8 area 0.0.0.10
area 0.0.0.10 range 10.0.0.0/8
With configuration above one Type-3 Summary-LSA with routing info 10.0.0.0/8 is
announced into backbone area if area 0.0.0.10 contains at least one intra-area
network (ie. described with router or network LSA) from this range.
.. index:: {OSPF Command} {area `a.b.c.d` range IPV4_PREFIX not-advertise} {}
{OSPF Command} {area `a.b.c.d` range IPV4_PREFIX not-advertise} {}
.. index:: {OSPF Command} {no area `a.b.c.d` range IPV4_PREFIX not-advertise} {}
{OSPF Command} {no area `a.b.c.d` range IPV4_PREFIX not-advertise} {}
Instead of summarizing intra area paths filter them - ie. intra area paths from this
range are not advertised into other areas.
This command makes sense in ABR only.
.. index:: {OSPF Command} {area `a.b.c.d` range IPV4_PREFIX substitute IPV4_PREFIX} {}
{OSPF Command} {area `a.b.c.d` range IPV4_PREFIX substitute IPV4_PREFIX} {}
.. index:: {OSPF Command} {no area `a.b.c.d` range IPV4_PREFIX substitute IPV4_PREFIX} {}
{OSPF Command} {no area `a.b.c.d` range IPV4_PREFIX substitute IPV4_PREFIX} {}
Substitute summarized prefix with another prefix.
::
router ospf
network 192.168.1.0/24 area 0.0.0.0
network 10.0.0.0/8 area 0.0.0.10
area 0.0.0.10 range 10.0.0.0/8 substitute 11.0.0.0/8
One Type-3 summary-LSA with routing info 11.0.0.0/8 is announced into backbone area if
area 0.0.0.10 contains at least one intra-area network (ie. described with router-LSA or
network-LSA) from range 10.0.0.0/8.
This command makes sense in ABR only.
.. index:: {OSPF Command} {area `a.b.c.d` virtual-link `a.b.c.d`} {}
{OSPF Command} {area `a.b.c.d` virtual-link `a.b.c.d`} {}
.. index:: {OSPF Command} {area (0-4294967295) virtual-link `a.b.c.d`} {}
{OSPF Command} {area (0-4294967295) virtual-link `a.b.c.d`} {}
.. index:: {OSPF Command} {no area `a.b.c.d` virtual-link `a.b.c.d`} {}
{OSPF Command} {no area `a.b.c.d` virtual-link `a.b.c.d`} {}
.. index:: {OSPF Command} {no area (0-4294967295) virtual-link `a.b.c.d`} {}
{OSPF Command} {no area (0-4294967295) virtual-link `a.b.c.d`} {}
.. _OSPF_virtual-link:
.. index:: {OSPF Command} {area `a.b.c.d` shortcut} {}
{OSPF Command} {area `a.b.c.d` shortcut} {}
.. index:: {OSPF Command} {area (0-4294967295) shortcut} {}
{OSPF Command} {area (0-4294967295) shortcut} {}
.. index:: {OSPF Command} {no area `a.b.c.d` shortcut} {}
{OSPF Command} {no area `a.b.c.d` shortcut} {}
.. index:: {OSPF Command} {no area (0-4294967295) shortcut} {}
{OSPF Command} {no area (0-4294967295) shortcut} {}
Configure the area as Shortcut capable. See :rfc:`3509`. This requires
that the 'abr-type' be set to 'shortcut'.
.. index:: {OSPF Command} {area `a.b.c.d` stub} {}
{OSPF Command} {area `a.b.c.d` stub} {}
.. index:: {OSPF Command} {area (0-4294967295) stub} {}
{OSPF Command} {area (0-4294967295) stub} {}
.. index:: {OSPF Command} {no area `a.b.c.d` stub} {}
{OSPF Command} {no area `a.b.c.d` stub} {}
.. index:: {OSPF Command} {no area (0-4294967295) stub} {}
{OSPF Command} {no area (0-4294967295) stub} {}
Configure the area to be a stub area. That is, an area where no router
originates routes external to OSPF and hence an area where all external
routes are via the ABR(s). Hence, ABRs for such an area do not need
to pass AS-External LSAs (type-5s) or ASBR-Summary LSAs (type-4) into the
area. They need only pass Network-Summary (type-3) LSAs into such an area,
along with a default-route summary.
.. index:: {OSPF Command} {area `a.b.c.d` stub no-summary} {}
{OSPF Command} {area `a.b.c.d` stub no-summary} {}
.. index:: {OSPF Command} {area (0-4294967295) stub no-summary} {}
{OSPF Command} {area (0-4294967295) stub no-summary} {}
.. index:: {OSPF Command} {no area `a.b.c.d` stub no-summary} {}
{OSPF Command} {no area `a.b.c.d` stub no-summary} {}
.. index:: {OSPF Command} {no area (0-4294967295) stub no-summary} {}
{OSPF Command} {no area (0-4294967295) stub no-summary} {}
Prevents an *ospfd* ABR from injecting inter-area
summaries into the specified stub area.
.. index:: {OSPF Command} {area `a.b.c.d` default-cost (0-16777215)} {}
{OSPF Command} {area `a.b.c.d` default-cost (0-16777215)} {}
.. index:: {OSPF Command} {no area `a.b.c.d` default-cost (0-16777215)} {}
{OSPF Command} {no area `a.b.c.d` default-cost (0-16777215)} {}
Set the cost of default-summary LSAs announced to stubby areas.
.. index:: {OSPF Command} {area `a.b.c.d` export-list NAME} {}
{OSPF Command} {area `a.b.c.d` export-list NAME} {}
.. index:: {OSPF Command} {area (0-4294967295) export-list NAME} {}
{OSPF Command} {area (0-4294967295) export-list NAME} {}
.. index:: {OSPF Command} {no area `a.b.c.d` export-list NAME} {}
{OSPF Command} {no area `a.b.c.d` export-list NAME} {}
.. index:: {OSPF Command} {no area (0-4294967295) export-list NAME} {}
{OSPF Command} {no area (0-4294967295) export-list NAME} {}
Filter Type-3 summary-LSAs announced to other areas originated from intra-
area paths from specified area.
::
router ospf
network 192.168.1.0/24 area 0.0.0.0
network 10.0.0.0/8 area 0.0.0.10
area 0.0.0.10 export-list foo
!
access-list foo permit 10.10.0.0/16
access-list foo deny any
With example above any intra-area paths from area 0.0.0.10 and from range
10.10.0.0/16 (for example 10.10.1.0/24 and 10.10.2.128/30) are announced into
other areas as Type-3 summary-LSA's, but any others (for example 10.11.0.0/16
or 10.128.30.16/30) aren't.
This command is only relevant if the router is an ABR for the specified
area.
.. index:: {OSPF Command} {area `a.b.c.d` import-list NAME} {}
{OSPF Command} {area `a.b.c.d` import-list NAME} {}
.. index:: {OSPF Command} {area (0-4294967295) import-list NAME} {}
{OSPF Command} {area (0-4294967295) import-list NAME} {}
.. index:: {OSPF Command} {no area `a.b.c.d` import-list NAME} {}
{OSPF Command} {no area `a.b.c.d` import-list NAME} {}
.. index:: {OSPF Command} {no area (0-4294967295) import-list NAME} {}
{OSPF Command} {no area (0-4294967295) import-list NAME} {}
Same as export-list, but it applies to paths announced into specified area as
Type-3 summary-LSAs.
.. index:: {OSPF Command} {area `a.b.c.d` filter-list prefix NAME in} {}
{OSPF Command} {area `a.b.c.d` filter-list prefix NAME in} {}
.. index:: {OSPF Command} {area `a.b.c.d` filter-list prefix NAME out} {}
{OSPF Command} {area `a.b.c.d` filter-list prefix NAME out} {}
.. index:: {OSPF Command} {area (0-4294967295) filter-list prefix NAME in} {}
{OSPF Command} {area (0-4294967295) filter-list prefix NAME in} {}
.. index:: {OSPF Command} {area (0-4294967295) filter-list prefix NAME out} {}
{OSPF Command} {area (0-4294967295) filter-list prefix NAME out} {}
.. index:: {OSPF Command} {no area `a.b.c.d` filter-list prefix NAME in} {}
{OSPF Command} {no area `a.b.c.d` filter-list prefix NAME in} {}
.. index:: {OSPF Command} {no area `a.b.c.d` filter-list prefix NAME out} {}
{OSPF Command} {no area `a.b.c.d` filter-list prefix NAME out} {}
.. index:: {OSPF Command} {no area (0-4294967295) filter-list prefix NAME in} {}
{OSPF Command} {no area (0-4294967295) filter-list prefix NAME in} {}
.. index:: {OSPF Command} {no area (0-4294967295) filter-list prefix NAME out} {}
{OSPF Command} {no area (0-4294967295) filter-list prefix NAME out} {}
Filtering Type-3 summary-LSAs to/from area using prefix lists. This command
makes sense in ABR only.
.. index:: {OSPF Command} {area `a.b.c.d` authentication} {}
{OSPF Command} {area `a.b.c.d` authentication} {}
.. index:: {OSPF Command} {area (0-4294967295) authentication} {}
{OSPF Command} {area (0-4294967295) authentication} {}
.. index:: {OSPF Command} {no area `a.b.c.d` authentication} {}
{OSPF Command} {no area `a.b.c.d` authentication} {}
.. index:: {OSPF Command} {no area (0-4294967295) authentication} {}
{OSPF Command} {no area (0-4294967295) authentication} {}
Specify that simple password authentication should be used for the given
area.
.. index:: {OSPF Command} {area `a.b.c.d` authentication message-digest} {}
{OSPF Command} {area `a.b.c.d` authentication message-digest} {}
.. index:: {OSPF Command} {area (0-4294967295) authentication message-digest} {}
{OSPF Command} {area (0-4294967295) authentication message-digest} {}
.. _area_authentication_message-digest:
Specify that OSPF packets
must be authenticated with MD5 HMACs within the given area. Keying
material must also be configured on a per-interface basis (:ref:`ip_ospf_message-digest-key`).
MD5 authentication may also be configured on a per-interface basis
(:ref:`ip_ospf_authentication_message-digest`). Such per-interface
settings will override any per-area authentication setting.
.. _OSPF_interface:
OSPF interface
==============
.. index:: {Interface Command} {ip ospf area `AREA` [`ADDR`]} {}
{Interface Command} {ip ospf area `AREA` [`ADDR`]} {}
.. index:: {Interface Command} {no ip ospf area [`ADDR`]} {}
{Interface Command} {no ip ospf area [`ADDR`]} {}
.. _OSPF_ip_ospf_area_command:
Enable OSPF on the interface, optionally restricted to just the IP address
given by `ADDR`, putting it in the `AREA` area. Per interface area
settings take precedence to network commands (:ref:`OSPF_network_command`).
If you have a lot of interfaces, and/or a lot of subnets, then enabling OSPF
via this command may result in a slight performance improvement.
.. index:: {Interface Command} {ip ospf authentication-key `AUTH_KEY`} {}
{Interface Command} {ip ospf authentication-key `AUTH_KEY`} {}
.. index:: {Interface Command} {no ip ospf authentication-key} {}
{Interface Command} {no ip ospf authentication-key} {}
Set OSPF authentication key to a simple password. After setting `AUTH_KEY`,
all OSPF packets are authenticated. `AUTH_KEY` has length up to 8 chars.
Simple text password authentication is insecure and deprecated in favour of
MD5 HMAC authentication (:ref:`ip_ospf_authentication_message-digest`).
.. index:: {Interface Command} {ip ospf authentication message-digest} {}
{Interface Command} {ip ospf authentication message-digest} {}
.. _ip_ospf_authentication_message-digest:
Specify that MD5 HMAC
authentication must be used on this interface. MD5 keying material must
also be configured (:ref:`ip_ospf_message-digest-key`). Overrides any
authentication enabled on a per-area basis (:ref:`area_authentication_message-digest`).
Note that OSPF MD5 authentication requires that time never go backwards
(correct time is NOT important, only that it never goes backwards), even
across resets, if ospfd is to be able to promptly reestabish adjacencies
with its neighbours after restarts/reboots. The host should have system
time be set at boot from an external or non-volatile source (eg battery backed clock, NTP,
etc.) or else the system clock should be periodically saved to non-volative
storage and restored at boot if MD5 authentication is to be expected to work
reliably.
.. index:: {Interface Command} {ip ospf message-digest-key KEYID md5 KEY} {}
{Interface Command} {ip ospf message-digest-key KEYID md5 KEY} {}
.. index:: {Interface Command} {no ip ospf message-digest-key} {}
{Interface Command} {no ip ospf message-digest-key} {}
.. _ip_ospf_message-digest-key:
Set OSPF authentication key to a
cryptographic password. The cryptographic algorithm is MD5.
KEYID identifies secret key used to create the message digest. This ID
is part of the protocol and must be consistent across routers on a
link.
KEY is the actual message digest key, of up to 16 chars (larger strings
will be truncated), and is associated with the given KEYID.
.. index:: {Interface Command} {ip ospf cost (1-65535)} {}
{Interface Command} {ip ospf cost (1-65535)} {}
.. index:: {Interface Command} {no ip ospf cost} {}
{Interface Command} {no ip ospf cost} {}
Set link cost for the specified interface. The cost value is set to router-LSA's
metric field and used for SPF calculation.
.. index:: {Interface Command} {ip ospf dead-interval (1-65535)} {}
{Interface Command} {ip ospf dead-interval (1-65535)} {}
.. index:: {Interface Command} {ip ospf dead-interval minimal hello-multiplier (2-20)} {}
{Interface Command} {ip ospf dead-interval minimal hello-multiplier (2-20)} {}
.. index:: {Interface Command} {no ip ospf dead-interval} {}
{Interface Command} {no ip ospf dead-interval} {}
.. _ip_ospf_dead-interval_minimal:
Set number of seconds for
RouterDeadInterval timer value used for Wait Timer and Inactivity
Timer. This value must be the same for all routers attached to a
common network. The default value is 40 seconds.
If 'minimal' is specified instead, then the dead-interval is set to 1
second and one must specify a hello-multiplier. The hello-multiplier
specifies how many Hellos to send per second, from 2 (every 500ms) to
20 (every 50ms). Thus one can have 1s convergence time for OSPF. If this form
is specified, then the hello-interval advertised in Hello packets is set to
0 and the hello-interval on received Hello packets is not checked, thus
the hello-multiplier need NOT be the same across multiple routers on a common
link.
.. index:: {Interface Command} {ip ospf hello-interval (1-65535)} {}
{Interface Command} {ip ospf hello-interval (1-65535)} {}
.. index:: {Interface Command} {no ip ospf hello-interval} {}
{Interface Command} {no ip ospf hello-interval} {}
Set number of seconds for HelloInterval timer value. Setting this value,
Hello packet will be sent every timer value seconds on the specified interface.
This value must be the same for all routers attached to a common network.
The default value is 10 seconds.
This command has no effect if :ref:`ip_ospf_dead-interval_minimal` is also
specified for the interface.
.. index:: {Interface Command} {ip ospf network (broadcast|non-broadcast|point-to-multipoint|point-to-point)} {}
{Interface Command} {ip ospf network (broadcast|non-broadcast|point-to-multipoint|point-to-point)} {}
.. index:: {Interface Command} {no ip ospf network} {}
{Interface Command} {no ip ospf network} {}
Set explicitly network type for specifed interface.
.. index:: {Interface Command} {ip ospf priority (0-255)} {}
{Interface Command} {ip ospf priority (0-255)} {}
.. index:: {Interface Command} {no ip ospf priority} {}
{Interface Command} {no ip ospf priority} {}
Set RouterPriority integer value. The router with the highest priority
will be more eligible to become Designated Router. Setting the value
to 0, makes the router ineligible to become Designated Router. The
default value is 1.
.. index:: {Interface Command} {ip ospf retransmit-interval (1-65535)} {}
{Interface Command} {ip ospf retransmit-interval (1-65535)} {}
.. index:: {Interface Command} {no ip ospf retransmit interval} {}
{Interface Command} {no ip ospf retransmit interval} {}
Set number of seconds for RxmtInterval timer value. This value is used
when retransmitting Database Description and Link State Request packets.
The default value is 5 seconds.
.. index:: {Interface Command} {ip ospf transmit-delay} {}
{Interface Command} {ip ospf transmit-delay} {}
.. index:: {Interface Command} {no ip ospf transmit-delay} {}
{Interface Command} {no ip ospf transmit-delay} {}
Set number of seconds for InfTransDelay value. LSAs' age should be
incremented by this value when transmitting.
The default value is 1 seconds.
.. index:: {Interface Command} {ip ospf area (A.B.C.D|(0-4294967295))} {}
{Interface Command} {ip ospf area (A.B.C.D|(0-4294967295))} {}
.. index:: {Interface Command} {no ip ospf area} {}
{Interface Command} {no ip ospf area} {}
Enable ospf on an interface and set associated area.
.. _Redistribute_routes_to_OSPF:
Redistribute routes to OSPF
===========================
.. index:: {OSPF Command} {redistribute (kernel|connected|static|rip|bgp)} {}
{OSPF Command} {redistribute (kernel|connected|static|rip|bgp)} {}
.. index:: {OSPF Command} {redistribute (kernel|connected|static|rip|bgp) `route-map`} {}
{OSPF Command} {redistribute (kernel|connected|static|rip|bgp) `route-map`} {}
.. index:: {OSPF Command} {redistribute (kernel|connected|static|rip|bgp) metric-type (1|2)} {}
{OSPF Command} {redistribute (kernel|connected|static|rip|bgp) metric-type (1|2)} {}
.. index:: {OSPF Command} {redistribute (kernel|connected|static|rip|bgp) metric-type (1|2) route-map `word`} {}
{OSPF Command} {redistribute (kernel|connected|static|rip|bgp) metric-type (1|2) route-map `word`} {}
.. index:: {OSPF Command} {redistribute (kernel|connected|static|rip|bgp) metric (0-16777214)} {}
{OSPF Command} {redistribute (kernel|connected|static|rip|bgp) metric (0-16777214)} {}
.. index:: {OSPF Command} {redistribute (kernel|connected|static|rip|bgp) metric (0-16777214) route-map `word`} {}
{OSPF Command} {redistribute (kernel|connected|static|rip|bgp) metric (0-16777214) route-map `word`} {}
.. index:: {OSPF Command} {redistribute (kernel|connected|static|rip|bgp) metric-type (1|2) metric (0-16777214)} {}
{OSPF Command} {redistribute (kernel|connected|static|rip|bgp) metric-type (1|2) metric (0-16777214)} {}
.. index:: {OSPF Command} {redistribute (kernel|connected|static|rip|bgp) metric-type (1|2) metric (0-16777214) route-map `word`} {}
{OSPF Command} {redistribute (kernel|connected|static|rip|bgp) metric-type (1|2) metric (0-16777214) route-map `word`} {}
.. index:: {OSPF Command} {no redistribute (kernel|connected|static|rip|bgp)} {}
{OSPF Command} {no redistribute (kernel|connected|static|rip|bgp)} {}
.. _OSPF_redistribute:
Redistribute routes of the specified protocol
or kind into OSPF, with the metric type and metric set if specified,
filtering the routes using the given route-map if specified.
Redistributed routes may also be filtered with distribute-lists, see
:ref:`ospf_distribute-list`.
Redistributed routes are distributed as into OSPF as Type-5 External
LSAs into links to areas that accept external routes, Type-7 External LSAs
for NSSA areas and are not redistributed at all into Stub areas, where
external routes are not permitted.
Note that for connected routes, one may instead use
:term:`passive-interface`, see :ref:`OSPF_passive-interface`.
.. index:: {OSPF Command} {default-information originate} {}
{OSPF Command} {default-information originate} {}
.. index:: {OSPF Command} {default-information originate metric (0-16777214)} {}
{OSPF Command} {default-information originate metric (0-16777214)} {}
.. index:: {OSPF Command} {default-information originate metric (0-16777214) metric-type (1|2)} {}
{OSPF Command} {default-information originate metric (0-16777214) metric-type (1|2)} {}
.. index:: {OSPF Command} {default-information originate metric (0-16777214) metric-type (1|2) route-map `word`} {}
{OSPF Command} {default-information originate metric (0-16777214) metric-type (1|2) route-map `word`} {}
.. index:: {OSPF Command} {default-information originate always} {}
{OSPF Command} {default-information originate always} {}
.. index:: {OSPF Command} {default-information originate always metric (0-16777214)} {}
{OSPF Command} {default-information originate always metric (0-16777214)} {}
.. index:: {OSPF Command} {default-information originate always metric (0-16777214) metric-type (1|2)} {}
{OSPF Command} {default-information originate always metric (0-16777214) metric-type (1|2)} {}
.. index:: {OSPF Command} {default-information originate always metric (0-16777214) metric-type (1|2) route-map `word`} {}
{OSPF Command} {default-information originate always metric (0-16777214) metric-type (1|2) route-map `word`} {}
.. index:: {OSPF Command} {no default-information originate} {}
{OSPF Command} {no default-information originate} {}
Originate an AS-External (type-5) LSA describing a default route into
all external-routing capable areas, of the specified metric and metric
type. If the 'always' keyword is given then the default is always
advertised, even when there is no default present in the routing table.
.. index:: {OSPF Command} {distribute-list NAME out (kernel|connected|static|rip|ospf} {}
{OSPF Command} {distribute-list NAME out (kernel|connected|static|rip|ospf} {}
.. index:: {OSPF Command} {no distribute-list NAME out (kernel|connected|static|rip|ospf} {}
{OSPF Command} {no distribute-list NAME out (kernel|connected|static|rip|ospf} {}
.. _ospf_distribute-list:
Apply the access-list filter, NAME, to
redistributed routes of the given type before allowing the routes to
redistributed into OSPF (:ref:`OSPF_redistribute`).
.. index:: {OSPF Command} {default-metric (0-16777214)} {}
{OSPF Command} {default-metric (0-16777214)} {}
.. index:: {OSPF Command} {no default-metric} {}
{OSPF Command} {no default-metric} {}
.. index:: {OSPF Command} {distance (1-255)} {}
{OSPF Command} {distance (1-255)} {}
.. index:: {OSPF Command} {no distance (1-255)} {}
{OSPF Command} {no distance (1-255)} {}
.. index:: {OSPF Command} {distance ospf (intra-area|inter-area|external) (1-255)} {}
{OSPF Command} {distance ospf (intra-area|inter-area|external) (1-255)} {}
.. index:: {OSPF Command} {no distance ospf} {}
{OSPF Command} {no distance ospf} {}
.. index:: {Command} {router zebra} {}
{Command} {router zebra} {}
.. index:: {Command} {no router zebra} {}
{Command} {no router zebra} {}
.. _Showing_OSPF_information:
Showing OSPF information
========================
.. index:: {Command} {show ip ospf} {}
{Command} {show ip ospf} {}
.. _show_ip_ospf:
Show information on a variety of general OSPF and
area state and configuration information.
.. index:: {Command} {show ip ospf interface [INTERFACE]} {}
{Command} {show ip ospf interface [INTERFACE]} {}
Show state and configuration of OSPF the specified interface, or all
interfaces if no interface is given.
.. index:: {Command} {show ip ospf neighbor} {}
{Command} {show ip ospf neighbor} {}
.. index:: {Command} {show ip ospf neighbor INTERFACE} {}
{Command} {show ip ospf neighbor INTERFACE} {}
.. index:: {Command} {show ip ospf neighbor detail} {}
{Command} {show ip ospf neighbor detail} {}
.. index:: {Command} {show ip ospf neighbor INTERFACE detail} {}
{Command} {show ip ospf neighbor INTERFACE detail} {}
.. index:: {Command} {show ip ospf database} {}
{Command} {show ip ospf database} {}
.. index:: {Command} {show ip ospf database (asbr-summary|external|network|router|summary)} {}
{Command} {show ip ospf database (asbr-summary|external|network|router|summary)} {}
.. index:: {Command} {show ip ospf database (asbr-summary|external|network|router|summary) `link-state-id`} {}
{Command} {show ip ospf database (asbr-summary|external|network|router|summary) `link-state-id`} {}
.. index:: {Command} {show ip ospf database (asbr-summary|external|network|router|summary) `link-state-id` adv-router `adv-router`} {}
{Command} {show ip ospf database (asbr-summary|external|network|router|summary) `link-state-id` adv-router `adv-router`} {}
.. index:: {Command} {show ip ospf database (asbr-summary|external|network|router|summary) adv-router `adv-router`} {}
{Command} {show ip ospf database (asbr-summary|external|network|router|summary) adv-router `adv-router`} {}
.. index:: {Command} {show ip ospf database (asbr-summary|external|network|router|summary) `link-state-id` self-originate} {}
{Command} {show ip ospf database (asbr-summary|external|network|router|summary) `link-state-id` self-originate} {}
.. index:: {Command} {show ip ospf database (asbr-summary|external|network|router|summary) self-originate} {}
{Command} {show ip ospf database (asbr-summary|external|network|router|summary) self-originate} {}
.. index:: {Command} {show ip ospf database max-age} {}
{Command} {show ip ospf database max-age} {}
.. index:: {Command} {show ip ospf database self-originate} {}
{Command} {show ip ospf database self-originate} {}
.. index:: {Command} {show ip ospf route} {}
{Command} {show ip ospf route} {}
Show the OSPF routing table, as determined by the most recent SPF calculation.
.. _Opaque_LSA:
Opaque LSA
==========
.. index:: {OSPF Command} {ospf opaque-lsa} {}
{OSPF Command} {ospf opaque-lsa} {}
.. index:: {OSPF Command} {capability opaque} {}
{OSPF Command} {capability opaque} {}
.. index:: {OSPF Command} {no ospf opaque-lsa} {}
{OSPF Command} {no ospf opaque-lsa} {}
.. index:: {OSPF Command} {no capability opaque} {}
{OSPF Command} {no capability opaque} {}
*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`).
.. index:: {Command} {show ip ospf database (opaque-link|opaque-area|opaque-external)} {}
{Command} {show ip ospf database (opaque-link|opaque-area|opaque-external)} {}
.. index:: {Command} {show ip ospf database (opaque-link|opaque-area|opaque-external) `link-state-id`} {}
{Command} {show ip ospf database (opaque-link|opaque-area|opaque-external) `link-state-id`} {}
.. index:: {Command} {show ip ospf database (opaque-link|opaque-area|opaque-external) `link-state-id` adv-router `adv-router`} {}
{Command} {show ip ospf database (opaque-link|opaque-area|opaque-external) `link-state-id` adv-router `adv-router`} {}
.. index:: {Command} {show ip ospf database (opaque-link|opaque-area|opaque-external) adv-router `adv-router`} {}
{Command} {show ip ospf database (opaque-link|opaque-area|opaque-external) adv-router `adv-router`} {}
.. index:: {Command} {show ip ospf database (opaque-link|opaque-area|opaque-external) `link-state-id` self-originate} {}
{Command} {show ip ospf database (opaque-link|opaque-area|opaque-external) `link-state-id` self-originate} {}
.. index:: {Command} {show ip ospf database (opaque-link|opaque-area|opaque-external) self-originate} {}
{Command} {show ip ospf database (opaque-link|opaque-area|opaque-external) self-originate} {}
Show Opaque LSA from the database.
.. _Traffic_Engineering:
Traffic Engineering
===================
.. index:: {OSPF Command} {mpls-te on} {}
{OSPF Command} {mpls-te on} {}
.. index:: {OSPF Command} {no mpls-te} {}
{OSPF Command} {no mpls-te} {}
Enable Traffic Engineering LSA flooding.
.. index:: {OSPF Command} {mpls-te router-address <A.B.C.D>} {}
{OSPF Command} {mpls-te router-address <A.B.C.D>} {}
.. index:: {OSPF Command} {no mpls-te} {}
{OSPF Command} {no mpls-te} {}
Configure stable IP address for MPLS-TE. This IP address is then advertise in Opaque LSA Type-10 TLV=1 (TE)
option 1 (Router-Address).
.. index:: {OSPF Command} {mpls-te inter-as area <area-id>|as} {}
{OSPF Command} {mpls-te inter-as area <area-id>|as} {}
.. index:: {OSPF Command} {no mpls-te inter-as} {}
{OSPF Command} {no mpls-te inter-as} {}
Enable RFC5392 suuport - Inter-AS TE v2 - to flood Traffic Engineering parameters of Inter-AS link.
2 modes are supported: AREA and AS; LSA are flood in AREA <area-id> with Opaque Type-10,
respectively in AS with Opaque Type-11. In all case, Opaque-LSA TLV=6.
.. index:: {Command} {show ip ospf mpls-te interface} {}
{Command} {show ip ospf mpls-te interface} {}
.. index:: {Command} {show ip ospf mpls-te interface `interface`} {}
{Command} {show ip ospf mpls-te interface `interface`} {}
Show MPLS Traffic Engineering parameters for all or specified interface.
.. index:: {Command} {show ip ospf mpls-te router} {}
{Command} {show ip ospf mpls-te router} {}
Show Traffic Engineering router parameters.
.. _Router_Information:
Router Information
==================
.. index:: {OSPF Command} {router-info [as | area <A.B.C.D>]} {}
{OSPF Command} {router-info [as | area <A.B.C.D>]} {}
.. index:: {OSPF Command} {no router-info} {}
{OSPF Command} {no router-info} {}
Enable Router Information (RFC4970) LSA advertisement with AS scope (default) or Area scope flooding
when area is specified.
.. index:: {OSPF Command} {pce address <A.B.C.D>} {}
{OSPF Command} {pce address <A.B.C.D>} {}
.. index:: {OSPF Command} {no pce address} {}
{OSPF Command} {no pce address} {}
.. index:: {OSPF Command} {pce domain as (0-65535)} {}
{OSPF Command} {pce domain as (0-65535)} {}
.. index:: {OSPF Command} {no pce domain as (0-65535)} {}
{OSPF Command} {no pce domain as (0-65535)} {}
.. index:: {OSPF Command} {pce neighbor as (0-65535)} {}
{OSPF Command} {pce neighbor as (0-65535)} {}
.. index:: {OSPF Command} {no pce neighbor as (0-65535)} {}
{OSPF Command} {no pce neighbor as (0-65535)} {}
.. index:: {OSPF Command} {pce flag BITPATTERN} {}
{OSPF Command} {pce flag BITPATTERN} {}
.. index:: {OSPF Command} {no pce flag} {}
{OSPF Command} {no pce flag} {}
.. index:: {OSPF Command} {pce scope BITPATTERN} {}
{OSPF Command} {pce scope BITPATTERN} {}
.. index:: {OSPF Command} {no pce scope} {}
{OSPF Command} {no pce scope} {}
The commands are conform to RFC 5088 and allow OSPF router announce Path Compuatation Elemenent (PCE) capabilities
through the Router Information (RI) LSA. Router Information must be enable prior to this. The command set/unset
respectively the PCE IP adress, Autonomous System (AS) numbers of controlled domains, neighbor ASs, flag and scope.
For flag and scope, please refer to RFC5088 for the BITPATTERN recognition. Multiple 'pce neighbor' command could
be specified in order to specify all PCE neighbours.
.. index:: {Command} {show ip ospf router-info} {}
{Command} {show ip ospf router-info} {}
Show Router Capabilities flag.
.. index:: {Command} {show ip ospf router-info pce} {}
{Command} {show ip ospf router-info pce} {}
Show Router Capabilities PCE parameters.
.. _Debugging_OSPF:
Debugging OSPF
==============
.. index:: {Command} {debug ospf packet (hello|dd|ls-request|ls-update|ls-ack|all) (send|recv) [detail]} {}
{Command} {debug ospf packet (hello|dd|ls-request|ls-update|ls-ack|all) (send|recv) [detail]} {}
.. index:: {Command} {no debug ospf packet (hello|dd|ls-request|ls-update|ls-ack|all) (send|recv) [detail]} {}
{Command} {no debug ospf packet (hello|dd|ls-request|ls-update|ls-ack|all) (send|recv) [detail]} {}
Dump Packet for debugging
.. index:: {Command} {debug ospf ism} {}
{Command} {debug ospf ism} {}
.. index:: {Command} {debug ospf ism (status|events|timers)} {}
{Command} {debug ospf ism (status|events|timers)} {}
.. index:: {Command} {no debug ospf ism} {}
{Command} {no debug ospf ism} {}
.. index:: {Command} {no debug ospf ism (status|events|timers)} {}
{Command} {no debug ospf ism (status|events|timers)} {}
Show debug information of Interface State Machine
.. index:: {Command} {debug ospf nsm} {}
{Command} {debug ospf nsm} {}
.. index:: {Command} {debug ospf nsm (status|events|timers)} {}
{Command} {debug ospf nsm (status|events|timers)} {}
.. index:: {Command} {no debug ospf nsm} {}
{Command} {no debug ospf nsm} {}
.. index:: {Command} {no debug ospf nsm (status|events|timers)} {}
{Command} {no debug ospf nsm (status|events|timers)} {}
Show debug information of Network State Machine
.. index:: {Command} {debug ospf event} {}
{Command} {debug ospf event} {}
.. index:: {Command} {no debug ospf event} {}
{Command} {no debug ospf event} {}
Show debug information of OSPF event
.. index:: {Command} {debug ospf nssa} {}
{Command} {debug ospf nssa} {}
.. index:: {Command} {no debug ospf nssa} {}
{Command} {no debug ospf nssa} {}
Show debug information about Not So Stub Area
.. index:: {Command} {debug ospf lsa} {}
{Command} {debug ospf lsa} {}
.. index:: {Command} {debug ospf lsa (generate|flooding|refresh)} {}
{Command} {debug ospf lsa (generate|flooding|refresh)} {}
.. index:: {Command} {no debug ospf lsa} {}
{Command} {no debug ospf lsa} {}
.. index:: {Command} {no debug ospf lsa (generate|flooding|refresh)} {}
{Command} {no debug ospf lsa (generate|flooding|refresh)} {}
Show debug detail of Link State messages
.. index:: {Command} {debug ospf te} {}
{Command} {debug ospf te} {}
.. index:: {Command} {no debug ospf te} {}
{Command} {no debug ospf te} {}
Show debug information about Traffic Engineering LSA
.. index:: {Command} {debug ospf zebra} {}
{Command} {debug ospf zebra} {}
.. index:: {Command} {debug ospf zebra (interface|redistribute)} {}
{Command} {debug ospf zebra (interface|redistribute)} {}
.. index:: {Command} {no debug ospf zebra} {}
{Command} {no debug ospf zebra} {}
.. index:: {Command} {no debug ospf zebra (interface|redistribute)} {}
{Command} {no debug ospf zebra (interface|redistribute)} {}
Show debug information of ZEBRA API
.. index:: {Command} {show debugging ospf} {}
{Command} {show debugging ospf} {}
OSPF Configuration Examples
===========================
A simple example, with MD5 authentication enabled:
::
!
interface bge0
ip ospf authentication message-digest
ip ospf message-digest-key 1 md5 ABCDEFGHIJK
!
router ospf
network 192.168.0.0/16 area 0.0.0.1
area 0.0.0.1 authentication message-digest
An :abbr:`ABR` router, with MD5 authentication and performing summarisation
of networks between the areas:
::
!
password ABCDEF
log file /var/log/frr/ospfd.log
service advanced-vty
!
interface eth0
ip ospf authentication message-digest
ip ospf message-digest-key 1 md5 ABCDEFGHIJK
!
interface ppp0
!
interface br0
ip ospf authentication message-digest
ip ospf message-digest-key 2 md5 XYZ12345
!
router ospf
ospf router-id 192.168.0.1
redistribute connected
passive interface ppp0
network 192.168.0.0/24 area 0.0.0.0
network 10.0.0.0/16 area 0.0.0.0
network 192.168.1.0/24 area 0.0.0.1
area 0.0.0.0 authentication message-digest
area 0.0.0.0 range 10.0.0.0/16
area 0.0.0.0 range 192.168.0.0/24
area 0.0.0.1 authentication message-digest
area 0.0.0.1 range 10.2.0.0/16
!
A Traffic Engineering configuration, with Inter-ASv2 support.
- First, the 'zebra.conf' part:
::
hostname HOSTNAME
password PASSWORD
log file /var/log/zebra.log
!
interface eth0
ip address 198.168.1.1/24
mpls-te on
mpls-te link metric 10
mpls-te link max-bw 1.25e+06
mpls-te link max-rsv-bw 1.25e+06
mpls-te link unrsv-bw 0 1.25e+06
mpls-te link unrsv-bw 1 1.25e+06
mpls-te link unrsv-bw 2 1.25e+06
mpls-te link unrsv-bw 3 1.25e+06
mpls-te link unrsv-bw 4 1.25e+06
mpls-te link unrsv-bw 5 1.25e+06
mpls-te link unrsv-bw 6 1.25e+06
mpls-te link unrsv-bw 7 1.25e+06
mpls-te link rsc-clsclr 0xab
!
interface eth1
ip address 192.168.2.1/24
mpls-te on
mpls-te link metric 10
mpls-te link max-bw 1.25e+06
mpls-te link max-rsv-bw 1.25e+06
mpls-te link unrsv-bw 0 1.25e+06
mpls-te link unrsv-bw 1 1.25e+06
mpls-te link unrsv-bw 2 1.25e+06
mpls-te link unrsv-bw 3 1.25e+06
mpls-te link unrsv-bw 4 1.25e+06
mpls-te link unrsv-bw 5 1.25e+06
mpls-te link unrsv-bw 6 1.25e+06
mpls-te link unrsv-bw 7 1.25e+06
mpls-te link rsc-clsclr 0xab
mpls-te neighbor 192.168.2.2 as 65000
- Then the 'ospfd.conf' itself:
::
hostname HOSTNAME
password PASSWORD
log file /var/log/ospfd.log
!
!
interface eth0
ip ospf hello-interval 60
ip ospf dead-interval 240
!
interface eth1
ip ospf hello-interval 60
ip ospf dead-interval 240
!
!
router ospf
ospf router-id 192.168.1.1
network 192.168.0.0/16 area 1
ospf opaque-lsa
mpls-te
mpls-te router-address 192.168.1.1
mpls-te inter-as area 1
!
line vty
A router information example with PCE advsertisement:
::
!
router ospf
ospf router-id 192.168.1.1
network 192.168.0.0/16 area 1
capability opaque
mpls-te
mpls-te router-address 192.168.1.1
router-info area 0.0.0.1
pce address 192.168.1.1
pce flag 0x80
pce domain as 65400
pce neighbor as 65500
pce neighbor as 65200
pce scope 0x80
!
|