Paul Jakma | f912cb4 | 2006-07-27 23:30:16 +0000 | [diff] [blame^] | 1 | @cindex OSPFv2 |
paul | 76b89b4 | 2004-11-06 17:13:09 +0000 | [diff] [blame] | 2 | @node OSPFv2 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3 | @chapter OSPFv2 |
| 4 | |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 5 | @acronym{OSPF,Open Shortest Path First} version 2 is a routing protocol |
| 6 | which is described in @cite{RFC2328, OSPF Version 2}. OSPF is an |
Paul Jakma | f912cb4 | 2006-07-27 23:30:16 +0000 | [diff] [blame^] | 7 | @acronym{IGP,Interior Gateway Protocol}. Compared with @acronym{RIP}, |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 8 | @acronym{OSPF} can provide scalable network support and faster |
| 9 | convergence times. OSPF is widely used in large networks such as |
| 10 | @acronym{ISP,Internet Service Provider} backbone and enterprise |
| 11 | networks. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 12 | |
| 13 | @menu |
Paul Jakma | f912cb4 | 2006-07-27 23:30:16 +0000 | [diff] [blame^] | 14 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 15 | * Configuring ospfd:: |
| 16 | * OSPF router:: |
| 17 | * OSPF area:: |
| 18 | * OSPF interface:: |
| 19 | * Redistribute routes to OSPF:: |
| 20 | * Showing OSPF information:: |
| 21 | * Debugging OSPF:: |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 22 | * OSPF Configuration Examples:: |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 23 | @end menu |
| 24 | |
paul | 76b89b4 | 2004-11-06 17:13:09 +0000 | [diff] [blame] | 25 | @node Configuring ospfd |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 26 | @section Configuring ospfd |
| 27 | |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 28 | There are no @command{ospfd} specific options. Common options can be |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 29 | specified (@pxref{Common Invocation Options}) to @command{ospfd}. |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 30 | @command{ospfd} needs to acquire interface information from |
| 31 | @command{zebra} in order to function. Therefore @command{zebra} must be |
| 32 | running before invoking @command{ospfd}. Also, if @command{zebra} is |
| 33 | restarted then @command{ospfd} must be too. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 34 | |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 35 | Like other daemons, @command{ospfd} configuration is done in @acronym{OSPF} |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 36 | specific configuration file @file{ospfd.conf}. |
| 37 | |
paul | 76b89b4 | 2004-11-06 17:13:09 +0000 | [diff] [blame] | 38 | @node OSPF router |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 39 | @section OSPF router |
| 40 | |
| 41 | To start OSPF process you have to specify the OSPF router. As of this |
| 42 | writing, @command{ospfd} does not support multiple OSPF processes. |
| 43 | |
| 44 | @deffn Command {router ospf} {} |
| 45 | @deffnx Command {no router ospf} {} |
| 46 | Enable or disable the OSPF process. @command{ospfd} does not yet |
| 47 | support multiple OSPF processes. So you can not specify an OSPF process |
| 48 | number. |
| 49 | @end deffn |
| 50 | |
Paul Jakma | f912cb4 | 2006-07-27 23:30:16 +0000 | [diff] [blame^] | 51 | @anchor{ospf router-id} |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 52 | @deffn {OSPF Command} {ospf router-id @var{a.b.c.d}} {} |
| 53 | @deffnx {OSPF Command} {no ospf router-id} {} |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 54 | This sets the router-ID of the OSPF process. The router-ID may be an IP |
| 55 | address of the router, but need not be - it can be any arbitrary 32bit |
| 56 | number. However it MUST be unique within the entire OSPF domain to the |
| 57 | OSPF speaker - bad things will happen if multiple OSPF speakers are |
| 58 | configured with the same router-ID! If one is not specified then |
| 59 | @command{ospfd} will obtain a router-ID automatically from @command{zebra}. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 60 | @end deffn |
| 61 | |
| 62 | @deffn {OSPF Command} {ospf abr-type @var{type}} {} |
| 63 | @deffnx {OSPF Command} {no ospf abr-type @var{type}} {} |
Paul Jakma | f912cb4 | 2006-07-27 23:30:16 +0000 | [diff] [blame^] | 64 | @var{type} can be cisco|ibm|shortcut|standard. The "Cisco" and "IBM" types |
| 65 | are equivalent. |
| 66 | |
| 67 | The OSPF standard for ABR behaviour does not allow an ABR to consider |
| 68 | routes through non-backbone areas when its links to the backbone are |
| 69 | down, even when there are other ABRs in attached non-backbone areas |
| 70 | which still can reach the backbone - this restriction exists primarily |
| 71 | to ensure routing-loops are avoided. |
| 72 | |
| 73 | With the "Cisco" or "IBM" ABR type, the default in this release of |
| 74 | Quagga, this restriction is lifted, allowing an ABR to consider |
| 75 | summaries learnt from other ABRs through non-backbone areas, and hence |
| 76 | route via non-backbone areas as a last resort when, and only when, |
| 77 | backbone links are down. |
| 78 | |
| 79 | Note that areas with fully-adjacent virtual-links are considered to be |
| 80 | "transit capable" and can always be used to route backbone traffic, and |
| 81 | hence are unaffected by this setting (@pxref{OSPF virtual-link}). |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 82 | |
paul | d4f5031 | 2003-01-22 19:26:00 +0000 | [diff] [blame] | 83 | More information regarding the behaviour controlled by this command can |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 84 | be found in @cite{RFC 3509, Alternative Implementations of OSPF Area |
| 85 | Border Routers}, and @cite{draft-ietf-ospf-shortcut-abr-02.txt}. |
| 86 | |
| 87 | Quote: "Though the definition of the @acronym{ABR,Area Border Router} |
paul | d4f5031 | 2003-01-22 19:26:00 +0000 | [diff] [blame] | 88 | in the OSPF specification does not require a router with multiple |
| 89 | attached areas to have a backbone connection, it is actually |
| 90 | necessary to provide successful routing to the inter-area and |
| 91 | external destinations. If this requirement is not met, all traffic |
| 92 | destined for the areas not connected to such an ABR or out of the |
| 93 | OSPF domain, is dropped. This document describes alternative ABR |
| 94 | behaviors implemented in Cisco and IBM routers." |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 95 | @end deffn |
| 96 | |
| 97 | @deffn {OSPF Command} {ospf rfc1583compatibility} {} |
| 98 | @deffnx {OSPF Command} {no ospf rfc1583compatibility} {} |
Paul Jakma | f912cb4 | 2006-07-27 23:30:16 +0000 | [diff] [blame^] | 99 | @cite{RFC2328}, the sucessor to @cite{RFC1583}, suggests according |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 100 | to section G.2 (changes) in section 16.4 a change to the path |
| 101 | preference algorithm that prevents possible routing loops that were |
| 102 | possible in the old version of OSPFv2. More specifically it demands |
| 103 | that inter-area paths and intra-area path are now of equal preference |
| 104 | but still both preferred to external paths. |
| 105 | |
| 106 | This command should NOT be set normally. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 107 | @end deffn |
| 108 | |
Andrew J. Schorr | d7e60dd | 2006-06-29 20:20:52 +0000 | [diff] [blame] | 109 | @deffn {OSPF Command} {log-adjacency-changes [detail]} {} |
| 110 | @deffnx {OSPF Command} {no log-adjacency-changes [detail]} {} |
| 111 | Configures ospfd to log changes in adjacency. With the optional |
| 112 | detail argument, all changes in adjacency status are shown. Without detail, |
| 113 | only changes to full or regressions are shown. |
| 114 | @end deffn |
| 115 | |
Paul Jakma | f912cb4 | 2006-07-27 23:30:16 +0000 | [diff] [blame^] | 116 | @anchor{OSPF passive-interface} |
| 117 | @deffn {OSPF Command} {passive-interface @var{interface}} {} |
| 118 | @deffnx {OSPF Command} {no passive-interface @var{interface}} {} |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 119 | |
| 120 | Do not speak OSPF interface on the given interface, but do advertise |
| 121 | the interface as a stub link in the router-@acronym{LSA,Link State |
| 122 | Advertisement} for this router. This allows one to advertise addresses |
| 123 | on such connected interfaces without having to originate |
| 124 | AS-External/Type-5 LSAs (which have global flooding scope) - as would |
Paul Jakma | f912cb4 | 2006-07-27 23:30:16 +0000 | [diff] [blame^] | 125 | occur if connected addresses were redistributed into OSPF |
| 126 | (@pxref{Redistribute routes to OSPF})@. This is the only way to advertise |
| 127 | non-OSPF links into stub areas. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 128 | @end deffn |
| 129 | |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 130 | @deffn {OSPF Command} {timers throttle spf @var{delay} @var{initial-holdtime} @var{max-holdtime}} {} |
| 131 | @deffnx {OSPF Command} {no timers throttle spf} {} |
| 132 | This command sets the initial @var{delay}, the @var{initial-holdtime} |
| 133 | and the @var{maximum-holdtime} between when SPF is calculated and the |
| 134 | event which triggered the calculation. The times are specified in |
| 135 | milliseconds and must be in the range of 0 to 600000 milliseconds. |
| 136 | |
| 137 | The @var{delay} specifies the minimum amount of time to delay SPF |
| 138 | calculation (hence it affects how long SPF calculation is delayed after |
| 139 | an event which occurs outside of the holdtime of any previous SPF |
| 140 | calculation, and also serves as a minimum holdtime). |
| 141 | |
| 142 | Consecutive SPF calculations will always be seperated by at least |
| 143 | 'hold-time' milliseconds. The hold-time is adaptive and initially is |
| 144 | set to the @var{initial-holdtime} configured with the above command. |
| 145 | Events which occur within the holdtime of the previous SPF calculation |
| 146 | will cause the holdtime to be increased by @var{initial-holdtime}, bounded |
| 147 | by the @var{maximum-holdtime} configured with this command. If the adaptive |
| 148 | hold-time elapses without any SPF-triggering event occuring then |
| 149 | the current holdtime is reset to the @var{initial-holdtime}. The current |
| 150 | holdtime can be viewed with @ref{show ip ospf}, where it is expressed as |
| 151 | a multiplier of the @var{initial-holdtime}. |
| 152 | |
| 153 | @example |
| 154 | @group |
| 155 | router ospf |
| 156 | timers throttle spf 200 400 10000 |
| 157 | @end group |
| 158 | @end example |
| 159 | |
| 160 | In this example, the @var{delay} is set to 200ms, the @var{initial |
| 161 | holdtime} is set to 400ms and the @var{maximum holdtime} to 10s. Hence |
| 162 | there will always be at least 200ms between an event which requires SPF |
| 163 | calculation and the actual SPF calculation. Further consecutive SPF |
| 164 | calculations will always be seperated by between 400ms to 10s, the |
| 165 | hold-time increasing by 400ms each time an SPF-triggering event occurs |
| 166 | within the hold-time of the previous SPF calculation. |
| 167 | |
| 168 | This command supercedes the @command{timers spf} command in previous Quagga |
| 169 | releases. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 170 | @end deffn |
| 171 | |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 172 | @deffn {OSPF Command} {max-metric router-lsa [on-startup|on-shutdown] <5-86400>} {} |
| 173 | @deffnx {OSPF Command} {max-metric router-lsa administrative} {} |
| 174 | @deffnx {OSPF Command} {no max-metric router-lsa [on-startup|on-shutdown|administrative]} {} |
| 175 | This enables @cite{RFC3137, OSPF Stub Router Advertisement} support, |
| 176 | where the OSPF process describes its transit links in its router-LSA as |
| 177 | having infinite distance so that other routers will avoid calculating |
| 178 | transit paths through the router while still being able to reach |
| 179 | networks through the router. |
| 180 | |
| 181 | This support may be enabled administratively (and indefinitely) or |
| 182 | conditionally. Conditional enabling of max-metric router-lsas can be |
| 183 | for a period of seconds after startup and/or for a period of seconds |
| 184 | prior to shutdown. |
| 185 | |
| 186 | Enabling this for a period after startup allows OSPF to converge fully |
| 187 | first without affecting any existing routes used by other routers, |
| 188 | while still allowing any connected stub links and/or redistributed |
| 189 | routes to be reachable. Enabling this for a period of time in advance |
| 190 | of shutdown allows the router to gracefully excuse itself from the OSPF |
| 191 | domain. |
| 192 | |
| 193 | Enabling this feature administratively allows for administrative |
| 194 | intervention for whatever reason, for an indefinite period of time. |
| 195 | Note that if the configuration is written to file, this administrative |
| 196 | form of the stub-router command will also be written to file. If |
| 197 | @command{ospfd} is restarted later, the command will then take effect |
| 198 | until manually deconfigured. |
| 199 | |
| 200 | Configured state of this feature as well as current status, such as the |
| 201 | number of second remaining till on-startup or on-shutdown ends, can be |
| 202 | viewed with the @ref{show ip ospf} command. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 203 | @end deffn |
| 204 | |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 205 | @deffn {OSPF Command} {auto-cost reference-bandwidth <1-4294967>} {} |
| 206 | @deffnx {OSPF Command} {no auto-cost reference-bandwidth} {} |
| 207 | This sets the reference bandwidth for cost calculations, where this |
| 208 | bandwidth is considered equivalent to an OSPF cost of 1, specified in |
| 209 | Mbits/s. The default is 100Mbit/s (i.e. a link of bandwidth 100Mbit/s |
| 210 | or higher will have a cost of 1. Cost of lower bandwidth links will be |
| 211 | scaled with reference to this cost). |
| 212 | |
| 213 | This configuration setting MUST be consistent across all routers within the |
| 214 | OSPF domain. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 215 | @end deffn |
| 216 | |
| 217 | @deffn {OSPF Command} {network @var{a.b.c.d/m} area @var{a.b.c.d}} {} |
| 218 | @deffnx {OSPF Command} {network @var{a.b.c.d/m} area @var{<0-4294967295>}} {} |
| 219 | @deffnx {OSPF Command} {no network @var{a.b.c.d/m} area @var{a.b.c.d}} {} |
| 220 | @deffnx {OSPF Command} {no network @var{a.b.c.d/m} area @var{<0-4294967295>}} {} |
hasso | a5b2b59 | 2004-04-17 10:09:29 +0000 | [diff] [blame] | 221 | This command specifies the OSPF enabled interface(s). If the interface has |
| 222 | an address from range 192.168.1.0/24 then the command below enables ospf |
| 223 | on this interface so router can provide network information to the other |
| 224 | ospf routers via this interface. |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 225 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 226 | @example |
| 227 | @group |
| 228 | router ospf |
hasso | a5b2b59 | 2004-04-17 10:09:29 +0000 | [diff] [blame] | 229 | network 192.168.1.0/24 area 0.0.0.0 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 230 | @end group |
| 231 | @end example |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 232 | |
hasso | a5b2b59 | 2004-04-17 10:09:29 +0000 | [diff] [blame] | 233 | Prefix length in interface must be equal or bigger (ie. smaller network) than |
| 234 | prefix length in network statement. For example statement above doesn't enable |
| 235 | ospf on interface with address 192.168.1.1/23, but it does on interface with |
| 236 | address 192.168.1.129/25. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 237 | @end deffn |
| 238 | |
paul | 76b89b4 | 2004-11-06 17:13:09 +0000 | [diff] [blame] | 239 | @node OSPF area |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 240 | @section OSPF area |
| 241 | |
| 242 | @deffn {OSPF Command} {area @var{a.b.c.d} range @var{a.b.c.d/m}} {} |
| 243 | @deffnx {OSPF Command} {area <0-4294967295> range @var{a.b.c.d/m}} {} |
| 244 | @deffnx {OSPF Command} {no area @var{a.b.c.d} range @var{a.b.c.d/m}} {} |
| 245 | @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] | 246 | Summarize intra area paths from specified area into one Type-3 summary-LSA |
| 247 | announced to other areas. This command can be used only in ABR and ONLY |
| 248 | router-LSAs (Type-1) and network-LSAs (Type-2) (ie. LSAs with scope area) can |
| 249 | be summarized. Type-5 AS-external-LSAs can't be summarized - their scope is AS. |
| 250 | Summarizing Type-7 AS-external-LSAs isn't supported yet by Quagga. |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 251 | |
hasso | 63869f1 | 2004-04-19 14:43:46 +0000 | [diff] [blame] | 252 | @example |
| 253 | @group |
| 254 | router ospf |
| 255 | network 192.168.1.0/24 area 0.0.0.0 |
| 256 | network 10.0.0.0/8 area 0.0.0.10 |
| 257 | area 0.0.0.10 range 10.0.0.0/8 |
| 258 | @end group |
| 259 | @end example |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 260 | |
hasso | 63869f1 | 2004-04-19 14:43:46 +0000 | [diff] [blame] | 261 | With configuration above one Type-3 Summary-LSA with routing info 10.0.0.0/8 is |
| 262 | announced into backbone area if area 0.0.0.10 contains at least one intra-area |
| 263 | network (ie. described with router or network LSA) from this range. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 264 | @end deffn |
| 265 | |
hasso | 63869f1 | 2004-04-19 14:43:46 +0000 | [diff] [blame] | 266 | @deffn {OSPF Command} {area @var{a.b.c.d} range IPV4_PREFIX not-advertise} {} |
| 267 | @deffnx {OSPF Command} {no area @var{a.b.c.d} range IPV4_PREFIX not-advertise} {} |
| 268 | Instead of summarizing intra area paths filter them - ie. intra area paths from this |
| 269 | range are not advertised into other areas. |
| 270 | This command makes sense in ABR only. |
| 271 | @end deffn |
| 272 | |
hasso | 6b3fac0 | 2004-04-20 04:11:36 +0000 | [diff] [blame] | 273 | @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] | 274 | @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] | 275 | Substitute summarized prefix with another prefix. |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 276 | |
hasso | 63869f1 | 2004-04-19 14:43:46 +0000 | [diff] [blame] | 277 | @example |
| 278 | @group |
| 279 | router ospf |
| 280 | network 192.168.1.0/24 area 0.0.0.0 |
| 281 | network 10.0.0.0/8 area 0.0.0.10 |
| 282 | area 0.0.0.10 range 10.0.0.0/8 substitute 11.0.0.0/8 |
| 283 | @end group |
| 284 | @end example |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 285 | |
hasso | 63869f1 | 2004-04-19 14:43:46 +0000 | [diff] [blame] | 286 | One Type-3 summary-LSA with routing info 11.0.0.0/8 is announced into backbone area if |
| 287 | area 0.0.0.10 contains at least one intra-area network (ie. described with router-LSA or |
| 288 | network-LSA) from range 10.0.0.0/8. |
| 289 | This command makes sense in ABR only. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 290 | @end deffn |
| 291 | |
Paul Jakma | f912cb4 | 2006-07-27 23:30:16 +0000 | [diff] [blame^] | 292 | @anchor{OSPF virtual-link} |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 293 | @deffn {OSPF Command} {area @var{a.b.c.d} virtual-link @var{a.b.c.d}} {} |
| 294 | @deffnx {OSPF Command} {area <0-4294967295> virtual-link @var{a.b.c.d}} {} |
| 295 | @deffnx {OSPF Command} {no area @var{a.b.c.d} virtual-link @var{a.b.c.d}} {} |
| 296 | @deffnx {OSPF Command} {no area <0-4294967295> virtual-link @var{a.b.c.d}} {} |
| 297 | @end deffn |
| 298 | |
| 299 | @deffn {OSPF Command} {area @var{a.b.c.d} shortcut} {} |
| 300 | @deffnx {OSPF Command} {area <0-4294967295> shortcut} {} |
| 301 | @deffnx {OSPF Command} {no area @var{a.b.c.d} shortcut} {} |
| 302 | @deffnx {OSPF Command} {no area <0-4294967295> shortcut} {} |
Paul Jakma | f912cb4 | 2006-07-27 23:30:16 +0000 | [diff] [blame^] | 303 | Configure the area as Shortcut capable. See @cite{RFC3509}. This requires |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 304 | that the 'abr-type' be set to 'shortcut'. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 305 | @end deffn |
| 306 | |
| 307 | @deffn {OSPF Command} {area @var{a.b.c.d} stub} {} |
| 308 | @deffnx {OSPF Command} {area <0-4294967295> stub} {} |
| 309 | @deffnx {OSPF Command} {no area @var{a.b.c.d} stub} {} |
| 310 | @deffnx {OSPF Command} {no area <0-4294967295> stub} {} |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 311 | Configure the area to be a stub area. That is, an area where no router |
| 312 | originates routes external to OSPF and hence an area where all external |
| 313 | routes are via the ABR(s). Hence, ABRs for such an area do not need |
| 314 | to pass AS-External LSAs (type-5s) or ASBR-Summary LSAs (type-4) into the |
| 315 | 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^] | 316 | along with a default-route summary. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 317 | @end deffn |
| 318 | |
| 319 | @deffn {OSPF Command} {area @var{a.b.c.d} stub no-summary} {} |
| 320 | @deffnx {OSPF Command} {area <0-4294967295> stub no-summary} {} |
| 321 | @deffnx {OSPF Command} {no area @var{a.b.c.d} stub no-summary} {} |
| 322 | @deffnx {OSPF Command} {no area <0-4294967295> stub no-summary} {} |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 323 | Prevents an @command{ospfd} ABR from injecting inter-area |
| 324 | summaries into the specified stub area. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 325 | @end deffn |
| 326 | |
| 327 | @deffn {OSPF Command} {area @var{a.b.c.d} default-cost <0-16777215>} {} |
| 328 | @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] | 329 | Set the cost of default-summary LSAs announced to stubby areas. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 330 | @end deffn |
| 331 | |
| 332 | @deffn {OSPF Command} {area @var{a.b.c.d} export-list NAME} {} |
| 333 | @deffnx {OSPF Command} {area <0-4294967295> export-list NAME} {} |
| 334 | @deffnx {OSPF Command} {no area @var{a.b.c.d} export-list NAME} {} |
| 335 | @deffnx {OSPF Command} {no area <0-4294967295> export-list NAME} {} |
hasso | 63869f1 | 2004-04-19 14:43:46 +0000 | [diff] [blame] | 336 | Filter Type-3 summary-LSAs announced to other areas originated from intra- |
| 337 | area paths from specified area. |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 338 | |
hasso | 63869f1 | 2004-04-19 14:43:46 +0000 | [diff] [blame] | 339 | @example |
| 340 | @group |
| 341 | router ospf |
| 342 | network 192.168.1.0/24 area 0.0.0.0 |
| 343 | network 10.0.0.0/8 area 0.0.0.10 |
| 344 | area 0.0.0.10 export-list foo |
| 345 | ! |
| 346 | access-list foo permit 10.10.0.0/16 |
| 347 | access-list foo deny any |
| 348 | @end group |
| 349 | @end example |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 350 | |
hasso | 63869f1 | 2004-04-19 14:43:46 +0000 | [diff] [blame] | 351 | With example above any intra-area paths from area 0.0.0.10 and from range |
| 352 | 10.10.0.0/16 (for example 10.10.1.0/24 and 10.10.2.128/30) are announced into |
| 353 | other areas as Type-3 summary-LSA's, but any others (for example 10.11.0.0/16 |
| 354 | or 10.128.30.16/30) aren't. |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 355 | |
| 356 | This command is only relevant if the router is an ABR for the specified |
| 357 | area. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 358 | @end deffn |
| 359 | |
| 360 | @deffn {OSPF Command} {area @var{a.b.c.d} import-list NAME} {} |
| 361 | @deffnx {OSPF Command} {area <0-4294967295> import-list NAME} {} |
| 362 | @deffnx {OSPF Command} {no area @var{a.b.c.d} import-list NAME} {} |
| 363 | @deffnx {OSPF Command} {no area <0-4294967295> import-list NAME} {} |
hasso | 63869f1 | 2004-04-19 14:43:46 +0000 | [diff] [blame] | 364 | Same as export-list, but it applies to paths announced into specified area as |
| 365 | Type-3 summary-LSAs. |
| 366 | @end deffn |
| 367 | |
hasso | 808c0a7 | 2004-04-19 15:10:20 +0000 | [diff] [blame] | 368 | @deffn {OSPF Command} {area @var{a.b.c.d} filter-list prefix NAME in} {} |
| 369 | @deffnx {OSPF Command} {area @var{a.b.c.d} filter-list prefix NAME out} {} |
| 370 | @deffnx {OSPF Command} {area <0-4294967295> filter-list prefix NAME in} {} |
| 371 | @deffnx {OSPF Command} {area <0-4294967295> filter-list prefix NAME out} {} |
| 372 | @deffnx {OSPF Command} {no area @var{a.b.c.d} filter-list prefix NAME in} {} |
| 373 | @deffnx {OSPF Command} {no area @var{a.b.c.d} filter-list prefix NAME out} {} |
| 374 | @deffnx {OSPF Command} {no area <0-4294967295> filter-list prefix NAME in} {} |
| 375 | @deffnx {OSPF Command} {no area <0-4294967295> filter-list prefix NAME out} {} |
hasso | c266ac7 | 2004-04-19 17:31:00 +0000 | [diff] [blame] | 376 | Filtering Type-3 summary-LSAs to/from area using prefix lists. This command |
| 377 | makes sense in ABR only. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 378 | @end deffn |
| 379 | |
| 380 | @deffn {OSPF Command} {area @var{a.b.c.d} authentication} {} |
| 381 | @deffnx {OSPF Command} {area <0-4294967295> authentication} {} |
| 382 | @deffnx {OSPF Command} {no area @var{a.b.c.d} authentication} {} |
| 383 | @deffnx {OSPF Command} {no area <0-4294967295> authentication} {} |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 384 | Specify that simple password authentication should be used for the given |
| 385 | area. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 386 | @end deffn |
| 387 | |
| 388 | @deffn {OSPF Command} {area @var{a.b.c.d} authentication message-digest} {} |
| 389 | @deffnx {OSPF Command} {area <0-4294967295> authentication message-digest} {} |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 390 | Specify that OSPF packets should be authenticated with MD5 HMACs for the given |
| 391 | area. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 392 | @end deffn |
| 393 | |
paul | 76b89b4 | 2004-11-06 17:13:09 +0000 | [diff] [blame] | 394 | @node OSPF interface |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 395 | @section OSPF interface |
| 396 | |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 397 | @deffn {Interface Command} {ip ospf authentication-key @var{AUTH_KEY}} {} |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 398 | @deffnx {Interface Command} {no ip ospf authentication-key} {} |
| 399 | Set OSPF authentication key to a simple password. After setting @var{AUTH_KEY}, |
| 400 | 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^] | 401 | |
| 402 | Simple text password authentication is insecure and deprecated in favour of |
| 403 | MD5 HMAC authentication (@pxref{OSPF MD5 HMAC authentication}). |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 404 | @end deffn |
| 405 | |
Paul Jakma | f912cb4 | 2006-07-27 23:30:16 +0000 | [diff] [blame^] | 406 | @anchor{OSPF MD5 HMAC authentication} |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 407 | @deffn {Interface Command} {ip ospf message-digest-key KEYID md5 KEY} {} |
| 408 | @deffnx {Interface Command} {no ip ospf message-digest-key} {} |
| 409 | Set OSPF authentication key to a cryptographic password. The cryptographic |
Paul Jakma | 466c965 | 2006-06-26 12:55:58 +0000 | [diff] [blame] | 410 | algorithm is MD5. |
| 411 | |
| 412 | KEYID identifies secret key used to create the message digest. This ID |
| 413 | is part of the protocol and must be consistent across routers on a |
| 414 | link. |
| 415 | |
| 416 | KEY is the actual message digest key, of up to 16 chars (larger strings |
| 417 | will be truncated), and is associated with the given KEYID. |
paul | e2ea9fe | 2004-10-11 14:33:23 +0000 | [diff] [blame] | 418 | |
| 419 | Note that OSPF MD5 authentication requires that time never go backwards |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 420 | (correct time is NOT important, only that it never goes backwards), even |
paul | e2ea9fe | 2004-10-11 14:33:23 +0000 | [diff] [blame] | 421 | across resets, if ospfd is to be able to promptly reestabish adjacencies |
| 422 | with its neighbours after restarts/reboots. The host should have system |
Paul Jakma | 466c965 | 2006-06-26 12:55:58 +0000 | [diff] [blame] | 423 | 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] | 424 | etc.) or else the system clock should be periodically saved to non-volative |
| 425 | storage and restored at boot if MD5 authentication is to be expected to work |
| 426 | reliably. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 427 | @end deffn |
| 428 | |
| 429 | @deffn {Interface Command} {ip ospf cost <1-65535>} {} |
| 430 | @deffnx {Interface Command} {no ip ospf cost} {} |
| 431 | Set link cost for the specified interface. The cost value is set to router-LSA's |
| 432 | metric field and used for SPF calculation. |
| 433 | @end deffn |
| 434 | |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 435 | @anchor{ip ospf dead-interval minimal} |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 436 | @deffn {Interface Command} {ip ospf dead-interval <1-65535>} {} |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 437 | @deffnx {Interface Command} {ip ospf dead-interval minimal hello-multiplier <2-20>} {} |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 438 | @deffnx {Interface Command} {no ip ospf dead-interval} {} |
| 439 | Set number of seconds for RouterDeadInterval timer value used for Wait Timer |
| 440 | and Inactivity Timer. This value must be the same for all routers attached |
| 441 | to a common network. The default value is 40 seconds. |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 442 | |
| 443 | If 'minimal' is specified instead, then the dead-interval is set to 1 |
| 444 | second and one must specify a hello-multiplier. The hello-multiplier |
| 445 | specifies how many Hellos to send per second, from 2 (every 500ms) to |
| 446 | 20 (every 50ms). Thus one can have 1s convergence time for OSPF. If this form |
| 447 | is specified, then the hello-interval advertised in Hello packets is set to |
| 448 | 0 and the hello-interval on received Hello packets is not checked, thus |
| 449 | the hello-multiplier need NOT be the same across multiple routers on a common |
| 450 | link. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 451 | @end deffn |
| 452 | |
| 453 | @deffn {Interface Command} {ip ospf hello-interval <1-65535>} {} |
| 454 | @deffnx {Interface Command} {no ip ospf hello-interval} {} |
| 455 | Set number of seconds for HelloInterval timer value. Setting this value, |
| 456 | Hello packet will be sent every timer value seconds on the specified interface. |
| 457 | This value must be the same for all routers attached to a common network. |
| 458 | The default value is 10 seconds. |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 459 | |
| 460 | This command has no effect if @ref{ip ospf dead-interval minimal} is also |
| 461 | specified for the interface. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 462 | @end deffn |
| 463 | |
| 464 | @deffn {Interface Command} {ip ospf network (broadcast|non-broadcast|point-to-multipoint|point-to-point)} {} |
| 465 | @deffnx {Interface Command} {no ip ospf network} {} |
| 466 | Set explicitly network type for specifed interface. |
| 467 | @end deffn |
| 468 | |
| 469 | @deffn {Interface Command} {ip ospf priority <0-255>} {} |
| 470 | @deffnx {Interface Command} {no ip ospf priority} {} |
Paul Jakma | f912cb4 | 2006-07-27 23:30:16 +0000 | [diff] [blame^] | 471 | Set RouterPriority integer value. The router with the highest priority |
| 472 | will be more eligible to become Designated Router. Setting the value |
| 473 | to 0, makes the router ineligible to become Designated Router. The |
| 474 | default value is 1. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 475 | @end deffn |
| 476 | |
| 477 | @deffn {Interface Command} {ip ospf retransmit-interval <1-65535>} {} |
| 478 | @deffnx {Interface Command} {no ip ospf retransmit interval} {} |
| 479 | Set number of seconds for RxmtInterval timer value. This value is used |
| 480 | when retransmitting Database Description and Link State Request packets. |
| 481 | The default value is 5 seconds. |
| 482 | @end deffn |
| 483 | |
| 484 | @deffn {Interface Command} {ip ospf transmit-delay} {} |
| 485 | @deffnx {Interface Command} {no ip ospf transmit-delay} {} |
| 486 | Set number of seconds for InfTransDelay value. LSAs' age should be |
| 487 | incremented by this value when transmitting. |
| 488 | The default value is 1 seconds. |
| 489 | @end deffn |
| 490 | |
paul | 76b89b4 | 2004-11-06 17:13:09 +0000 | [diff] [blame] | 491 | @node Redistribute routes to OSPF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 492 | @section Redistribute routes to OSPF |
| 493 | |
Paul Jakma | f912cb4 | 2006-07-27 23:30:16 +0000 | [diff] [blame^] | 494 | @anchor{OSPF redistribute} |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 495 | @deffn {OSPF Command} {redistribute (kernel|connected|static|rip|bgp)} {} |
| 496 | @deffnx {OSPF Command} {redistribute (kernel|connected|static|rip|bgp) @var{route-map}} {} |
| 497 | @deffnx {OSPF Command} {redistribute (kernel|connected|static|rip|bgp) metric-type (1|2)} {} |
| 498 | @deffnx {OSPF Command} {redistribute (kernel|connected|static|rip|bgp) metric-type (1|2) route-map @var{word}} {} |
| 499 | @deffnx {OSPF Command} {redistribute (kernel|connected|static|rip|bgp) metric <0-16777214>} {} |
| 500 | @deffnx {OSPF Command} {redistribute (kernel|connected|static|rip|bgp) metric <0-16777214> route-map @var{word}} {} |
| 501 | @deffnx {OSPF Command} {redistribute (kernel|connected|static|rip|bgp) metric-type (1|2) metric <0-16777214>} {} |
| 502 | @deffnx {OSPF Command} {redistribute (kernel|connected|static|rip|bgp) metric-type (1|2) metric <0-16777214> route-map @var{word}} {} |
| 503 | @deffnx {OSPF Command} {no redistribute (kernel|connected|static|rip|bgp)} {} |
Paul Jakma | f912cb4 | 2006-07-27 23:30:16 +0000 | [diff] [blame^] | 504 | Redistribute routes of the specified protocol or kind into OSPF, with |
| 505 | the metric type and metric set if specified, filtering the routes using |
| 506 | the given route-map if specified. Redistributed routes may also be |
| 507 | filtered with distribute-lists, see @ref{ospf distribute-list}. |
| 508 | |
| 509 | Redistributed routes are distributed as into OSPF as Type-5 External |
| 510 | LSAs into links to areas that accept external routes, Type-7 External LSAs |
| 511 | for NSSA areas and are not redistributed at all into Stub areas, where |
| 512 | external routes are not permitted. |
| 513 | |
| 514 | Note that for connected routes, one may instead use |
| 515 | @dfn{passive-interface}, see @ref{OSPF passive-interface}. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 516 | @end deffn |
| 517 | |
| 518 | @deffn {OSPF Command} {default-information originate} {} |
| 519 | @deffnx {OSPF Command} {default-information originate metric <0-16777214>} {} |
| 520 | @deffnx {OSPF Command} {default-information originate metric <0-16777214> metric-type (1|2)} {} |
| 521 | @deffnx {OSPF Command} {default-information originate metric <0-16777214> metric-type (1|2) route-map @var{word}} {} |
| 522 | @deffnx {OSPF Command} {default-information originate always} {} |
| 523 | @deffnx {OSPF Command} {default-information originate always metric <0-16777214>} {} |
| 524 | @deffnx {OSPF Command} {default-information originate always metric <0-16777214> metric-type (1|2)} {} |
| 525 | @deffnx {OSPF Command} {default-information originate always metric <0-16777214> metric-type (1|2) route-map @var{word}} {} |
| 526 | @deffnx {OSPF Command} {no default-information originate} {} |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 527 | Originate an AS-External (type-5) LSA describing a default route into |
| 528 | all external-routing capable areas, of the specified metric and metric |
| 529 | type. If the 'always' keyword is given then the default is always |
| 530 | advertised, even when there is no default present in the routing table. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 531 | @end deffn |
| 532 | |
Paul Jakma | f912cb4 | 2006-07-27 23:30:16 +0000 | [diff] [blame^] | 533 | @anchor{ospf distribute-list} |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 534 | @deffn {OSPF Command} {distribute-list NAME out (kernel|connected|static|rip|ospf} {} |
| 535 | @deffnx {OSPF Command} {no distribute-list NAME out (kernel|connected|static|rip|ospf} {} |
Paul Jakma | f912cb4 | 2006-07-27 23:30:16 +0000 | [diff] [blame^] | 536 | Apply the access-list filter, NAME, to redistributed routes of the given type |
| 537 | before allowing the routes to redistributed into OSPF (@pxref{OSPF redistribute}). |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 538 | @end deffn |
| 539 | |
| 540 | @deffn {OSPF Command} {default-metric <0-16777214>} {} |
| 541 | @deffnx {OSPF Command} {no default-metric} {} |
| 542 | @end deffn |
| 543 | |
| 544 | @deffn {OSPF Command} {distance <1-255>} {} |
| 545 | @deffnx {OSPF Command} {no distance <1-255>} {} |
| 546 | @end deffn |
| 547 | |
| 548 | @deffn {OSPF Command} {distance ospf (intra-area|inter-area|external) <1-255>} {} |
| 549 | @deffnx {OSPF Command} {no distance ospf} {} |
| 550 | @end deffn |
| 551 | |
| 552 | @deffn {Command} {router zebra} {} |
| 553 | @deffnx {Command} {no router zebra} {} |
| 554 | @end deffn |
| 555 | |
paul | 76b89b4 | 2004-11-06 17:13:09 +0000 | [diff] [blame] | 556 | @node Showing OSPF information |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 557 | @section Showing OSPF information |
| 558 | |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 559 | @anchor{show ip ospf} |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 560 | @deffn {Command} {show ip ospf} {} |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 561 | Show information on a variety of general OSPF and area state and configuration |
| 562 | information. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 563 | @end deffn |
| 564 | |
| 565 | @deffn {Command} {show ip ospf interface [INTERFACE]} {} |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 566 | Show state and configuration of OSPF the specified interface, or all |
| 567 | interfaces if no interface is given. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 568 | @end deffn |
| 569 | |
| 570 | @deffn {Command} {show ip ospf neighbor} {} |
| 571 | @deffnx {Command} {show ip ospf neighbor INTERFACE} {} |
| 572 | @deffnx {Command} {show ip ospf neighbor detail} {} |
| 573 | @deffnx {Command} {show ip ospf neighbor INTERFACE detail} {} |
| 574 | @end deffn |
| 575 | |
| 576 | @deffn {Command} {show ip ospf database} {} |
| 577 | @end deffn |
| 578 | |
| 579 | @deffn {Command} {show ip ospf database (asbr-summary|external|network|router|summary)} {} |
| 580 | @deffnx {Command} {show ip ospf database (asbr-summary|external|network|router|summary) @var{link-state-id}} {} |
| 581 | @deffnx {Command} {show ip ospf database (asbr-summary|external|network|router|summary) @var{link-state-id} adv-router @var{adv-router}} {} |
| 582 | @deffnx {Command} {show ip ospf database (asbr-summary|external|network|router|summary) adv-router @var{adv-router}} {} |
| 583 | @deffnx {Command} {show ip ospf database (asbr-summary|external|network|router|summary) @var{link-state-id} self-originate} {} |
| 584 | @deffnx {Command} {show ip ospf database (asbr-summary|external|network|router|summary) self-originate} {} |
| 585 | @end deffn |
| 586 | |
| 587 | @deffn {Command} {show ip ospf database max-age} {} |
| 588 | @end deffn |
| 589 | |
| 590 | @deffn {Command} {show ip ospf database self-originate} {} |
| 591 | @end deffn |
| 592 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 593 | @deffn {Command} {show ip ospf route} {} |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 594 | Show the OSPF routing table, as determined by the most recent SPF calculation. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 595 | @end deffn |
| 596 | |
paul | 76b89b4 | 2004-11-06 17:13:09 +0000 | [diff] [blame] | 597 | @node Debugging OSPF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 598 | @section Debugging OSPF |
| 599 | |
| 600 | @deffn {Command} {debug ospf packet (hello|dd|ls-request|ls-update|ls-ack|all) (send|recv) [detail]} {} |
| 601 | @deffnx {Command} {no debug ospf packet (hello|dd|ls-request|ls-update|ls-ack|all) (send|recv) [detail]} {} |
| 602 | @end deffn |
| 603 | |
| 604 | @deffn {Command} {debug ospf ism} {} |
| 605 | @deffnx {Command} {debug ospf ism (status|events|timers)} {} |
| 606 | @deffnx {Command} {no debug ospf ism} {} |
| 607 | @deffnx {Command} {no debug ospf ism (status|events|timers)} {} |
| 608 | @end deffn |
| 609 | |
| 610 | @deffn {Command} {debug ospf nsm} {} |
| 611 | @deffnx {Command} {debug ospf nsm (status|events|timers)} {} |
| 612 | @deffnx {Command} {no debug ospf nsm} {} |
| 613 | @deffnx {Command} {no debug ospf nsm (status|events|timers)} {} |
| 614 | @end deffn |
| 615 | |
| 616 | @deffn {Command} {debug ospf lsa} {} |
| 617 | @deffnx {Command} {debug ospf lsa (generate|flooding|refresh)} {} |
| 618 | @deffnx {Command} {no debug ospf lsa} {} |
| 619 | @deffnx {Command} {no debug ospf lsa (generate|flooding|refresh)} {} |
| 620 | @end deffn |
| 621 | |
| 622 | @deffn {Command} {debug ospf zebra} {} |
| 623 | @deffnx {Command} {debug ospf zebra (interface|redistribute)} {} |
| 624 | @deffnx {Command} {no debug ospf zebra} {} |
| 625 | @deffnx {Command} {no debug ospf zebra (interface|redistribute)} {} |
| 626 | @end deffn |
| 627 | |
| 628 | @deffn {Command} {show debugging ospf} {} |
| 629 | @end deffn |
| 630 | |
paul | e5b308d | 2005-10-29 20:19:49 +0000 | [diff] [blame] | 631 | @node OSPF Configuration Examples |
| 632 | @section OSPF Configuration Examples |
| 633 | A simple example, with MD5 authentication enabled: |
| 634 | |
| 635 | @example |
| 636 | @group |
| 637 | ! |
| 638 | interface bge0 |
| 639 | ip ospf authentication message-digest |
| 640 | ip ospf message-digest-key 1 md5 ABCDEFGHIJK |
| 641 | ! |
| 642 | router ospf |
| 643 | network 192.168.0.0/16 area 0.0.0.1 |
| 644 | area 0.0.0.1 authentication message-digest |
| 645 | @end group |
| 646 | @end example |
| 647 | |
| 648 | An @acronym{ABR} router, with MD5 authentication and performing summarisation |
| 649 | of networks between the areas: |
| 650 | |
| 651 | @example |
| 652 | @group |
| 653 | ! |
| 654 | password ABCDEF |
| 655 | log file /var/log/quagga/ospfd.log |
| 656 | service advanced-vty |
| 657 | ! |
| 658 | interface eth0 |
| 659 | ip ospf authentication message-digest |
| 660 | ip ospf message-digest-key 1 md5 ABCDEFGHIJK |
| 661 | ! |
| 662 | interface ppp0 |
| 663 | ! |
| 664 | interface br0 |
| 665 | ip ospf authentication message-digest |
| 666 | ip ospf message-digest-key 2 md5 XYZ12345 |
| 667 | ! |
| 668 | router ospf |
| 669 | ospf router-id 192.168.0.1 |
| 670 | redistribute connected |
| 671 | passive interface ppp0 |
| 672 | network 192.168.0.0/24 area 0.0.0.0 |
| 673 | network 10.0.0.0/16 area 0.0.0.0 |
| 674 | network 192.168.1.0/24 area 0.0.0.1 |
| 675 | area 0.0.0.0 authentication message-digest |
| 676 | area 0.0.0.0 range 10.0.0.0/16 |
| 677 | area 0.0.0.0 range 192.168.0.0/24 |
| 678 | area 0.0.0.1 authentication message-digest |
| 679 | area 0.0.0.1 range 10.2.0.0/16 |
| 680 | ! |
| 681 | @end group |
| 682 | @end example |