Olivier Dugeon | ec04b9f | 2016-04-19 19:18:18 +0200 | [diff] [blame] | 1 | |
Paul Jakma | f912cb4 | 2006-07-27 23:30:16 +0000 | [diff] [blame] | 2 | @cindex OSPFv2 |
paul | 76b89b4 | 2004-11-06 17:13:09 +0000 | [diff] [blame] | 3 | @node OSPFv2 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4 | @chapter OSPFv2 |
| 5 | |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 6 | @acronym{OSPF,Open Shortest Path First} version 2 is a routing protocol |
| 7 | which is described in @cite{RFC2328, OSPF Version 2}. OSPF is an |
Paul Jakma | f912cb4 | 2006-07-27 23:30:16 +0000 | [diff] [blame] | 8 | @acronym{IGP,Interior Gateway Protocol}. Compared with @acronym{RIP}, |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 9 | @acronym{OSPF} can provide scalable network support and faster |
| 10 | convergence times. OSPF is widely used in large networks such as |
| 11 | @acronym{ISP,Internet Service Provider} backbone and enterprise |
| 12 | networks. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 13 | |
| 14 | @menu |
Paul Jakma | e56aab9 | 2015-10-20 16:14:56 +0100 | [diff] [blame] | 15 | * OSPF Fundamentals:: |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 16 | * Configuring ospfd:: |
| 17 | * OSPF router:: |
| 18 | * OSPF area:: |
| 19 | * OSPF interface:: |
| 20 | * Redistribute routes to OSPF:: |
| 21 | * Showing OSPF information:: |
Olivier Dugeon | ec04b9f | 2016-04-19 19:18:18 +0200 | [diff] [blame] | 22 | * Opaque LSA:: |
| 23 | * OSPF Traffic Engineering:: |
| 24 | * Router Information:: |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 25 | * Debugging OSPF:: |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 26 | * OSPF Configuration Examples:: |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 27 | @end menu |
| 28 | |
Paul Jakma | e56aab9 | 2015-10-20 16:14:56 +0100 | [diff] [blame] | 29 | @include ospf_fundamentals.texi |
| 30 | |
paul | 76b89b4 | 2004-11-06 17:13:09 +0000 | [diff] [blame] | 31 | @node Configuring ospfd |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 32 | @section Configuring ospfd |
| 33 | |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 34 | There are no @command{ospfd} specific options. Common options can be |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 35 | specified (@pxref{Common Invocation Options}) to @command{ospfd}. |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 36 | @command{ospfd} needs to acquire interface information from |
| 37 | @command{zebra} in order to function. Therefore @command{zebra} must be |
| 38 | running before invoking @command{ospfd}. Also, if @command{zebra} is |
| 39 | restarted then @command{ospfd} must be too. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 40 | |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 41 | Like other daemons, @command{ospfd} configuration is done in @acronym{OSPF} |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 42 | specific configuration file @file{ospfd.conf}. |
| 43 | |
paul | 76b89b4 | 2004-11-06 17:13:09 +0000 | [diff] [blame] | 44 | @node OSPF router |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 45 | @section OSPF router |
| 46 | |
| 47 | To start OSPF process you have to specify the OSPF router. As of this |
| 48 | writing, @command{ospfd} does not support multiple OSPF processes. |
| 49 | |
| 50 | @deffn Command {router ospf} {} |
| 51 | @deffnx Command {no router ospf} {} |
| 52 | Enable or disable the OSPF process. @command{ospfd} does not yet |
| 53 | support multiple OSPF processes. So you can not specify an OSPF process |
| 54 | number. |
| 55 | @end deffn |
| 56 | |
| 57 | @deffn {OSPF Command} {ospf router-id @var{a.b.c.d}} {} |
| 58 | @deffnx {OSPF Command} {no ospf router-id} {} |
Paul Jakma | c3eab60 | 2006-07-28 04:42:39 +0000 | [diff] [blame] | 59 | @anchor{ospf router-id}This sets the router-ID of the OSPF process. The |
| 60 | router-ID may be an IP address of the router, but need not be - it can |
| 61 | be any arbitrary 32bit number. However it MUST be unique within the |
| 62 | entire OSPF domain to the OSPF speaker - bad things will happen if |
| 63 | multiple OSPF speakers are configured with the same router-ID! If one |
| 64 | is not specified then @command{ospfd} will obtain a router-ID |
| 65 | automatically from @command{zebra}. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 66 | @end deffn |
| 67 | |
| 68 | @deffn {OSPF Command} {ospf abr-type @var{type}} {} |
| 69 | @deffnx {OSPF Command} {no ospf abr-type @var{type}} {} |
Paul Jakma | f912cb4 | 2006-07-27 23:30:16 +0000 | [diff] [blame] | 70 | @var{type} can be cisco|ibm|shortcut|standard. The "Cisco" and "IBM" types |
| 71 | are equivalent. |
| 72 | |
| 73 | The OSPF standard for ABR behaviour does not allow an ABR to consider |
| 74 | routes through non-backbone areas when its links to the backbone are |
| 75 | down, even when there are other ABRs in attached non-backbone areas |
| 76 | which still can reach the backbone - this restriction exists primarily |
| 77 | to ensure routing-loops are avoided. |
| 78 | |
| 79 | With the "Cisco" or "IBM" ABR type, the default in this release of |
| 80 | Quagga, this restriction is lifted, allowing an ABR to consider |
| 81 | summaries learnt from other ABRs through non-backbone areas, and hence |
| 82 | route via non-backbone areas as a last resort when, and only when, |
| 83 | backbone links are down. |
| 84 | |
| 85 | Note that areas with fully-adjacent virtual-links are considered to be |
| 86 | "transit capable" and can always be used to route backbone traffic, and |
| 87 | hence are unaffected by this setting (@pxref{OSPF virtual-link}). |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 88 | |
paul | d4f5031 | 2003-01-22 19:26:00 +0000 | [diff] [blame] | 89 | More information regarding the behaviour controlled by this command can |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 90 | be found in @cite{RFC 3509, Alternative Implementations of OSPF Area |
| 91 | Border Routers}, and @cite{draft-ietf-ospf-shortcut-abr-02.txt}. |
| 92 | |
| 93 | Quote: "Though the definition of the @acronym{ABR,Area Border Router} |
paul | d4f5031 | 2003-01-22 19:26:00 +0000 | [diff] [blame] | 94 | in the OSPF specification does not require a router with multiple |
| 95 | attached areas to have a backbone connection, it is actually |
| 96 | necessary to provide successful routing to the inter-area and |
| 97 | external destinations. If this requirement is not met, all traffic |
| 98 | destined for the areas not connected to such an ABR or out of the |
| 99 | OSPF domain, is dropped. This document describes alternative ABR |
| 100 | behaviors implemented in Cisco and IBM routers." |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 101 | @end deffn |
| 102 | |
| 103 | @deffn {OSPF Command} {ospf rfc1583compatibility} {} |
| 104 | @deffnx {OSPF Command} {no ospf rfc1583compatibility} {} |
Paul Jakma | f912cb4 | 2006-07-27 23:30:16 +0000 | [diff] [blame] | 105 | @cite{RFC2328}, the sucessor to @cite{RFC1583}, suggests according |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 106 | to section G.2 (changes) in section 16.4 a change to the path |
| 107 | preference algorithm that prevents possible routing loops that were |
| 108 | possible in the old version of OSPFv2. More specifically it demands |
Alexandre Chappuis | 37075da | 2011-09-13 16:33:45 +0400 | [diff] [blame] | 109 | that inter-area paths and intra-area backbone path are now of equal preference |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 110 | but still both preferred to external paths. |
| 111 | |
| 112 | This command should NOT be set normally. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 113 | @end deffn |
| 114 | |
Andrew J. Schorr | d7e60dd | 2006-06-29 20:20:52 +0000 | [diff] [blame] | 115 | @deffn {OSPF Command} {log-adjacency-changes [detail]} {} |
| 116 | @deffnx {OSPF Command} {no log-adjacency-changes [detail]} {} |
| 117 | Configures ospfd to log changes in adjacency. With the optional |
| 118 | detail argument, all changes in adjacency status are shown. Without detail, |
| 119 | only changes to full or regressions are shown. |
| 120 | @end deffn |
| 121 | |
Paul Jakma | f912cb4 | 2006-07-27 23:30:16 +0000 | [diff] [blame] | 122 | @deffn {OSPF Command} {passive-interface @var{interface}} {} |
| 123 | @deffnx {OSPF Command} {no passive-interface @var{interface}} {} |
Paul Jakma | c3eab60 | 2006-07-28 04:42:39 +0000 | [diff] [blame] | 124 | @anchor{OSPF passive-interface} Do not speak OSPF interface on the |
| 125 | given interface, but do advertise the interface as a stub link in the |
| 126 | router-@acronym{LSA,Link State Advertisement} for this router. This |
| 127 | allows one to advertise addresses on such connected interfaces without |
| 128 | having to originate AS-External/Type-5 LSAs (which have global flooding |
| 129 | scope) - as would occur if connected addresses were redistributed into |
| 130 | OSPF (@pxref{Redistribute routes to OSPF})@. This is the only way to |
| 131 | advertise non-OSPF links into stub areas. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 132 | @end deffn |
| 133 | |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 134 | @deffn {OSPF Command} {timers throttle spf @var{delay} @var{initial-holdtime} @var{max-holdtime}} {} |
| 135 | @deffnx {OSPF Command} {no timers throttle spf} {} |
| 136 | This command sets the initial @var{delay}, the @var{initial-holdtime} |
| 137 | and the @var{maximum-holdtime} between when SPF is calculated and the |
| 138 | event which triggered the calculation. The times are specified in |
| 139 | milliseconds and must be in the range of 0 to 600000 milliseconds. |
| 140 | |
| 141 | The @var{delay} specifies the minimum amount of time to delay SPF |
| 142 | calculation (hence it affects how long SPF calculation is delayed after |
| 143 | an event which occurs outside of the holdtime of any previous SPF |
| 144 | calculation, and also serves as a minimum holdtime). |
| 145 | |
| 146 | Consecutive SPF calculations will always be seperated by at least |
| 147 | 'hold-time' milliseconds. The hold-time is adaptive and initially is |
| 148 | set to the @var{initial-holdtime} configured with the above command. |
| 149 | Events which occur within the holdtime of the previous SPF calculation |
| 150 | will cause the holdtime to be increased by @var{initial-holdtime}, bounded |
| 151 | by the @var{maximum-holdtime} configured with this command. If the adaptive |
| 152 | hold-time elapses without any SPF-triggering event occuring then |
| 153 | the current holdtime is reset to the @var{initial-holdtime}. The current |
| 154 | holdtime can be viewed with @ref{show ip ospf}, where it is expressed as |
| 155 | a multiplier of the @var{initial-holdtime}. |
| 156 | |
| 157 | @example |
| 158 | @group |
| 159 | router ospf |
| 160 | timers throttle spf 200 400 10000 |
| 161 | @end group |
| 162 | @end example |
| 163 | |
| 164 | In this example, the @var{delay} is set to 200ms, the @var{initial |
| 165 | holdtime} is set to 400ms and the @var{maximum holdtime} to 10s. Hence |
| 166 | there will always be at least 200ms between an event which requires SPF |
| 167 | calculation and the actual SPF calculation. Further consecutive SPF |
| 168 | calculations will always be seperated by between 400ms to 10s, the |
| 169 | hold-time increasing by 400ms each time an SPF-triggering event occurs |
| 170 | within the hold-time of the previous SPF calculation. |
| 171 | |
| 172 | This command supercedes the @command{timers spf} command in previous Quagga |
| 173 | releases. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 174 | @end deffn |
| 175 | |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 176 | @deffn {OSPF Command} {max-metric router-lsa [on-startup|on-shutdown] <5-86400>} {} |
| 177 | @deffnx {OSPF Command} {max-metric router-lsa administrative} {} |
| 178 | @deffnx {OSPF Command} {no max-metric router-lsa [on-startup|on-shutdown|administrative]} {} |
| 179 | This enables @cite{RFC3137, OSPF Stub Router Advertisement} support, |
| 180 | where the OSPF process describes its transit links in its router-LSA as |
| 181 | having infinite distance so that other routers will avoid calculating |
| 182 | transit paths through the router while still being able to reach |
| 183 | networks through the router. |
| 184 | |
| 185 | This support may be enabled administratively (and indefinitely) or |
| 186 | conditionally. Conditional enabling of max-metric router-lsas can be |
| 187 | for a period of seconds after startup and/or for a period of seconds |
| 188 | prior to shutdown. |
| 189 | |
| 190 | Enabling this for a period after startup allows OSPF to converge fully |
| 191 | first without affecting any existing routes used by other routers, |
| 192 | while still allowing any connected stub links and/or redistributed |
| 193 | routes to be reachable. Enabling this for a period of time in advance |
| 194 | of shutdown allows the router to gracefully excuse itself from the OSPF |
| 195 | domain. |
| 196 | |
| 197 | Enabling this feature administratively allows for administrative |
| 198 | intervention for whatever reason, for an indefinite period of time. |
| 199 | Note that if the configuration is written to file, this administrative |
| 200 | form of the stub-router command will also be written to file. If |
| 201 | @command{ospfd} is restarted later, the command will then take effect |
| 202 | until manually deconfigured. |
| 203 | |
| 204 | Configured state of this feature as well as current status, such as the |
| 205 | number of second remaining till on-startup or on-shutdown ends, can be |
| 206 | viewed with the @ref{show ip ospf} command. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 207 | @end deffn |
| 208 | |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 209 | @deffn {OSPF Command} {auto-cost reference-bandwidth <1-4294967>} {} |
| 210 | @deffnx {OSPF Command} {no auto-cost reference-bandwidth} {} |
Paul Jakma | c3eab60 | 2006-07-28 04:42:39 +0000 | [diff] [blame] | 211 | @anchor{OSPF auto-cost reference-bandwidth}This sets the reference |
| 212 | bandwidth for cost calculations, where this bandwidth is considered |
| 213 | equivalent to an OSPF cost of 1, specified in Mbits/s. The default is |
| 214 | 100Mbit/s (i.e. a link of bandwidth 100Mbit/s or higher will have a |
| 215 | cost of 1. Cost of lower bandwidth links will be scaled with reference |
| 216 | to this cost). |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 217 | |
| 218 | This configuration setting MUST be consistent across all routers within the |
| 219 | OSPF domain. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 220 | @end deffn |
| 221 | |
| 222 | @deffn {OSPF Command} {network @var{a.b.c.d/m} area @var{a.b.c.d}} {} |
| 223 | @deffnx {OSPF Command} {network @var{a.b.c.d/m} area @var{<0-4294967295>}} {} |
| 224 | @deffnx {OSPF Command} {no network @var{a.b.c.d/m} area @var{a.b.c.d}} {} |
| 225 | @deffnx {OSPF Command} {no network @var{a.b.c.d/m} area @var{<0-4294967295>}} {} |
Paul Jakma | 8a667cf | 2009-08-27 16:51:42 +0100 | [diff] [blame] | 226 | @anchor{OSPF network command} |
hasso | a5b2b59 | 2004-04-17 10:09:29 +0000 | [diff] [blame] | 227 | This command specifies the OSPF enabled interface(s). If the interface has |
| 228 | an address from range 192.168.1.0/24 then the command below enables ospf |
| 229 | on this interface so router can provide network information to the other |
| 230 | ospf routers via this interface. |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 231 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 232 | @example |
| 233 | @group |
| 234 | router ospf |
hasso | a5b2b59 | 2004-04-17 10:09:29 +0000 | [diff] [blame] | 235 | network 192.168.1.0/24 area 0.0.0.0 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 236 | @end group |
| 237 | @end example |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 238 | |
hasso | a5b2b59 | 2004-04-17 10:09:29 +0000 | [diff] [blame] | 239 | Prefix length in interface must be equal or bigger (ie. smaller network) than |
| 240 | prefix length in network statement. For example statement above doesn't enable |
| 241 | ospf on interface with address 192.168.1.1/23, but it does on interface with |
| 242 | address 192.168.1.129/25. |
Andrew J. Schorr | f0ec832 | 2007-04-30 16:52:05 +0000 | [diff] [blame] | 243 | |
| 244 | Note that the behavior when there is a peer address |
| 245 | defined on an interface changed after release 0.99.7. |
| 246 | Currently, if a peer prefix has been configured, |
| 247 | then we test whether the prefix in the network command contains |
| 248 | the destination prefix. Otherwise, we test whether the network command prefix |
| 249 | contains the local address prefix of the interface. |
Paul Jakma | 8a667cf | 2009-08-27 16:51:42 +0100 | [diff] [blame] | 250 | |
| 251 | In some cases it may be more convenient to enable OSPF on a per |
| 252 | interface/subnet basis (@pxref{OSPF ip ospf area command}). |
| 253 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 254 | @end deffn |
| 255 | |
paul | 76b89b4 | 2004-11-06 17:13:09 +0000 | [diff] [blame] | 256 | @node OSPF area |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 257 | @section OSPF area |
| 258 | |
| 259 | @deffn {OSPF Command} {area @var{a.b.c.d} range @var{a.b.c.d/m}} {} |
| 260 | @deffnx {OSPF Command} {area <0-4294967295> range @var{a.b.c.d/m}} {} |
| 261 | @deffnx {OSPF Command} {no area @var{a.b.c.d} range @var{a.b.c.d/m}} {} |
| 262 | @deffnx {OSPF Command} {no area <0-4294967295> range @var{a.b.c.d/m}} {} |
hasso | 63869f1 | 2004-04-19 14:43:46 +0000 | [diff] [blame] | 263 | Summarize intra area paths from specified area into one Type-3 summary-LSA |
| 264 | announced to other areas. This command can be used only in ABR and ONLY |
| 265 | router-LSAs (Type-1) and network-LSAs (Type-2) (ie. LSAs with scope area) can |
| 266 | be summarized. Type-5 AS-external-LSAs can't be summarized - their scope is AS. |
| 267 | Summarizing Type-7 AS-external-LSAs isn't supported yet by Quagga. |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 268 | |
hasso | 63869f1 | 2004-04-19 14:43:46 +0000 | [diff] [blame] | 269 | @example |
| 270 | @group |
| 271 | router ospf |
| 272 | network 192.168.1.0/24 area 0.0.0.0 |
| 273 | network 10.0.0.0/8 area 0.0.0.10 |
| 274 | area 0.0.0.10 range 10.0.0.0/8 |
| 275 | @end group |
| 276 | @end example |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 277 | |
hasso | 63869f1 | 2004-04-19 14:43:46 +0000 | [diff] [blame] | 278 | With configuration above one Type-3 Summary-LSA with routing info 10.0.0.0/8 is |
| 279 | announced into backbone area if area 0.0.0.10 contains at least one intra-area |
| 280 | network (ie. described with router or network LSA) from this range. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 281 | @end deffn |
| 282 | |
hasso | 63869f1 | 2004-04-19 14:43:46 +0000 | [diff] [blame] | 283 | @deffn {OSPF Command} {area @var{a.b.c.d} range IPV4_PREFIX not-advertise} {} |
| 284 | @deffnx {OSPF Command} {no area @var{a.b.c.d} range IPV4_PREFIX not-advertise} {} |
| 285 | Instead of summarizing intra area paths filter them - ie. intra area paths from this |
| 286 | range are not advertised into other areas. |
| 287 | This command makes sense in ABR only. |
| 288 | @end deffn |
| 289 | |
hasso | 6b3fac0 | 2004-04-20 04:11:36 +0000 | [diff] [blame] | 290 | @deffn {OSPF Command} {area @var{a.b.c.d} range IPV4_PREFIX substitute IPV4_PREFIX} {} |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 291 | @deffnx {OSPF Command} {no area @var{a.b.c.d} range IPV4_PREFIX substitute IPV4_PREFIX} {} |
hasso | 63869f1 | 2004-04-19 14:43:46 +0000 | [diff] [blame] | 292 | Substitute summarized prefix with another prefix. |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 293 | |
hasso | 63869f1 | 2004-04-19 14:43:46 +0000 | [diff] [blame] | 294 | @example |
| 295 | @group |
| 296 | router ospf |
| 297 | network 192.168.1.0/24 area 0.0.0.0 |
| 298 | network 10.0.0.0/8 area 0.0.0.10 |
| 299 | area 0.0.0.10 range 10.0.0.0/8 substitute 11.0.0.0/8 |
| 300 | @end group |
| 301 | @end example |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 302 | |
hasso | 63869f1 | 2004-04-19 14:43:46 +0000 | [diff] [blame] | 303 | One Type-3 summary-LSA with routing info 11.0.0.0/8 is announced into backbone area if |
| 304 | area 0.0.0.10 contains at least one intra-area network (ie. described with router-LSA or |
| 305 | network-LSA) from range 10.0.0.0/8. |
| 306 | This command makes sense in ABR only. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 307 | @end deffn |
| 308 | |
| 309 | @deffn {OSPF Command} {area @var{a.b.c.d} virtual-link @var{a.b.c.d}} {} |
| 310 | @deffnx {OSPF Command} {area <0-4294967295> virtual-link @var{a.b.c.d}} {} |
| 311 | @deffnx {OSPF Command} {no area @var{a.b.c.d} virtual-link @var{a.b.c.d}} {} |
| 312 | @deffnx {OSPF Command} {no area <0-4294967295> virtual-link @var{a.b.c.d}} {} |
Paul Jakma | c3eab60 | 2006-07-28 04:42:39 +0000 | [diff] [blame] | 313 | @anchor{OSPF virtual-link} |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 314 | @end deffn |
| 315 | |
| 316 | @deffn {OSPF Command} {area @var{a.b.c.d} shortcut} {} |
| 317 | @deffnx {OSPF Command} {area <0-4294967295> shortcut} {} |
| 318 | @deffnx {OSPF Command} {no area @var{a.b.c.d} shortcut} {} |
| 319 | @deffnx {OSPF Command} {no area <0-4294967295> shortcut} {} |
Paul Jakma | f912cb4 | 2006-07-27 23:30:16 +0000 | [diff] [blame] | 320 | Configure the area as Shortcut capable. See @cite{RFC3509}. This requires |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 321 | that the 'abr-type' be set to 'shortcut'. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 322 | @end deffn |
| 323 | |
| 324 | @deffn {OSPF Command} {area @var{a.b.c.d} stub} {} |
| 325 | @deffnx {OSPF Command} {area <0-4294967295> stub} {} |
| 326 | @deffnx {OSPF Command} {no area @var{a.b.c.d} stub} {} |
| 327 | @deffnx {OSPF Command} {no area <0-4294967295> stub} {} |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 328 | Configure the area to be a stub area. That is, an area where no router |
| 329 | originates routes external to OSPF and hence an area where all external |
| 330 | routes are via the ABR(s). Hence, ABRs for such an area do not need |
| 331 | to pass AS-External LSAs (type-5s) or ASBR-Summary LSAs (type-4) into the |
| 332 | area. They need only pass Network-Summary (type-3) LSAs into such an area, |
Paul Jakma | f912cb4 | 2006-07-27 23:30:16 +0000 | [diff] [blame] | 333 | along with a default-route summary. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 334 | @end deffn |
| 335 | |
| 336 | @deffn {OSPF Command} {area @var{a.b.c.d} stub no-summary} {} |
| 337 | @deffnx {OSPF Command} {area <0-4294967295> stub no-summary} {} |
| 338 | @deffnx {OSPF Command} {no area @var{a.b.c.d} stub no-summary} {} |
| 339 | @deffnx {OSPF Command} {no area <0-4294967295> stub no-summary} {} |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 340 | Prevents an @command{ospfd} ABR from injecting inter-area |
| 341 | summaries into the specified stub area. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 342 | @end deffn |
| 343 | |
| 344 | @deffn {OSPF Command} {area @var{a.b.c.d} default-cost <0-16777215>} {} |
| 345 | @deffnx {OSPF Command} {no area @var{a.b.c.d} default-cost <0-16777215>} {} |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 346 | Set the cost of default-summary LSAs announced to stubby areas. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 347 | @end deffn |
| 348 | |
| 349 | @deffn {OSPF Command} {area @var{a.b.c.d} export-list NAME} {} |
| 350 | @deffnx {OSPF Command} {area <0-4294967295> export-list NAME} {} |
| 351 | @deffnx {OSPF Command} {no area @var{a.b.c.d} export-list NAME} {} |
| 352 | @deffnx {OSPF Command} {no area <0-4294967295> export-list NAME} {} |
hasso | 63869f1 | 2004-04-19 14:43:46 +0000 | [diff] [blame] | 353 | Filter Type-3 summary-LSAs announced to other areas originated from intra- |
| 354 | area paths from specified area. |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 355 | |
hasso | 63869f1 | 2004-04-19 14:43:46 +0000 | [diff] [blame] | 356 | @example |
| 357 | @group |
| 358 | router ospf |
| 359 | network 192.168.1.0/24 area 0.0.0.0 |
| 360 | network 10.0.0.0/8 area 0.0.0.10 |
| 361 | area 0.0.0.10 export-list foo |
| 362 | ! |
| 363 | access-list foo permit 10.10.0.0/16 |
| 364 | access-list foo deny any |
| 365 | @end group |
| 366 | @end example |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 367 | |
hasso | 63869f1 | 2004-04-19 14:43:46 +0000 | [diff] [blame] | 368 | With example above any intra-area paths from area 0.0.0.10 and from range |
| 369 | 10.10.0.0/16 (for example 10.10.1.0/24 and 10.10.2.128/30) are announced into |
| 370 | other areas as Type-3 summary-LSA's, but any others (for example 10.11.0.0/16 |
| 371 | or 10.128.30.16/30) aren't. |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 372 | |
| 373 | This command is only relevant if the router is an ABR for the specified |
| 374 | area. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 375 | @end deffn |
| 376 | |
| 377 | @deffn {OSPF Command} {area @var{a.b.c.d} import-list NAME} {} |
| 378 | @deffnx {OSPF Command} {area <0-4294967295> import-list NAME} {} |
| 379 | @deffnx {OSPF Command} {no area @var{a.b.c.d} import-list NAME} {} |
| 380 | @deffnx {OSPF Command} {no area <0-4294967295> import-list NAME} {} |
hasso | 63869f1 | 2004-04-19 14:43:46 +0000 | [diff] [blame] | 381 | Same as export-list, but it applies to paths announced into specified area as |
| 382 | Type-3 summary-LSAs. |
| 383 | @end deffn |
| 384 | |
hasso | 808c0a7 | 2004-04-19 15:10:20 +0000 | [diff] [blame] | 385 | @deffn {OSPF Command} {area @var{a.b.c.d} filter-list prefix NAME in} {} |
| 386 | @deffnx {OSPF Command} {area @var{a.b.c.d} filter-list prefix NAME out} {} |
| 387 | @deffnx {OSPF Command} {area <0-4294967295> filter-list prefix NAME in} {} |
| 388 | @deffnx {OSPF Command} {area <0-4294967295> filter-list prefix NAME out} {} |
| 389 | @deffnx {OSPF Command} {no area @var{a.b.c.d} filter-list prefix NAME in} {} |
| 390 | @deffnx {OSPF Command} {no area @var{a.b.c.d} filter-list prefix NAME out} {} |
| 391 | @deffnx {OSPF Command} {no area <0-4294967295> filter-list prefix NAME in} {} |
| 392 | @deffnx {OSPF Command} {no area <0-4294967295> filter-list prefix NAME out} {} |
hasso | c266ac7 | 2004-04-19 17:31:00 +0000 | [diff] [blame] | 393 | Filtering Type-3 summary-LSAs to/from area using prefix lists. This command |
| 394 | makes sense in ABR only. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 395 | @end deffn |
| 396 | |
| 397 | @deffn {OSPF Command} {area @var{a.b.c.d} authentication} {} |
| 398 | @deffnx {OSPF Command} {area <0-4294967295> authentication} {} |
| 399 | @deffnx {OSPF Command} {no area @var{a.b.c.d} authentication} {} |
| 400 | @deffnx {OSPF Command} {no area <0-4294967295> authentication} {} |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 401 | Specify that simple password authentication should be used for the given |
| 402 | area. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 403 | @end deffn |
| 404 | |
| 405 | @deffn {OSPF Command} {area @var{a.b.c.d} authentication message-digest} {} |
| 406 | @deffnx {OSPF Command} {area <0-4294967295> authentication message-digest} {} |
Paul Jakma | c3eab60 | 2006-07-28 04:42:39 +0000 | [diff] [blame] | 407 | |
| 408 | @anchor{area authentication message-digest}Specify that OSPF packets |
| 409 | must be authenticated with MD5 HMACs within the given area. Keying |
| 410 | material must also be configured on a per-interface basis (@pxref{ip |
| 411 | ospf message-digest-key}). |
| 412 | |
| 413 | MD5 authentication may also be configured on a per-interface basis |
| 414 | (@pxref{ip ospf authentication message-digest}). Such per-interface |
| 415 | settings will override any per-area authentication setting. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 416 | @end deffn |
| 417 | |
paul | 76b89b4 | 2004-11-06 17:13:09 +0000 | [diff] [blame] | 418 | @node OSPF interface |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 419 | @section OSPF interface |
| 420 | |
Paul Jakma | 8a667cf | 2009-08-27 16:51:42 +0100 | [diff] [blame] | 421 | @deffn {Interface Command} {ip ospf area @var{AREA} [@var{ADDR}]} {} |
| 422 | @deffnx {Interface Command} {no ip ospf area [@var{ADDR}]} {} |
| 423 | @anchor{OSPF ip ospf area command} |
| 424 | |
| 425 | Enable OSPF on the interface, optionally restricted to just the IP address |
| 426 | given by @var{ADDR}, putting it in the @var{AREA} area. Per interface area |
| 427 | settings take precedence to network commands (@pxref{OSPF network command}). |
| 428 | |
| 429 | If you have a lot of interfaces, and/or a lot of subnets, then enabling OSPF |
| 430 | via this command may result in a slight performance improvement. |
| 431 | |
| 432 | @end deffn |
| 433 | |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 434 | @deffn {Interface Command} {ip ospf authentication-key @var{AUTH_KEY}} {} |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 435 | @deffnx {Interface Command} {no ip ospf authentication-key} {} |
| 436 | Set OSPF authentication key to a simple password. After setting @var{AUTH_KEY}, |
| 437 | all OSPF packets are authenticated. @var{AUTH_KEY} has length up to 8 chars. |
Paul Jakma | f912cb4 | 2006-07-27 23:30:16 +0000 | [diff] [blame] | 438 | |
| 439 | Simple text password authentication is insecure and deprecated in favour of |
Paul Jakma | c3eab60 | 2006-07-28 04:42:39 +0000 | [diff] [blame] | 440 | MD5 HMAC authentication (@pxref{ip ospf authentication message-digest}). |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 441 | @end deffn |
| 442 | |
Paul Jakma | c3eab60 | 2006-07-28 04:42:39 +0000 | [diff] [blame] | 443 | @deffn {Interface Command} {ip ospf authentication message-digest} {} |
| 444 | @anchor{ip ospf authentication message-digest}Specify that MD5 HMAC |
| 445 | authentication must be used on this interface. MD5 keying material must |
| 446 | also be configured (@pxref{ip ospf message-digest-key}). Overrides any |
| 447 | authentication enabled on a per-area basis (@pxref{area |
| 448 | authentication message-digest}). |
paul | e2ea9fe | 2004-10-11 14:33:23 +0000 | [diff] [blame] | 449 | |
| 450 | Note that OSPF MD5 authentication requires that time never go backwards |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 451 | (correct time is NOT important, only that it never goes backwards), even |
paul | e2ea9fe | 2004-10-11 14:33:23 +0000 | [diff] [blame] | 452 | across resets, if ospfd is to be able to promptly reestabish adjacencies |
| 453 | with its neighbours after restarts/reboots. The host should have system |
Paul Jakma | 466c965 | 2006-06-26 12:55:58 +0000 | [diff] [blame] | 454 | time be set at boot from an external or non-volatile source (eg battery backed clock, NTP, |
paul | e2ea9fe | 2004-10-11 14:33:23 +0000 | [diff] [blame] | 455 | etc.) or else the system clock should be periodically saved to non-volative |
| 456 | storage and restored at boot if MD5 authentication is to be expected to work |
| 457 | reliably. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 458 | @end deffn |
| 459 | |
Paul Jakma | c3eab60 | 2006-07-28 04:42:39 +0000 | [diff] [blame] | 460 | @deffn {Interface Command} {ip ospf message-digest-key KEYID md5 KEY} {} |
| 461 | @deffnx {Interface Command} {no ip ospf message-digest-key} {} |
| 462 | @anchor{ip ospf message-digest-key}Set OSPF authentication key to a |
| 463 | cryptographic password. The cryptographic algorithm is MD5. |
| 464 | |
| 465 | KEYID identifies secret key used to create the message digest. This ID |
| 466 | is part of the protocol and must be consistent across routers on a |
| 467 | link. |
| 468 | |
| 469 | KEY is the actual message digest key, of up to 16 chars (larger strings |
| 470 | will be truncated), and is associated with the given KEYID. |
| 471 | @end deffn |
| 472 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 473 | @deffn {Interface Command} {ip ospf cost <1-65535>} {} |
| 474 | @deffnx {Interface Command} {no ip ospf cost} {} |
| 475 | Set link cost for the specified interface. The cost value is set to router-LSA's |
| 476 | metric field and used for SPF calculation. |
| 477 | @end deffn |
| 478 | |
| 479 | @deffn {Interface Command} {ip ospf dead-interval <1-65535>} {} |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 480 | @deffnx {Interface Command} {ip ospf dead-interval minimal hello-multiplier <2-20>} {} |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 481 | @deffnx {Interface Command} {no ip ospf dead-interval} {} |
Paul Jakma | c3eab60 | 2006-07-28 04:42:39 +0000 | [diff] [blame] | 482 | @anchor{ip ospf dead-interval minimal} Set number of seconds for |
| 483 | RouterDeadInterval timer value used for Wait Timer and Inactivity |
| 484 | Timer. This value must be the same for all routers attached to a |
| 485 | common network. The default value is 40 seconds. |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 486 | |
| 487 | If 'minimal' is specified instead, then the dead-interval is set to 1 |
| 488 | second and one must specify a hello-multiplier. The hello-multiplier |
| 489 | specifies how many Hellos to send per second, from 2 (every 500ms) to |
| 490 | 20 (every 50ms). Thus one can have 1s convergence time for OSPF. If this form |
| 491 | is specified, then the hello-interval advertised in Hello packets is set to |
| 492 | 0 and the hello-interval on received Hello packets is not checked, thus |
| 493 | the hello-multiplier need NOT be the same across multiple routers on a common |
| 494 | link. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 495 | @end deffn |
| 496 | |
| 497 | @deffn {Interface Command} {ip ospf hello-interval <1-65535>} {} |
| 498 | @deffnx {Interface Command} {no ip ospf hello-interval} {} |
| 499 | Set number of seconds for HelloInterval timer value. Setting this value, |
| 500 | Hello packet will be sent every timer value seconds on the specified interface. |
| 501 | This value must be the same for all routers attached to a common network. |
| 502 | The default value is 10 seconds. |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 503 | |
| 504 | This command has no effect if @ref{ip ospf dead-interval minimal} is also |
| 505 | specified for the interface. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 506 | @end deffn |
| 507 | |
| 508 | @deffn {Interface Command} {ip ospf network (broadcast|non-broadcast|point-to-multipoint|point-to-point)} {} |
| 509 | @deffnx {Interface Command} {no ip ospf network} {} |
| 510 | Set explicitly network type for specifed interface. |
| 511 | @end deffn |
| 512 | |
| 513 | @deffn {Interface Command} {ip ospf priority <0-255>} {} |
| 514 | @deffnx {Interface Command} {no ip ospf priority} {} |
Paul Jakma | f912cb4 | 2006-07-27 23:30:16 +0000 | [diff] [blame] | 515 | Set RouterPriority integer value. The router with the highest priority |
| 516 | will be more eligible to become Designated Router. Setting the value |
| 517 | to 0, makes the router ineligible to become Designated Router. The |
| 518 | default value is 1. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 519 | @end deffn |
| 520 | |
| 521 | @deffn {Interface Command} {ip ospf retransmit-interval <1-65535>} {} |
| 522 | @deffnx {Interface Command} {no ip ospf retransmit interval} {} |
| 523 | Set number of seconds for RxmtInterval timer value. This value is used |
| 524 | when retransmitting Database Description and Link State Request packets. |
| 525 | The default value is 5 seconds. |
| 526 | @end deffn |
| 527 | |
| 528 | @deffn {Interface Command} {ip ospf transmit-delay} {} |
| 529 | @deffnx {Interface Command} {no ip ospf transmit-delay} {} |
| 530 | Set number of seconds for InfTransDelay value. LSAs' age should be |
| 531 | incremented by this value when transmitting. |
| 532 | The default value is 1 seconds. |
| 533 | @end deffn |
| 534 | |
paul | 76b89b4 | 2004-11-06 17:13:09 +0000 | [diff] [blame] | 535 | @node Redistribute routes to OSPF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 536 | @section Redistribute routes to OSPF |
| 537 | |
| 538 | @deffn {OSPF Command} {redistribute (kernel|connected|static|rip|bgp)} {} |
| 539 | @deffnx {OSPF Command} {redistribute (kernel|connected|static|rip|bgp) @var{route-map}} {} |
| 540 | @deffnx {OSPF Command} {redistribute (kernel|connected|static|rip|bgp) metric-type (1|2)} {} |
| 541 | @deffnx {OSPF Command} {redistribute (kernel|connected|static|rip|bgp) metric-type (1|2) route-map @var{word}} {} |
| 542 | @deffnx {OSPF Command} {redistribute (kernel|connected|static|rip|bgp) metric <0-16777214>} {} |
| 543 | @deffnx {OSPF Command} {redistribute (kernel|connected|static|rip|bgp) metric <0-16777214> route-map @var{word}} {} |
| 544 | @deffnx {OSPF Command} {redistribute (kernel|connected|static|rip|bgp) metric-type (1|2) metric <0-16777214>} {} |
| 545 | @deffnx {OSPF Command} {redistribute (kernel|connected|static|rip|bgp) metric-type (1|2) metric <0-16777214> route-map @var{word}} {} |
| 546 | @deffnx {OSPF Command} {no redistribute (kernel|connected|static|rip|bgp)} {} |
Paul Jakma | c3eab60 | 2006-07-28 04:42:39 +0000 | [diff] [blame] | 547 | @anchor{OSPF redistribute}Redistribute routes of the specified protocol |
| 548 | or kind into OSPF, with the metric type and metric set if specified, |
| 549 | filtering the routes using the given route-map if specified. |
| 550 | Redistributed routes may also be filtered with distribute-lists, see |
| 551 | @ref{ospf distribute-list}. |
Paul Jakma | f912cb4 | 2006-07-27 23:30:16 +0000 | [diff] [blame] | 552 | |
| 553 | Redistributed routes are distributed as into OSPF as Type-5 External |
| 554 | LSAs into links to areas that accept external routes, Type-7 External LSAs |
| 555 | for NSSA areas and are not redistributed at all into Stub areas, where |
| 556 | external routes are not permitted. |
| 557 | |
| 558 | Note that for connected routes, one may instead use |
| 559 | @dfn{passive-interface}, see @ref{OSPF passive-interface}. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 560 | @end deffn |
| 561 | |
| 562 | @deffn {OSPF Command} {default-information originate} {} |
| 563 | @deffnx {OSPF Command} {default-information originate metric <0-16777214>} {} |
| 564 | @deffnx {OSPF Command} {default-information originate metric <0-16777214> metric-type (1|2)} {} |
| 565 | @deffnx {OSPF Command} {default-information originate metric <0-16777214> metric-type (1|2) route-map @var{word}} {} |
| 566 | @deffnx {OSPF Command} {default-information originate always} {} |
| 567 | @deffnx {OSPF Command} {default-information originate always metric <0-16777214>} {} |
| 568 | @deffnx {OSPF Command} {default-information originate always metric <0-16777214> metric-type (1|2)} {} |
| 569 | @deffnx {OSPF Command} {default-information originate always metric <0-16777214> metric-type (1|2) route-map @var{word}} {} |
| 570 | @deffnx {OSPF Command} {no default-information originate} {} |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 571 | Originate an AS-External (type-5) LSA describing a default route into |
| 572 | all external-routing capable areas, of the specified metric and metric |
| 573 | type. If the 'always' keyword is given then the default is always |
| 574 | advertised, even when there is no default present in the routing table. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 575 | @end deffn |
| 576 | |
| 577 | @deffn {OSPF Command} {distribute-list NAME out (kernel|connected|static|rip|ospf} {} |
| 578 | @deffnx {OSPF Command} {no distribute-list NAME out (kernel|connected|static|rip|ospf} {} |
Paul Jakma | c3eab60 | 2006-07-28 04:42:39 +0000 | [diff] [blame] | 579 | @anchor{ospf distribute-list}Apply the access-list filter, NAME, to |
| 580 | redistributed routes of the given type before allowing the routes to |
| 581 | redistributed into OSPF (@pxref{OSPF redistribute}). |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 582 | @end deffn |
| 583 | |
| 584 | @deffn {OSPF Command} {default-metric <0-16777214>} {} |
| 585 | @deffnx {OSPF Command} {no default-metric} {} |
| 586 | @end deffn |
| 587 | |
| 588 | @deffn {OSPF Command} {distance <1-255>} {} |
| 589 | @deffnx {OSPF Command} {no distance <1-255>} {} |
| 590 | @end deffn |
| 591 | |
| 592 | @deffn {OSPF Command} {distance ospf (intra-area|inter-area|external) <1-255>} {} |
| 593 | @deffnx {OSPF Command} {no distance ospf} {} |
| 594 | @end deffn |
| 595 | |
paul | 76b89b4 | 2004-11-06 17:13:09 +0000 | [diff] [blame] | 596 | @node Showing OSPF information |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 597 | @section Showing OSPF information |
| 598 | |
| 599 | @deffn {Command} {show ip ospf} {} |
Paul Jakma | c3eab60 | 2006-07-28 04:42:39 +0000 | [diff] [blame] | 600 | @anchor{show ip ospf}Show information on a variety of general OSPF and |
| 601 | area state and configuration information. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 602 | @end deffn |
| 603 | |
| 604 | @deffn {Command} {show ip ospf interface [INTERFACE]} {} |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 605 | Show state and configuration of OSPF the specified interface, or all |
| 606 | interfaces if no interface is given. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 607 | @end deffn |
| 608 | |
| 609 | @deffn {Command} {show ip ospf neighbor} {} |
| 610 | @deffnx {Command} {show ip ospf neighbor INTERFACE} {} |
| 611 | @deffnx {Command} {show ip ospf neighbor detail} {} |
| 612 | @deffnx {Command} {show ip ospf neighbor INTERFACE detail} {} |
| 613 | @end deffn |
| 614 | |
| 615 | @deffn {Command} {show ip ospf database} {} |
Paul Jakma | 1bfd655 | 2017-03-08 23:31:47 +0000 | [diff] [blame] | 616 | @deffnx {Command} {show ip ospf database asbr-summary} {} |
| 617 | @deffnx {Command} {show ip ospf database external} {} |
| 618 | @deffnx {Command} {show ip ospf database network} {} |
| 619 | @deffnx {Command} {show ip ospf database asbr-router} {} |
| 620 | @deffnx {Command} {show ip ospf database summary} {} |
| 621 | @deffnx {Command} {show ip ospf database @dots{} @var{link-state-id}} {} |
| 622 | @deffnx {Command} {show ip ospf database @dots{} @var{link-state-id} adv-router @var{adv-router}} {} |
| 623 | @deffnx {Command} {show ip ospf database @dots{} adv-router @var{adv-router}} {} |
| 624 | @deffnx {Command} {show ip ospf database @dots{} @var{link-state-id} self-originate} {} |
| 625 | @deffnx {Command} {show ip ospf database @dots{} self-originate} {} |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 626 | @end deffn |
| 627 | |
| 628 | @deffn {Command} {show ip ospf database max-age} {} |
| 629 | @end deffn |
| 630 | |
| 631 | @deffn {Command} {show ip ospf database self-originate} {} |
| 632 | @end deffn |
| 633 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 634 | @deffn {Command} {show ip ospf route} {} |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 635 | Show the OSPF routing table, as determined by the most recent SPF calculation. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 636 | @end deffn |
| 637 | |
Olivier Dugeon | ec04b9f | 2016-04-19 19:18:18 +0200 | [diff] [blame] | 638 | @node Opaque LSA |
| 639 | @section Opaque LSA |
| 640 | |
| 641 | @deffn {OSPF Command} {ospf opaque-lsa} {} |
| 642 | @deffnx {OSPF Command} {capability opaque} {} |
| 643 | @deffnx {OSPF Command} {no ospf opaque-lsa} {} |
| 644 | @deffnx {OSPF Command} {no capability opaque} {} |
| 645 | @command{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}). |
| 646 | @end deffn |
| 647 | |
| 648 | @deffn {Command} {show ip ospf database (opaque-link|opaque-area|opaque-external)} {} |
| 649 | @deffnx {Command} {show ip ospf database (opaque-link|opaque-area|opaque-external) @var{link-state-id}} {} |
| 650 | @deffnx {Command} {show ip ospf database (opaque-link|opaque-area|opaque-external) @var{link-state-id} adv-router @var{adv-router}} {} |
| 651 | @deffnx {Command} {show ip ospf database (opaque-link|opaque-area|opaque-external) adv-router @var{adv-router}} {} |
| 652 | @deffnx {Command} {show ip ospf database (opaque-link|opaque-area|opaque-external) @var{link-state-id} self-originate} {} |
| 653 | @deffnx {Command} {show ip ospf database (opaque-link|opaque-area|opaque-external) self-originate} {} |
| 654 | Show Opaque LSA from the database. |
| 655 | @end deffn |
| 656 | |
| 657 | @node OSPF Traffic Engineering |
| 658 | @section Traffic Engineering |
| 659 | |
| 660 | @deffn {OSPF Command} {mpls-te on} {} |
| 661 | @deffnx {OSPF Command} {no mpls-te} {} |
| 662 | Enable Traffic Engineering LSA flooding. |
| 663 | @end deffn |
| 664 | |
| 665 | @deffn {OSPF Command} {mpls-te router-address <A.B.C.D>} {} |
| 666 | @deffnx {OSPF Command} {no mpls-te} {} |
| 667 | Configure stable IP address for MPLS-TE. This IP address is then advertise in Opaque LSA Type-10 TLV=1 (TE) |
| 668 | option 1 (Router-Address). |
| 669 | @end deffn |
| 670 | |
| 671 | @deffn {OSPF Command} {mpls-te inter-as area <area-id>|as} {} |
| 672 | @deffnx {OSPF Command} {no mpls-te inter-as} {} |
| 673 | Enable RFC5392 suuport - Inter-AS TE v2 - to flood Traffic Engineering parameters of Inter-AS link. |
| 674 | 2 modes are supported: AREA and AS; LSA are flood in AREA <area-id> with Opaque Type-10, |
| 675 | respectively in AS with Opaque Type-11. In all case, Opaque-LSA TLV=6. |
| 676 | @end deffn |
| 677 | |
| 678 | @deffn {Command} {show ip ospf mpls-te interface} {} |
| 679 | @deffnx {Command} {show ip ospf mpls-te interface @var{interface}} {} |
| 680 | Show MPLS Traffic Engineering parameters for all or specified interface. |
| 681 | @end deffn |
| 682 | |
| 683 | @deffn {Command} {show ip ospf mpls-te router} {} |
| 684 | Show Traffic Engineering router parameters. |
| 685 | @end deffn |
| 686 | |
| 687 | @node Router Information |
| 688 | @section Router Information |
| 689 | |
| 690 | @deffn {OSPF Command} {router-info [as | area <A.B.C.D>]} {} |
| 691 | @deffnx {OSPF Command} {no router-info} {} |
| 692 | Enable Router Information (RFC4970) LSA advertisement with AS scope (default) or Area scope flooding |
| 693 | when area is specified. |
| 694 | @end deffn |
| 695 | |
| 696 | @deffn {OSPF Command} {pce address <A.B.C.D>} {} |
| 697 | @deffnx {OSPF Command} {no pce address} {} |
| 698 | @deffnx {OSPF Command} {pce domain as <0-65535>} {} |
| 699 | @deffnx {OSPF Command} {no pce domain as <0-65535>} {} |
| 700 | @deffnx {OSPF Command} {pce neighbor as <0-65535>} {} |
| 701 | @deffnx {OSPF Command} {no pce neighbor as <0-65535>} {} |
| 702 | @deffnx {OSPF Command} {pce flag BITPATTERN} {} |
| 703 | @deffnx {OSPF Command} {no pce flag} {} |
| 704 | @deffnx {OSPF Command} {pce scope BITPATTERN} {} |
| 705 | @deffnx {OSPF Command} {no pce scope} {} |
| 706 | The commands are conform to RFC 5088 and allow OSPF router announce Path Compuatation Elemenent (PCE) capabilities |
| 707 | through the Router Information (RI) LSA. Router Information must be enable prior to this. The command set/unset |
| 708 | respectively the PCE IP adress, Autonomous System (AS) numbers of controlled domains, neighbor ASs, flag and scope. |
| 709 | For flag and scope, please refer to RFC5088 for the BITPATTERN recognition. Multiple 'pce neighbor' command could |
| 710 | be specified in order to specify all PCE neighbours. |
| 711 | @end deffn |
| 712 | |
| 713 | @deffn {Command} {show ip ospf router-info} {} |
| 714 | Show Router Capabilities flag. |
| 715 | @end deffn |
| 716 | @deffn {Command} {show ip ospf router-info pce} {} |
| 717 | Show Router Capabilities PCE parameters. |
| 718 | @end deffn |
| 719 | |
paul | 76b89b4 | 2004-11-06 17:13:09 +0000 | [diff] [blame] | 720 | @node Debugging OSPF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 721 | @section Debugging OSPF |
| 722 | |
| 723 | @deffn {Command} {debug ospf packet (hello|dd|ls-request|ls-update|ls-ack|all) (send|recv) [detail]} {} |
| 724 | @deffnx {Command} {no debug ospf packet (hello|dd|ls-request|ls-update|ls-ack|all) (send|recv) [detail]} {} |
Olivier Dugeon | ec04b9f | 2016-04-19 19:18:18 +0200 | [diff] [blame] | 725 | Dump Packet for debugging |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 726 | @end deffn |
| 727 | |
| 728 | @deffn {Command} {debug ospf ism} {} |
| 729 | @deffnx {Command} {debug ospf ism (status|events|timers)} {} |
| 730 | @deffnx {Command} {no debug ospf ism} {} |
| 731 | @deffnx {Command} {no debug ospf ism (status|events|timers)} {} |
Olivier Dugeon | ec04b9f | 2016-04-19 19:18:18 +0200 | [diff] [blame] | 732 | Show debug information of Interface State Machine |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 733 | @end deffn |
| 734 | |
| 735 | @deffn {Command} {debug ospf nsm} {} |
| 736 | @deffnx {Command} {debug ospf nsm (status|events|timers)} {} |
| 737 | @deffnx {Command} {no debug ospf nsm} {} |
| 738 | @deffnx {Command} {no debug ospf nsm (status|events|timers)} {} |
Olivier Dugeon | ec04b9f | 2016-04-19 19:18:18 +0200 | [diff] [blame] | 739 | Show debug information of Network State Machine |
| 740 | @end deffn |
| 741 | |
| 742 | @deffn {Command} {debug ospf event} {} |
| 743 | @deffnx {Command} {no debug ospf event} {} |
| 744 | Show debug information of OSPF event |
| 745 | @end deffn |
| 746 | |
| 747 | @deffn {Command} {debug ospf nssa} {} |
| 748 | @deffnx {Command} {no debug ospf nssa} {} |
| 749 | Show debug information about Not So Stub Area |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 750 | @end deffn |
| 751 | |
| 752 | @deffn {Command} {debug ospf lsa} {} |
| 753 | @deffnx {Command} {debug ospf lsa (generate|flooding|refresh)} {} |
| 754 | @deffnx {Command} {no debug ospf lsa} {} |
| 755 | @deffnx {Command} {no debug ospf lsa (generate|flooding|refresh)} {} |
Olivier Dugeon | ec04b9f | 2016-04-19 19:18:18 +0200 | [diff] [blame] | 756 | Show debug detail of Link State messages |
| 757 | @end deffn |
| 758 | |
| 759 | @deffn {Command} {debug ospf te} {} |
| 760 | @deffnx {Command} {no debug ospf te} {} |
| 761 | Show debug information about Traffic Engineering LSA |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 762 | @end deffn |
| 763 | |
| 764 | @deffn {Command} {debug ospf zebra} {} |
| 765 | @deffnx {Command} {debug ospf zebra (interface|redistribute)} {} |
| 766 | @deffnx {Command} {no debug ospf zebra} {} |
| 767 | @deffnx {Command} {no debug ospf zebra (interface|redistribute)} {} |
Olivier Dugeon | ec04b9f | 2016-04-19 19:18:18 +0200 | [diff] [blame] | 768 | Show debug information of ZEBRA API |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 769 | @end deffn |
| 770 | |
| 771 | @deffn {Command} {show debugging ospf} {} |
| 772 | @end deffn |
| 773 | |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 774 | @node OSPF Configuration Examples |
| 775 | @section OSPF Configuration Examples |
| 776 | A simple example, with MD5 authentication enabled: |
| 777 | |
| 778 | @example |
| 779 | @group |
| 780 | ! |
| 781 | interface bge0 |
| 782 | ip ospf authentication message-digest |
| 783 | ip ospf message-digest-key 1 md5 ABCDEFGHIJK |
| 784 | ! |
| 785 | router ospf |
| 786 | network 192.168.0.0/16 area 0.0.0.1 |
| 787 | area 0.0.0.1 authentication message-digest |
| 788 | @end group |
| 789 | @end example |
| 790 | |
| 791 | An @acronym{ABR} router, with MD5 authentication and performing summarisation |
| 792 | of networks between the areas: |
| 793 | |
| 794 | @example |
| 795 | @group |
| 796 | ! |
| 797 | password ABCDEF |
| 798 | log file /var/log/quagga/ospfd.log |
| 799 | service advanced-vty |
| 800 | ! |
| 801 | interface eth0 |
| 802 | ip ospf authentication message-digest |
| 803 | ip ospf message-digest-key 1 md5 ABCDEFGHIJK |
| 804 | ! |
| 805 | interface ppp0 |
| 806 | ! |
| 807 | interface br0 |
| 808 | ip ospf authentication message-digest |
| 809 | ip ospf message-digest-key 2 md5 XYZ12345 |
| 810 | ! |
| 811 | router ospf |
| 812 | ospf router-id 192.168.0.1 |
| 813 | redistribute connected |
| 814 | passive interface ppp0 |
| 815 | network 192.168.0.0/24 area 0.0.0.0 |
| 816 | network 10.0.0.0/16 area 0.0.0.0 |
| 817 | network 192.168.1.0/24 area 0.0.0.1 |
| 818 | area 0.0.0.0 authentication message-digest |
| 819 | area 0.0.0.0 range 10.0.0.0/16 |
| 820 | area 0.0.0.0 range 192.168.0.0/24 |
| 821 | area 0.0.0.1 authentication message-digest |
| 822 | area 0.0.0.1 range 10.2.0.0/16 |
| 823 | ! |
| 824 | @end group |
| 825 | @end example |
Olivier Dugeon | ec04b9f | 2016-04-19 19:18:18 +0200 | [diff] [blame] | 826 | |
| 827 | A Traffic Engineering configuration, with Inter-ASv2 support. |
| 828 | |
| 829 | - First, the 'zebra.conf' part: |
| 830 | |
| 831 | @example |
| 832 | @group |
| 833 | hostname HOSTNAME |
| 834 | password PASSWORD |
| 835 | log file /var/log/zebra.log |
| 836 | ! |
| 837 | interface eth0 |
| 838 | ip address 198.168.1.1/24 |
| 839 | mpls-te on |
| 840 | mpls-te link metric 10 |
| 841 | mpls-te link max-bw 1.25e+06 |
| 842 | mpls-te link max-rsv-bw 1.25e+06 |
| 843 | mpls-te link unrsv-bw 0 1.25e+06 |
| 844 | mpls-te link unrsv-bw 1 1.25e+06 |
| 845 | mpls-te link unrsv-bw 2 1.25e+06 |
| 846 | mpls-te link unrsv-bw 3 1.25e+06 |
| 847 | mpls-te link unrsv-bw 4 1.25e+06 |
| 848 | mpls-te link unrsv-bw 5 1.25e+06 |
| 849 | mpls-te link unrsv-bw 6 1.25e+06 |
| 850 | mpls-te link unrsv-bw 7 1.25e+06 |
| 851 | mpls-te link rsc-clsclr 0xab |
| 852 | ! |
| 853 | interface eth1 |
| 854 | ip address 192.168.2.1/24 |
| 855 | mpls-te on |
| 856 | mpls-te link metric 10 |
| 857 | mpls-te link max-bw 1.25e+06 |
| 858 | mpls-te link max-rsv-bw 1.25e+06 |
| 859 | mpls-te link unrsv-bw 0 1.25e+06 |
| 860 | mpls-te link unrsv-bw 1 1.25e+06 |
| 861 | mpls-te link unrsv-bw 2 1.25e+06 |
| 862 | mpls-te link unrsv-bw 3 1.25e+06 |
| 863 | mpls-te link unrsv-bw 4 1.25e+06 |
| 864 | mpls-te link unrsv-bw 5 1.25e+06 |
| 865 | mpls-te link unrsv-bw 6 1.25e+06 |
| 866 | mpls-te link unrsv-bw 7 1.25e+06 |
| 867 | mpls-te link rsc-clsclr 0xab |
| 868 | mpls-te neighbor 192.168.2.2 as 65000 |
| 869 | @end group |
| 870 | @end example |
| 871 | |
| 872 | - Then the 'ospfd.conf' itself: |
| 873 | |
| 874 | @example |
| 875 | @group |
| 876 | hostname HOSTNAME |
| 877 | password PASSWORD |
| 878 | log file /var/log/ospfd.log |
| 879 | ! |
| 880 | ! |
| 881 | interface eth0 |
| 882 | ip ospf hello-interval 60 |
| 883 | ip ospf dead-interval 240 |
| 884 | ! |
| 885 | interface eth1 |
| 886 | ip ospf hello-interval 60 |
| 887 | ip ospf dead-interval 240 |
| 888 | ! |
| 889 | ! |
| 890 | router ospf |
| 891 | ospf router-id 192.168.1.1 |
| 892 | network 192.168.0.0/16 area 1 |
| 893 | ospf opaque-lsa |
| 894 | mpls-te |
| 895 | mpls-te router-address 192.168.1.1 |
| 896 | mpls-te inter-as area 1 |
| 897 | ! |
| 898 | line vty |
| 899 | @end group |
| 900 | @end example |
| 901 | |
| 902 | A router information example with PCE advsertisement: |
| 903 | |
| 904 | @example |
| 905 | @group |
| 906 | ! |
| 907 | router ospf |
| 908 | ospf router-id 192.168.1.1 |
| 909 | network 192.168.0.0/16 area 1 |
| 910 | capability opaque |
| 911 | mpls-te |
| 912 | mpls-te router-address 192.168.1.1 |
| 913 | router-info area 0.0.0.1 |
| 914 | pce address 192.168.1.1 |
| 915 | pce flag 0x80 |
| 916 | pce domain as 65400 |
| 917 | pce neighbor as 65500 |
| 918 | pce neighbor as 65200 |
| 919 | pce scope 0x80 |
| 920 | ! |
| 921 | @end group |
| 922 | @end example |