Create a Static Route
Focus
Focus
Next-Generation Firewall

Create a Static Route

Table of Contents

Create a Static Route

Create a static route for a logical router on an Advanced Routing Engine.
Where Can I Use This?What Do I Need?
  • NGFW
One of these licenses for Strata Cloud Manager managed NGFWs:
  • Strata Cloud Manager Essentials
  • Strata Cloud Manager Pro
Create a static route for a logical router in an Advanced Routing Engine.
  1. Create a static route.
    1. Select NetworkRoutingLogical Routers and select the logical router.
    2. Select Static and Add an IPv4 or IPv6 static route by Name (maximum of 63 characters). The name must start with an alphanumeric character, underscore (_), or hyphen (-), and can contain a combination of alphanumeric characters, underscore, or hyphen. No dot (.) or space is allowed.
    3. For Destination, enter the route and netmask (for example, 192.168.2.0/24 for an IPv4 address or 2001:db8:123:1::0/64 for an IPv6 address). If you’re creating a default route, enter the default route (0.0.0.0/0 for an IPv4 address or ::/0 for an IPv6 address). Alternatively, you can select or create an address object of type IP Netmask.
    4. For Interface, specify the outgoing interface for packets to use to go to the next hop. Specifying an interface provides stricter control over which interface the firewall uses rather than using the interface in the route table for the next hop of this static route.
  2. (Optional) Configure path monitoring for the static route; you can monitor up to 128 static routes.
    1. Select Path Monitoring to allow configuration of path monitoring (default is disabled).
    2. Enable path monitoring (default is disabled).
    3. Failure Condition determines whether path monitoring for the static route is based on one (any) or all monitored destinations. Select whether Any or All of the monitored destinations for the static route must be unreachable by ICMP for the firewall to remove the static route from the RIB and FIB and add the static route that has the next lowest metric (going to the same destination) to the FiB.
      Select All to avoid the possibility of any single monitored destination signaling a route failure when the destination is simply offline for maintenance, for example.
    4. (Optional) Specify the Preemptive Hold Time (min), the number of minutes a downed path monitor must remain in Up state before the firewall reinstalls the static route into the RIB; range is 0 to 1,440; default is 2. A setting of 0 (zero) causes the firewall to reinstall the route into the RIB immediately upon the path monitor coming up.
      The path monitor evaluates all of its monitored destinations for the static route and comes up based on the Any or All failure condition. If a link goes down or flaps during the hold time, when the link comes back up, the path monitor resumes and the Preemptive Hold Time is reset, causing the timer to restart from zero.
    5. Add a path monitoring destination by Name.
    6. Enable the path monitoring destination.
    7. For Source IP, select the IP address that the firewall uses in the ICMP ping to the monitored destination:
      • If an interface has multiple IP addresses, select one.
      • If you select an interface, the firewall uses the first IP address assigned to the interface by default.
      • If you select DHCP (Use DHCP Client address), the firewall uses the address that DHCP assigned to the interface. To see the DHCP address, select NetworkInterfacesEthernet and in the row for the Ethernet interface, click on Dynamic DHCP Client. The IP Address displays in the Dynamic IP Interface Status window.
    8. For Destination IP, enter an IP address or address object to which the firewall will monitor the path. The monitored destination and static route destination must use the same address family (IPv4 or IPv6).
      The destination IP address should belong to a reliable endpoint; you shouldn’t base path monitoring on a device that itself is unstable or unreliable.
    9. (Optional) Specify the ICMP Ping Interval (sec) in seconds to determine how frequently the firewall monitors the path (range is 1 to 60; default is 3).
    10. (Optional) Specify the ICMP Ping Count of packets that don’t return from the destination before the firewall considers the static route down and removes it from the RIB and FIB (range is 3 to 10; default is 5).
    11. Click OK to save the path monitor destination.
    12. Click OK twice to save the static route.
  3. (Optional) Control the static routes that are placed in the global RIB.
    You might configure static routes and redistribute them, but not want them in the protocol’s local route table or global RIB. You might want to add only specific static routes to the global RIB.
    1. Select NetworkRoutingLogical Routers and select a logical router.
    2. Select RIB Filter to allow routes into or prevent routes from being added to the global RIB.
    3. To filter IPv4 static routes and connected routes, for Static Route-Map, select a Redistribution Route Map or create a new one.
    4. To filter IPv6 static routes and connected routes, for Static Route-Map, select a Redistribution Route Map or create a new one.
    5. Click OK.
  4. (Optional) Change the default administrative distances for static IPv4 and static IPv6 routes within a logical router.
  5. Commit the changes.
  6. Access the CLI to view the static route path monitor: show advanced-routing static-route-path-monitor. The PAN-OS CLI Quick Start lists additional commands in the CLI Cheat Sheet: Networking.