1.. _ospfv3:
2
3******
4OSPFv3
5******
6
7*ospf6d* is a daemon support OSPF version 3 for IPv6 network. OSPF for IPv6 is
8described in :rfc:`2740`.
9
10.. _ospf6-router:
11
12OSPF6 router
13============
14
15.. index:: router ospf6
16.. clicmd:: router ospf6
17
18.. index:: ospf6 router-id A.B.C.D
19.. clicmd:: ospf6 router-id A.B.C.D
20
21   Set router's Router-ID.
22
23.. index:: interface IFNAME area (0-4294967295)
24.. clicmd:: interface IFNAME area (0-4294967295)
25
26.. index:: interface IFNAME area A.B.C.D
27.. clicmd:: interface IFNAME area A.B.C.D
28
29   Bind interface to specified area, and start sending OSPF packets. `area` can
30   be specified as 0.
31
32.. index:: timers throttle spf DELAY INITIAL-HOLDTIME MAX-HOLDTIME
33.. clicmd:: timers throttle spf DELAY INITIAL-HOLDTIME MAX-HOLDTIME
34
35.. index:: no timers throttle spf
36.. clicmd:: no timers throttle spf
37
38   This command sets the initial `delay`, the `initial-holdtime`
39   and the `maximum-holdtime` between when SPF is calculated and the
40   event which triggered the calculation. The times are specified in
41   milliseconds and must be in the range of 0 to 600000 milliseconds.
42
43   The `delay` specifies the minimum amount of time to delay SPF
44   calculation (hence it affects how long SPF calculation is delayed after
45   an event which occurs outside of the holdtime of any previous SPF
46   calculation, and also serves as a minimum holdtime).
47
48   Consecutive SPF calculations will always be separated by at least
49   'hold-time' milliseconds. The hold-time is adaptive and initially is
50   set to the `initial-holdtime` configured with the above command.
51   Events which occur within the holdtime of the previous SPF calculation
52   will cause the holdtime to be increased by `initial-holdtime`, bounded
53   by the `maximum-holdtime` configured with this command. If the adaptive
54   hold-time elapses without any SPF-triggering event occurring then
55   the current holdtime is reset to the `initial-holdtime`.
56
57   .. code-block:: frr
58
59      router ospf6
60       timers throttle spf 200 400 10000
61
62
63   In this example, the `delay` is set to 200ms, the initial holdtime is set
64   to 400ms and the `maximum holdtime` to 10s. Hence there will always be at
65   least 200ms between an event which requires SPF calculation and the actual
66   SPF calculation. Further consecutive SPF calculations will always be
67   separated by between 400ms to 10s, the hold-time increasing by 400ms each
68   time an SPF-triggering event occurs within the hold-time of the previous
69   SPF calculation.
70
71.. index:: auto-cost reference-bandwidth COST
72.. clicmd:: auto-cost reference-bandwidth COST
73
74.. index:: no auto-cost reference-bandwidth
75.. clicmd:: no auto-cost reference-bandwidth
76
77   This sets the reference bandwidth for cost calculations, where this
78   bandwidth is considered equivalent to an OSPF cost of 1, specified in
79   Mbits/s. The default is 100Mbit/s (i.e. a link of bandwidth 100Mbit/s
80   or higher will have a cost of 1. Cost of lower bandwidth links will be
81   scaled with reference to this cost).
82
83   This configuration setting MUST be consistent across all routers
84   within the OSPF domain.
85
86.. _ospf6-area:
87
88OSPF6 area
89==========
90
91Area support for OSPFv3 is not yet implemented.
92
93.. _ospf6-interface:
94
95OSPF6 interface
96===============
97
98.. index:: ipv6 ospf6 cost COST
99.. clicmd:: ipv6 ospf6 cost COST
100
101   Sets interface's output cost. Default value depends on the interface
102   bandwidth and on the auto-cost reference bandwidth.
103
104.. index:: ipv6 ospf6 hello-interval HELLOINTERVAL
105.. clicmd:: ipv6 ospf6 hello-interval HELLOINTERVAL
106
107   Sets interface's Hello Interval. Default 10
108
109.. index:: ipv6 ospf6 dead-interval DEADINTERVAL
110.. clicmd:: ipv6 ospf6 dead-interval DEADINTERVAL
111
112   Sets interface's Router Dead Interval. Default value is 40.
113
114.. index:: ipv6 ospf6 retransmit-interval RETRANSMITINTERVAL
115.. clicmd:: ipv6 ospf6 retransmit-interval RETRANSMITINTERVAL
116
117   Sets interface's Rxmt Interval. Default value is 5.
118
119.. index:: ipv6 ospf6 priority PRIORITY
120.. clicmd:: ipv6 ospf6 priority PRIORITY
121
122   Sets interface's Router Priority. Default value is 1.
123
124.. index:: ipv6 ospf6 transmit-delay TRANSMITDELAY
125.. clicmd:: ipv6 ospf6 transmit-delay TRANSMITDELAY
126
127   Sets interface's Inf-Trans-Delay. Default value is 1.
128
129.. index:: ipv6 ospf6 network (broadcast|point-to-point)
130.. clicmd:: ipv6 ospf6 network (broadcast|point-to-point)
131
132   Set explicitly network type for specified interface.
133
134OSPF6 route-map
135===============
136
137Usage of *ospfd6*'s route-map support.
138
139.. index:: set metric [+|-](0-4294967295)
140.. clicmd:: set metric [+|-](0-4294967295)
141
142   Set a metric for matched route when sending announcement. Use plus (+) sign
143   to add a metric value to an existing metric. Use minus (-) sign to
144   substract a metric value from an existing metric.
145
146.. _redistribute-routes-to-ospf6:
147
148Redistribute routes to OSPF6
149============================
150
151.. index:: redistribute static
152.. clicmd:: redistribute static
153
154.. index:: redistribute connected
155.. clicmd:: redistribute connected
156
157.. index:: redistribute ripng
158.. clicmd:: redistribute ripng
159
160
161.. _showing-ospf6-information:
162
163Showing OSPF6 information
164=========================
165
166.. index:: show ipv6 ospf6 [INSTANCE_ID]
167.. clicmd:: show ipv6 ospf6 [INSTANCE_ID]
168
169   INSTANCE_ID is an optional OSPF instance ID. To see router ID and OSPF
170   instance ID, simply type "show ipv6 ospf6 <cr>".
171
172.. index:: show ipv6 ospf6 database
173.. clicmd:: show ipv6 ospf6 database
174
175   This command shows LSA database summary. You can specify the type of LSA.
176
177.. index:: show ipv6 ospf6 interface
178.. clicmd:: show ipv6 ospf6 interface
179
180   To see OSPF interface configuration like costs.
181
182.. index:: show ipv6 ospf6 neighbor
183.. clicmd:: show ipv6 ospf6 neighbor
184
185   Shows state and chosen (Backup) DR of neighbor.
186
187.. index:: show ipv6 ospf6 request-list A.B.C.D
188.. clicmd:: show ipv6 ospf6 request-list A.B.C.D
189
190   Shows requestlist of neighbor.
191
192.. index:: show ipv6 route ospf6
193.. clicmd:: show ipv6 route ospf6
194
195   This command shows internal routing table.
196
197.. index:: show ipv6 ospf6 zebra
198.. clicmd:: show ipv6 ospf6 zebra
199
200   Shows state about what is being redistributed between zebra and OSPF6
201
202OSPF6 Configuration Examples
203============================
204
205Example of ospf6d configured on one interface and area:
206
207.. code-block:: frr
208
209   interface eth0
210    ipv6 ospf6 instance-id 0
211   !
212   router ospf6
213    ospf6 router-id 212.17.55.53
214    area 0.0.0.0 range 2001:770:105:2::/64
215    interface eth0 area 0.0.0.0
216   !
217