This is the documentation for the v21.03 version. Looking for the documentation of the latest version? Have a look here.
OSPF Area Configuration¶
To configure area-specific settings in OSPF, start in
config-ospf mode and
area <area-id> command to enter
tnsr(config-ospf)# area <area-id> tnsr(config-ospf-area)#
config-ospf-area mode contains the following commands:
Enables authentication for this area. Communication from peers must contain the expected authentication information to be accepted, and outgoing packets will have authentication information added.
When present on its own, the authentication mechanism used is simple passwords. Authentication passwords are configured in OSPF Interface Configuration mode using the
When present, enables MD5 HMAC authentication for this area. Much stronger authentication than simple passwords. The key is configured in OSPF Interface Configuration mode using the
- default-cost <cost>
Sets the cost applied to default route summary LSA messages sent to stub areas.
- export-list <acl-name>
Uses the given ACL to limit Type 3 summary LSA messages for intra-area paths that would otherwise be advertised. This behavior only applies if this router is the ABR for the area in question.
- filter-list (in|out) prefix-list <prefix-list-name>
import-listbut uses prefix lists instead of ACLs, and can work in either direction.
- import-list <acl-name>
export-list, but for routes announced by other routers into this area.
- nssa [(no-summary|translate (always|candidate|never))]
Configures this area as a Not-so-Stubby Area (NSSA), which does not contain external links but may contain static routes to non-OSPF destinations (See Area Types for more information on area types and behaviors.
When present, the area will instead of considered an NSSA Totally Stub area (Area Types).
- translate (always|candidate|never)
Configures NSSA-ABR translations, for converting between Type 5 and Type 7 LSAs.
Always translate messages.
Participate in NSSA-ABR candidate elections. Currently the default behavior.
Never translate messages.
- range <prefix> [cost <val>|not-advertise|substitute <sub-prefix>]
Configure summarization of routes inside the given prefix. Instead of Type 1 (Router) and Type 2 (Network) LSAs, it creates Type 3 Summary LSAs instead.
- cost <val>
Apply the specified cost to summarized routes for this prefix.
Disable advertisement for this prefix.
- substitute <sub-prefix>
Instead of advertising the first prefix, advertise this prefix instead.
- shortcut (default|disable|enable)
- stub [no-summary]
Configure this area as a Stub Area (Area Types).
When present, the area will instead be considered a Totally Stub Area (Area Types).
- virtual-link <router-id>
Configures a virtual link in this area between this router and the specified router. Both this router and the target router must be ABRs, and both must have a link to this (non-backbone) area. Additionally, the virtual link must be added on both ends. This command enters
config-ospf-vlinkmode which has a subset of commands available similar to OSPF Interface Configuration. The available commands are
transmit-delay. The usage of these commands is explained in OSPF Interface Configuration.
The virtual link is used to exchange routing information directly between the routers involved, and can be used to deliver traffic via the peer if necessary. Such a relationship may be necessary to nudge traffic from an ABR with a single undesirable link to another ABR with a faster link to a common remote destination, when the path would otherwise be selected because it is shorter.