Configure BFD

After you read the BFD Overview, which includes firewall models and interfaces supported, perform the following before configuring BFD:
The effectiveness of your BFD implementation depends on a variety of factors, such as traffic loads, network conditions, how aggressive your BFD settings are, and how busy the dataplane is.
  1. Create a BFD profile.
    If you change a setting in a BFD profile that an existing BFD session is using and you commit the change, before the firewall deletes that BFD session and recreates it with the new setting, the firewall sends a BFD packet with the local state set to admin down. The peer device may or may not flap the routing protocol or static route, depending on the peer’s implementation of RFC 5882, Section 3.2.
    1. Select NetworkNetwork ProfilesBFD Profile and Add a Name for the BFD profile. The name is case-sensitive and must be unique on the firewall. Use only letters, numbers, spaces, hyphens, and underscores.
    2. Select the Mode in which BFD operates:
      • Active—BFD initiates sending control packets to peer (default). At least one of the BFD peers must be Active; both can be Active.
      • Passive—BFD waits for peer to send control packets and responds as required.
  2. Configure BFD intervals.
    1. Enter the Desired Minimum Tx Interval (ms). This is the minimum interval, in milliseconds, at which you want the BFD protocol (referred to as BFD) to send BFD control packets; you are thus negotiating the transmit interval with the peer. Minimum on PA-7000, PA-5200 Series, and PA-5000 Series firewalls is 50; minimum on PA-3000 Series firewall is 100; minimum on VM-Series firewall is 200. Maximum is 2,000; default is 1,000.
      The recommendation is to set the Desired Minimum Tx Interval on a PA-7000 or PA-5000 Series firewall to 100 or greater; a value less than 100 is at risk of causing BFD flaps.
      If you have multiple routing protocols that use different BFD profiles on the same interface, configure the BFD profiles with the same Desired Minimum Tx Interval.
    2. Enter the Required Minimum Rx Interval (ms). This is the minimum interval, in milliseconds, at which BFD can receive BFD control packets. Minimum on PA-7000, PA-5200 Series, and PA-5000 Series firewalls is 50; minimum on PA-3000 Series firewall is 100; minimum on VM-Series firewall is 200. Maximum is 2,000; default is 1,000.
      The recommendation is to set the Required Minimum Rx Interval on a PA-7000 or PA-5000 Series firewall to 100 or greater; a value less than 100 is at risk of causing BFD flaps.
  3. Configure the BFD Detection Time Multiplier.
    Enter the Detection Time Multiplier. The local system calculates the detection time as the Detection Time Multiplier received from the remote system multiplied by the agreed transmit interval of the remote system (the greater of the Required Minimum Rx Interval and the last received Desired Minimum Tx Interval). If BFD does not receive a BFD control packet from its peer before the detection time expires, a failure has occurred. Range is 2 to 50; default is 3.
    For example, a transmit interval of 300 ms x 3 (Detection Time Multiplier) = 900 ms detection time.
    When configuring a BFD profile, take into consideration that the firewall is a session-based device typically at the edge of a network or data center and may have slower links than a dedicated router. Therefore, the firewall likely needs a longer interval and a higher multiplier than the fastest settings allowed. A detection time that is too short can cause false failure detections when the issue is really just traffic congestion.
  4. Configure the BFD hold time.
    Enter the Hold Time (ms). This is the delay, in milliseconds, after a link comes up before BFD transmits BFD control packets. Hold Time applies to BFD Active mode only. If BFD receives BFD control packets during the Hold Time, it ignores them. Range is 0-120000. The default is 0, which means no transmit Hold Time is used; BFD sends and receives BFD control packets immediately after the link is established.
  5. (Optional—For a BGP IPv4 implementation only) Configure hop-related settings for the BFD profile.
    1. Select Multihop to enable BFD over BGP multihop.
    2. Enter the Minimum Rx TTL.This is the minimum Time-to-Live value (number of hops) BFD will accept (receive) in a BFD control packet when BGP supports multihop BFD. (Range is 1-254; there is no default).
      The firewall drops the packet if it receives a smaller TTL than its configured Minimum Rx TTL. For example, if the peer is 5 hops away, and the peer transmits a BFD packet with a TTL of 100 to the firewall, and if the Minimum Rx TTL for the firewall is set to 96 or higher, the firewall drops the packet.
  6. Save the BFD profile.
    Click OK.
  7. (Optional) Enable BFD for a static route.
    Both the firewall and the peer at the opposite end of the static route must support BFD sessions.
    1. Select NetworkVirtual Routers and select the virtual router where the static route is configured.
    2. Select the Static Routes tab.
    3. Select the IPv4 or IPv6 tab.
    4. Select the static route where you want to apply BFD.
    5. Select an Interface (even if you are using a DHCP address). The Interface setting cannot be None.
    6. For Next Hop, select IP Address and enter the IP address if not already specified.
    7. For BFD Profile, select one of the following:
      • default—Uses only default settings.
      • A BFD profile you configured—See Create a BFD profile.
      • New BFD Profile—Allows you to Create a BFD profile.
        Selecting None (Disable BFD) disables BFD for this static route.
    8. Click OK.
    A BFD column on the IPv4 or IPv6 tab indicates the BFD profile configured for the static route.
  8. (Optional) Enable BFD for all BGP interfaces or for a single BGP peer.
    If you enable or disable BFD globally, all interfaces running BGP will be taken down and brought back up with the BFD function. This can disrupt all BGP traffic. When you enable BFD on the interface, the firewall stops the BGP connection to the peer to program BFD on the interface. The peer device sees the BGP connection drop, which can result in a reconvergence. Enable BFD for BGP interfaces during an off-peak time when a reconvergence will not impact production traffic.
    If you implement both BFD for BGP and HA path monitoring, Palo Alto Networks recommends you not implement BGP Graceful Restart. When the BFD peer’s interface fails and path monitoring fails, BFD can remove the affected routes from the routing table and synchronize this change to the passive HA firewall before Graceful Restart can take effect. If you decide to implement BFD for BGP, Graceful Restart for BGP, and HA path monitoring, you should configure BFD with a larger Desired Minimum Tx Interval and larger Detection Time Multiplier than the default values.
    1. Select NetworkVirtual Routers and select the virtual router where BGP is configured.
    2. Select the BGP tab.
    3. (Optional) To apply BFD to all BGP interfaces on the virtual router, in the BFD drop-down, select one of the following and click OK:
      Selecting None (Disable BFD) disables BFD for all BGP interfaces on the virtual router; you cannot enable BFD for a single BGP interface.
    4. (Optional) To enable BFD for a single BGP peer interface (thereby overriding the BFD setting for BGP as long as it is not disabled), perform the following tasks:
      1. Select the Peer Group tab.
      2. Select a peer group.
      3. Select a peer.
      4. In the BFD drop-down, select one of the following:
        default—Uses only default settings.
        Inherit-vr-global-setting (default)—The BGP peer inherits the BFD profile that you selected globally for BGP for the virtual router.
        A BFD profile you configured—See Create a BFD profile.
        Selecting Disable BFD disables BFD for the BGP peer.
    5. Click OK.
    6. Click OK.
    A BFD column on the BGP - Peer Group/Peer list indicates the BFD profile configured for the interface.
  9. (Optional) Enable BFD for OSPF or OSPFv3 globally or for an OSPF interface.
    1. Select NetworkVirtual Routers and select the virtual router where OSPF or OSPFv3 is configured.
    2. Select the OSPF or OSPFv3 tab.
    3. (Optional) In the BFD drop-down, select one of the following to enable BFD for all OSPF or OSPFv3 interfaces and click OK:
      • default—Uses only default settings.
      • A BFD profile you configured—See Create a BFD profile.
      • New BFD Profile—Allows you to Create a BFD profile.
        Selecting None (Disable BFD) disables BFD for all OSPF interfaces on the virtual router; you cannot enable BFD for a single OSPF interface.
    4. (Optional) To enable BFD on a single OSPF peer interface (and thereby override the BFD setting for OSPF, as long as it is not disabled), perform the following tasks:
      1. Select the Areas tab and select an area.
      2. On the Interface tab, select an interface.
      3. In the BFD drop-down, select one of the following to configure BFD for the specified OSPF peer:
        default—Uses only default settings.
        Inherit-vr-global-setting (default)—OSPF peer inherits the BFD setting for OSPF or OSPFv3 for the virtual router.
        A BFD profile you configured—See Create a BFD profile.
        Selecting Disable BFD disables BFD for the OSPF or OSPFv3 interface.
      4. Click OK.
    5. Click OK.
    A BFD column on the OSPF Interface tab indicates the BFD profile configured for the interface.
  10. (Optional) Enable BFD for RIP globally or for a single RIP interface.
    1. Select NetworkVirtual Routers and select the virtual router where RIP is configured.
    2. Select the RIP tab.
    3. (Optional) In the BFD drop-down, select one of the following to enable BFD for all RIP interfaces on the virtual router and click OK:
      • default—Uses only default settings.
      • A BFD profile you configured—See Create a BFD profile.
      • New BFD Profile—Allows you to Create a BFD profile.
        Selecting None (Disable BFD) disables BFD for all RIP interfaces on the virtual router; you cannot enable BFD for a single RIP interface.
    4. (Optional) To enable BFD for a single RIP interface (and thereby override the BFD setting for RIP, as long as it is not disabled), perform the following tasks:
      1. Select the Interfaces tab and select an interface.
      2. In the BFD drop-down, select one of the following:
        default—Uses only default settings).
        Inherit-vr-global-setting (default)—RIP interface inherits the BFD profile that you selected for RIP globally for the virtual router.
        A BFD profile you configured—See Create a BFD profile.
        Selecting None (Disable BFD) disables BFD for the RIP interface.
      3. Click OK.
    5. Click OK.
    The BFD column on the Interface tab indicates the BFD profile configured for the interface.
  11. Commit the configuration.
    Click Commit.
  12. View BFD summary and details.
    1. Select NetworkVirtual Routers, find the virtual router you are interested in, and click More Runtime Stats.
    2. Select the BFD Summary Information tab to see summary information, such as BFD state and run-time statistics.
    3. (Optional) Select details in the row of the interface you are interested in to view Reference: BFD Details.
  13. Monitor BFD profiles referenced by a routing configuration; monitor BFD statistics, status, and state.
    Use the following CLI operational commands:
    • show routing bfd active-profile [<name>]
    • show routing bfd details [interface<name>][local-ip<ip>][multihop][peer-ip<ip>][session-id][virtual-router<name>]
    • show routing bfd drop-counters session-id<session-id>
    • show counter global | match bfd
  14. (Optional) Clear BFD transmit, receive, and drop counters.
    clear routing bfd counters session-id all | <1-1024>
  15. (Optional) Clear BFD sessions for debugging.
    clear routing bfd session-state session-id all | <1-1024>

Related Documentation