Configure OSPFv2 on an Advanced Routing Engine
Focus
Focus

Configure OSPFv2 on an Advanced Routing Engine

Table of Contents
End-of-Life (EoL)

Configure OSPFv2 on an Advanced Routing Engine

Configure OSPFv2 on an advanced routing engine.
The Advanced Routing Engine supports OSPFv2, which supports only IPv4 addressing. Before you configure OSPFv2, you should understand OSPF Concepts.
Consider the OSPF Routing Profiles and filters that you can apply to OSPF and thereby save configuration time and maintain consistency. You can create profiles and filters in advance or as you configure OSPFv2.
  1. Enable OSPFv2 and configure general settings.
    1. Select NetworkRoutingLogical Routers and select a logical router.
    2. Select OSPF and Enable it.
    3. Enter the Router ID in the format of an IPv4 address.
    4. If you want to apply BFD to OSPF, select a BFD Profile you created, or select the default profile, or create a new BFD Profile. Default is None (Disable BFD).
    5. Select an OSPF Global General Timer profile or create a new one.
    6. Select an OSPF Global Interface Timer profile or create a new one.
    7. Select an OSPF Redistribution Profile or create a new one to redistribute IPv4 static routes, connected routes, RIPv2 routes, IPv4 BGP routes, or the IPv4 default route to OSPF.
  2. Create an OSPF area and specify characteristics based on the type of area.
    1. Select Area and Add an area identified by its Area ID in x.x.x.x format. This is the identifier that each neighbor must accept to be part of the same area.
    2. Select the Type tab and for Authentication, select an Authentication profile or create a new Authentication profile.
    3. Select the Type of area:
      • Normal—There are no restrictions; the area can carry all types of routes (intra-area routes, inter-area routes, and external routes).
      • Stub—There is no outlet from the area. To reach a destination outside of the area, traffic must go through an Area Border Router (ABR), which connects to other areas.
      • NSSA (Not-So-Stubby-Area)—NSSAs implement stub or totally stubby functionality, yet contain an autonomous system boundary router (ASBR). Type 7 LSAs generated by the ASBR are converted to Type 5 by ABRs and flooded to the rest of the OSPF domain. (The next graphic shows NSSA selected.)
    4. (Stub and NSSA areas only) Select no-summary to prevent the area from receiving Type 3 Summary LSAs and thereby reduce traffic in the area.
    5. (NSSA area only) Select Default information originate to cause OSPF to originate a default route.
      • Enter a Metric for the default route; range is 1 to 16,777,214; default is 10.
      • Select the Metric-Type: Type 1 or Type 2. Type E1 cost is the sum of the external cost plus the internal cost to reach that route. Type E2 is only the external cost of that route. This can be useful when you want to load-balance the same external route, for example.
    6. Select ABR to filter prefixes going in or out of the area, and then configure the following filters:
      • Select an Import-list or create a new Access List to filter network routes coming from another router into the area in LSAs, based on IPv4 source address, thus allowing or preventing the routes from being added to the global RIB (leave the destination address of the access list empty).
      • Select an Export-list or create a new Access List to filter network routes that originated in the area, to allow or prevent the routes from being advertised to other areas.
      • Select an Inbound Filter List or create a new Prefix List to filter network prefixes coming into the area.
      • Select an Outbound Filter List or create a new Prefix List to filter network prefixes that originated in the area, to prevent the routes from being advertised to other areas.
      • If the Type of area is NSSA and ABR is selected, Add an IPv4 Prefix to summarize a group of external subnets into a single Type-7 LSA, which is then translated to a Type-5 LSA and advertised to the backbone when you select Advertise.
  3. Specify the network range for the area.
    1. Select Range and Add an IP Address/Netmask, which summarizes routes for the area. The result is that a Type-3 Summary LSA with routing information matching this range is advertised into the backbone area if that area contains at least one intra-area network (that is, described with router or network LSA) from this range.
      Look at the learned routes in the LSDB for the area and use this Range to summarize routes, thereby reducing LSA traffic.
    2. Enter a Substitute IP address/netmask so that a Type-3 Summary LSA with this IP address/netmask is announced into the backbone area if the area contains at least one intra-area network from the IP Address/Netmask specified in the prior step.
      Use the Substitute IP address/netmask as a way to translate a private address to a public address. A Substitute address has no effect if Advertise is disabled.
    3. Select Advertise to send link-state advertisements (LSAs) that match the subnet; default is enabled.
  4. Configure each interface to be included in the area.
    1. Add an Interface by selecting one and Enable it.
    2. Select MTU Ignore to ignore maximum transmission unit (MTU) mismatches when trying to establish an adjacency (default is disabled; MTU match checking occurs). RFC 2328 defines the interface MTU as “The size in bytes of the largest IP datagram that can be sent out the associated interface, without fragmentation.”
    3. Select Passive to allow the network of the interface to be advertised, but no neighbor relationship is established on that interface; this is useful for leaf interfaces.
    4. Select the Link Type:
      • Broadcast—All neighbors that are accessible through the interface are discovered automatically by multicasting OSPF Hello messages, such as over an Ethernet interface.
      • p2p (point-to-point)—Automatically discover the neighbor.
      • p2mp (point-to-multipoint)—Neighbors must be defined manually: Add the Neighbor IP address for all neighbors that are reachable through this interface and the Priority of each neighbor to be elected the designated router (DR) or backup DR; range is 0 to 255; default is 1.
    5. Enter the OSPF Priority for the interface to be elected as a designated router (DR) or backup DR (BDR); range is 0 to 255; default is 1. If zero is configured, the router will not be elected as DR or BDR.
    6. Select a Timer Profile to apply to the interface or create a new OSPF Interface Timer profile. This OSPF Interface Timer profile overrides the Global Interface Timer applied to OSPF.
    7. Select an Authentication Profile to apply to the interface or create a new OSPF Interface Authentication profile. This Authentication Profile overrides the Authentication Profile applied to the Area (on the Type tab).
    8. By default, the interface will inherit the BFD profile you applied to the logical router for OSPF (Inherit-lr-global-setting). Alternatively, select the default profile, select a different BFD Profile, create a new BFD Profile, or select None (Disable BFD) to disable BFD for the interface.
    9. Enter an OSPF Cost for the interface, which influences route selection; range is 1 to 65,5535; default is 10. During route selection, a route with a lower cumulative cost (the added costs of each interface used) is preferred over a route with a higher cumulative cost.
    10. Click OK.
  5. If the ABR does not have a physical link to the backbone area, configure a virtual link to a neighbor ABR within the same area that has a physical link to the backbone area.
    1. Select Virtual Link.
    2. Add a virtual link by Name.
    3. Enable the virtual link.
    4. Select the transit Area where the neighbor ABR that has the physical link to the backbone area is located.
    5. Enter the Router ID of the neighbor ABR on the remote end of the virtual link.
    6. Select a Timer Profile or create a new Timer Profile to apply to the virtual link. This OSPF Interface Timer profile overrides the Global Interface Timer applied to OSPF and the OSPF Interface Timer profile applied to the interface.
    7. Select an Authentication profile or create a new Authentication Profile to apply to the virtual link. This Authentication Profile overrides the Authentication Profile applied to the Area (on the Type tab) and the Authentication Profile applied to the interface.
    8. Click OK.
  6. Click OK to save the area.
  7. Configure OSPF Graceful Restart and RFC 1583 compatibility for OSPFv2.
    1. Select NetworkRoutingLogical Routers and select the logical router.
    2. Select OSPFAdvanced.
    3. Select rfc-1583 compatibility to enforce compatibility with RFC 1583, which allows one best route to an autonomous system boundary router (ASBR) in the OSPF routing table. Default is disabled, which means the OSPF routing table can maintain multiple intra-AS paths in the routing table, thereby preventing routing loops.
    4. Enable Graceful Restart to enable OSPF Graceful Restart for the logical router. Default is enabled.
    5. Enable Helper Mode to enable the logical router to function in Graceful Restart helper mode. Default is enabled.
    6. Enable Strict LSA Checking to cause the helper router to stop performing helper mode and causes the graceful restart process to stop if a link-state advertisement indicates a network topology change. Default is enabled.
    7. Specify the Grace Period (sec)—the number of seconds within which the logical router will perform a graceful restart if the firewall goes down or becomes unavailable; range is 5 to 1,800; default is 120.
    8. Specify the Max Neighbor Restart Time (sec); range is 5 to 1,800; default is 140.
    9. Click OK.
  8. Configure intra-area filtering to determine which OSPFv2 routes are placed in the global RIB.
    You might learn OSPFv2 routes and redistribute them, but not want them in the global RIB; you might want to allow only specific OSPFv2 routes to the global RIB.
    1. Select NetworkRoutingLogical Routers and select a logical router.
    2. Select RIB Filter.
    3. To filter IPv4 OSPFv2 routes for the global RIB, in the OSPFv2 Route-Map, select a Redistribution route map you created or create a new Redistribution Route Map in which the Source Protocol is OSPF and the Destination Protocol is RIB.
    4. Click OK.
  9. (Optional) Change the default administrative distances for OSPF intra area, inter area, and external routes within a logical router.
  10. Commit.
  11. View advanced routing information for OSPFv2 and the link-state database (LSDB). The PAN-OS CLI Quick Start lists the commands in the CLI Cheat Sheet: Networking.