< Home

Configuring Interworking Between BFD and Static Routes

To provide IP-link for public IPv4 static routes by using BFD sessions, you can bind static routes to BFD sessions. One static route can be bound to only one session.

Prerequisites

Before you configure interworking between BFD and static routes, perform the following on devices at both ends:

  • Setting the IP addresses of interfaces to ensure reachable adjacent nodes.
  • Configuring a static route. For details, see Configuring Static Route-CLI.
  • Manually configuring the static BFD session. For details, see Creating a Static BFD Session.

    The static BFD session can be one-hop or multi-hop.

Procedure

  1. Access the system view.

    system-view

  2. Configure interworking between BFD and a IPv4 or IPv6 static route.
    • BFD for IPv4 static route.

      ip route-static [ vpn-instance vpn-instance-name ] ip-address { mask | mask-length } { nexthop-address [ public ] | interface-type interface-number [ nexthop-address ] | vpn-instance vpn-instance-name nexthop-address } [ preference preference ] track bfd-session cfg-name [ description description ]
    • BFD for IPv6 static route.

      ipv6 route-static [ vpn-instance vpn-instance-name ] dest-ipv6-address prefix-length { interface-type interface-number [ nexthop-ipv6-address ] | vpn-instance vpn-instance-name nexthop-ipv6-address | nexthop-ipv6-address [ public ] } [ preference preference | tag tag ] * track bfd-session cfg-name [ description text ]

    • Before you configure the interworking, make sure that the destination IP address and next-hop IP address (or outbound interface) are the same as those of the static route. Generally, configure the static route, and then bind it to the BFD session.
    • cfg-name specifies the BFD session, where the link to be monitored is specified.
    • Both association between IPv4 static routes and BFDv6 and association between IPv6 static routes and BFDv4 are supported.

  3. Access the BFD global view.

    bfd

  4. Enables a device to check whether an associated BFD session is deleted.

    undo bfd session nonexistent-config-check disable

    To check whether an associated BFD session is deleted, run the undo bfd session nonexistent-config-check disable command. After a static route is associated with a static BFD session, deleting the static BFD session causes the association to become invalid. After a device is enabled to check whether an associated BFD session is deleted, the device checks whether the BFD session is associated when deleting a BFD session.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >