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