]>
Commit | Line | Data |
---|---|---|
11ab5329 | 1 | .. _ospfv3: |
42fc5d26 QY |
2 | |
3 | ****** | |
4 | OSPFv3 | |
5 | ****** | |
6 | ||
c1a54c05 QY |
7 | *ospf6d* is a daemon support OSPF version 3 for IPv6 network. OSPF for IPv6 is |
8 | described in :rfc:`2740`. | |
42fc5d26 | 9 | |
11ab5329 | 10 | .. _ospf6-router: |
42fc5d26 QY |
11 | |
12 | OSPF6 router | |
13 | ============ | |
14 | ||
c1a54c05 | 15 | .. clicmd:: router ospf6 |
42fc5d26 | 16 | |
cb762746 | 17 | .. clicmd:: ospf6 router-id A.B.C.D |
42fc5d26 | 18 | |
c1a54c05 | 19 | Set router's Router-ID. |
42fc5d26 | 20 | |
fb220832 DE |
21 | .. clicmd:: interface IFNAME area (0-4294967295) |
22 | ||
fb220832 | 23 | .. clicmd:: interface IFNAME area A.B.C.D |
42fc5d26 | 24 | |
c1a54c05 QY |
25 | Bind interface to specified area, and start sending OSPF packets. `area` can |
26 | be specified as 0. | |
42fc5d26 | 27 | |
1e31580f | 28 | .. clicmd:: timers throttle spf (0-600000) (0-600000) (0-600000) |
42fc5d26 | 29 | |
c1a54c05 QY |
30 | This command sets the initial `delay`, the `initial-holdtime` |
31 | and the `maximum-holdtime` between when SPF is calculated and the | |
32 | event which triggered the calculation. The times are specified in | |
33 | milliseconds and must be in the range of 0 to 600000 milliseconds. | |
42fc5d26 | 34 | |
c1a54c05 QY |
35 | The `delay` specifies the minimum amount of time to delay SPF |
36 | calculation (hence it affects how long SPF calculation is delayed after | |
37 | an event which occurs outside of the holdtime of any previous SPF | |
38 | calculation, and also serves as a minimum holdtime). | |
42fc5d26 | 39 | |
d1e7591e | 40 | Consecutive SPF calculations will always be separated by at least |
c1a54c05 QY |
41 | 'hold-time' milliseconds. The hold-time is adaptive and initially is |
42 | set to the `initial-holdtime` configured with the above command. | |
43 | Events which occur within the holdtime of the previous SPF calculation | |
44 | will cause the holdtime to be increased by `initial-holdtime`, bounded | |
45 | by the `maximum-holdtime` configured with this command. If the adaptive | |
d1e7591e | 46 | hold-time elapses without any SPF-triggering event occurring then |
9eb95b3b QY |
47 | the current holdtime is reset to the `initial-holdtime`. |
48 | ||
49 | .. code-block:: frr | |
42fc5d26 | 50 | |
42fc5d26 QY |
51 | router ospf6 |
52 | timers throttle spf 200 400 10000 | |
a8c90e15 | 53 | |
42fc5d26 | 54 | |
c1a54c05 QY |
55 | In this example, the `delay` is set to 200ms, the initial holdtime is set |
56 | to 400ms and the `maximum holdtime` to 10s. Hence there will always be at | |
57 | least 200ms between an event which requires SPF calculation and the actual | |
58 | SPF calculation. Further consecutive SPF calculations will always be | |
d1e7591e | 59 | separated by between 400ms to 10s, the hold-time increasing by 400ms each |
c1a54c05 QY |
60 | time an SPF-triggering event occurs within the hold-time of the previous |
61 | SPF calculation. | |
42fc5d26 | 62 | |
c1a54c05 | 63 | .. clicmd:: auto-cost reference-bandwidth COST |
42fc5d26 | 64 | |
42fc5d26 | 65 | |
c1a54c05 QY |
66 | This sets the reference bandwidth for cost calculations, where this |
67 | bandwidth is considered equivalent to an OSPF cost of 1, specified in | |
68 | Mbits/s. The default is 100Mbit/s (i.e. a link of bandwidth 100Mbit/s | |
69 | or higher will have a cost of 1. Cost of lower bandwidth links will be | |
70 | scaled with reference to this cost). | |
42fc5d26 | 71 | |
c1a54c05 QY |
72 | This configuration setting MUST be consistent across all routers |
73 | within the OSPF domain. | |
42fc5d26 | 74 | |
a874b986 | 75 | .. clicmd:: maximum-paths (1-64) |
1958143e MR |
76 | |
77 | Use this command to control the maximum number of parallel routes that | |
78 | OSPFv3 can support. The default is 64. | |
79 | ||
a874b986 | 80 | |
11ab5329 | 81 | .. _ospf6-area: |
42fc5d26 QY |
82 | |
83 | OSPF6 area | |
84 | ========== | |
85 | ||
86 | Area support for OSPFv3 is not yet implemented. | |
87 | ||
11ab5329 | 88 | .. _ospf6-interface: |
42fc5d26 QY |
89 | |
90 | OSPF6 interface | |
91 | =============== | |
92 | ||
c1a54c05 | 93 | .. clicmd:: ipv6 ospf6 cost COST |
42fc5d26 | 94 | |
c1a54c05 QY |
95 | Sets interface's output cost. Default value depends on the interface |
96 | bandwidth and on the auto-cost reference bandwidth. | |
42fc5d26 | 97 | |
c1a54c05 | 98 | .. clicmd:: ipv6 ospf6 hello-interval HELLOINTERVAL |
42fc5d26 | 99 | |
2de01166 | 100 | Sets interface's Hello Interval. Default 10 |
42fc5d26 | 101 | |
c1a54c05 | 102 | .. clicmd:: ipv6 ospf6 dead-interval DEADINTERVAL |
42fc5d26 | 103 | |
c1a54c05 | 104 | Sets interface's Router Dead Interval. Default value is 40. |
42fc5d26 | 105 | |
c1a54c05 | 106 | .. clicmd:: ipv6 ospf6 retransmit-interval RETRANSMITINTERVAL |
42fc5d26 | 107 | |
c1a54c05 | 108 | Sets interface's Rxmt Interval. Default value is 5. |
42fc5d26 | 109 | |
c1a54c05 | 110 | .. clicmd:: ipv6 ospf6 priority PRIORITY |
42fc5d26 | 111 | |
c1a54c05 | 112 | Sets interface's Router Priority. Default value is 1. |
42fc5d26 | 113 | |
c1a54c05 | 114 | .. clicmd:: ipv6 ospf6 transmit-delay TRANSMITDELAY |
42fc5d26 | 115 | |
c1a54c05 | 116 | Sets interface's Inf-Trans-Delay. Default value is 1. |
42fc5d26 | 117 | |
c1a54c05 | 118 | .. clicmd:: ipv6 ospf6 network (broadcast|point-to-point) |
42fc5d26 | 119 | |
d1e7591e | 120 | Set explicitly network type for specified interface. |
42fc5d26 | 121 | |
243892e0 DA |
122 | OSPF6 route-map |
123 | =============== | |
124 | ||
125 | Usage of *ospfd6*'s route-map support. | |
126 | ||
243892e0 DA |
127 | .. clicmd:: set metric [+|-](0-4294967295) |
128 | ||
129 | Set a metric for matched route when sending announcement. Use plus (+) sign | |
130 | to add a metric value to an existing metric. Use minus (-) sign to | |
131 | substract a metric value from an existing metric. | |
132 | ||
11ab5329 | 133 | .. _redistribute-routes-to-ospf6: |
42fc5d26 QY |
134 | |
135 | Redistribute routes to OSPF6 | |
136 | ============================ | |
137 | ||
1e31580f | 138 | .. clicmd:: redistribute <babel|bgp|connected|isis|kernel|openfabric|ripng|sharp|static|table> [route-map WORD] |
42fc5d26 | 139 | |
1e31580f | 140 | Redistribute routes from other protocols into OSPFv3. |
42fc5d26 | 141 | |
42fc5d26 | 142 | |
11ab5329 | 143 | .. _showing-ospf6-information: |
42fc5d26 QY |
144 | |
145 | Showing OSPF6 information | |
146 | ========================= | |
147 | ||
35a45dea | 148 | .. clicmd:: show ipv6 ospf6 [INSTANCE_ID] [json] |
42fc5d26 | 149 | |
c1a54c05 | 150 | INSTANCE_ID is an optional OSPF instance ID. To see router ID and OSPF |
35a45dea | 151 | instance ID, simply type "show ipv6 ospf6 <cr>". JSON output can be |
152 | obtained by appending 'json' to the end of command. | |
42fc5d26 | 153 | |
e4bacbaa | 154 | .. clicmd:: show ipv6 ospf6 database [<detail|dump|internal>] [json] |
42fc5d26 | 155 | |
e4bacbaa YR |
156 | This command shows LSAs present in the LSDB. There are three view options. |
157 | These options helps in viewing all the parameters of the LSAs. JSON output | |
158 | can be obtained by appending 'json' to the end of command. JSON option is | |
159 | not applicable with 'dump' option. | |
160 | ||
e4bacbaa YR |
161 | .. clicmd:: show ipv6 ospf6 database <router|network|inter-prefix|inter-router|as-external|group-membership|type-7|link|intra-prefix> [json] |
162 | ||
163 | These options filters out the LSA based on its type. The three views options | |
164 | works here as well. JSON output can be obtained by appending 'json' to the | |
165 | end of command. | |
166 | ||
e4bacbaa YR |
167 | .. clicmd:: show ipv6 ospf6 database adv-router A.B.C.D linkstate-id A.B.C.D [json] |
168 | ||
169 | The LSAs additinally can also be filtered with the linkstate-id and | |
170 | advertising-router fields. We can use the LSA type filter and views with | |
171 | this command as well and visa-versa. JSON output can be obtained by | |
172 | appending 'json' to the end of command. | |
173 | ||
e4bacbaa YR |
174 | .. clicmd:: show ipv6 ospf6 database self-originated [json] |
175 | ||
176 | This command is used to filter the LSAs which are originated by the present | |
177 | router. All the other filters are applicable here as well. | |
42fc5d26 | 178 | |
f16ae8cf | 179 | .. clicmd:: show ipv6 ospf6 interface [json] |
42fc5d26 | 180 | |
f16ae8cf | 181 | To see OSPF interface configuration like costs. JSON output can be |
182 | obtained by appending "json" in the end. | |
42fc5d26 | 183 | |
6a5bb300 | 184 | .. clicmd:: show ipv6 ospf6 neighbor [json] |
42fc5d26 | 185 | |
6a5bb300 | 186 | Shows state and chosen (Backup) DR of neighbor. JSON output can be |
187 | obtained by appending 'json' at the end. | |
42fc5d26 | 188 | |
ba30b376 | 189 | .. clicmd:: show ipv6 ospf6 interface traffic [json] |
190 | ||
191 | Shows counts of different packets that have been recieved and transmitted | |
192 | by the interfaces. JSON output can be obtained by appending "json" at the | |
193 | end. | |
194 | ||
c1a54c05 | 195 | .. clicmd:: show ipv6 ospf6 request-list A.B.C.D |
42fc5d26 | 196 | |
c1a54c05 | 197 | Shows requestlist of neighbor. |
42fc5d26 | 198 | |
c1a54c05 | 199 | .. clicmd:: show ipv6 route ospf6 |
42fc5d26 | 200 | |
c1a54c05 | 201 | This command shows internal routing table. |
42fc5d26 | 202 | |
9ebb75c5 | 203 | .. clicmd:: show ipv6 ospf6 zebra [json] |
42fc5d26 | 204 | |
9ebb75c5 | 205 | Shows state about what is being redistributed between zebra and OSPF6. |
206 | JSON output can be obtained by appending "json" at the end. | |
42fc5d26 | 207 | |
dd726234 | 208 | .. clicmd:: show ipv6 ospf6 redistribute [json] |
209 | ||
210 | Shows the routes which are redistributed by the router. JSON output can | |
211 | be obtained by appending 'json' at the end. | |
212 | ||
eacd0828 YR |
213 | .. clicmd:: show ipv6 ospf6 route [<intra-area|inter-area|external-1|external-2|X:X::X:X|X:X::X:X/M|detail|summary>] [json] |
214 | ||
215 | This command displays the ospfv3 routing table as determined by the most | |
216 | recent SPF calculations. Options are provided to view the different types | |
217 | of routes. Other than the standard view there are two other options, detail | |
218 | and summary. JSON output can be obtained by appending 'json' to the end of | |
219 | command. | |
220 | ||
eacd0828 YR |
221 | .. clicmd:: show ipv6 ospf6 route X:X::X:X/M match [detail] [json] |
222 | ||
223 | The additional match option will match the given address to the destination | |
224 | of the routes, and return the result accordingly. | |
225 | ||
35aeb295 YR |
226 | .. clicmd:: show ipv6 ospf6 interface [IFNAME] prefix [detail|<X:X::X:X|X:X::X:X/M> [<match|detail>]] [json] |
227 | ||
228 | This command shows the prefixes present in the interface routing table. | |
229 | Interface name can also be given. JSON output can be obtained by appending | |
230 | 'json' to the end of command. | |
231 | ||
42fc5d26 QY |
232 | OSPF6 Configuration Examples |
233 | ============================ | |
234 | ||
235 | Example of ospf6d configured on one interface and area: | |
236 | ||
9eb95b3b | 237 | .. code-block:: frr |
42fc5d26 | 238 | |
c1a54c05 QY |
239 | interface eth0 |
240 | ipv6 ospf6 instance-id 0 | |
241 | ! | |
242 | router ospf6 | |
349ee664 | 243 | ospf6 router-id 212.17.55.53 |
c1a54c05 QY |
244 | area 0.0.0.0 range 2001:770:105:2::/64 |
245 | interface eth0 area 0.0.0.0 | |
246 | ! |