ip route-static bfd

Function

The ip route-static bfd command sets the BFD parameters for a static route.

The undo ip route-static bfd command cancels BFD parameters of a static route.

By default, BFD parameters of a static route are not set.

Format

ip route-static bfd { interface-name | interface-type interface-number } { nexthop-address | dhcp } [ local-address address ] [ min-rx-interval min-rx-interval | min-tx-interval min-tx-interval | detect-multiplier multiplier ] *

ip route-static bfd [ vpn-instance vpn-instance-name ] nexthop-address local-address address [ min-rx-interval min-rx-interval | min-tx-interval min-tx-interval | detect-multiplier multiplier ] *

undo ip route-static bfd { interface-name | interface-type interface-number } { nexthop-address | dhcp }

undo ip route-static bfd [ vpn-instance vpn-instance-name ] nexthop-address

Parameters

Parameter Description Value
interface-type

Specifies the interface type.

-

interface-number

Specifies the interface number.

-

nexthop-address

Specifies the next hop address.

The value is in dotted decimal notation.

dhcp

Associates the static route with DHCP.

-

local-address address

Specifies the local address.

The value is in dotted decimal notation.

min-rx-interval min-rx-interval

Specifies the minimum interval at which BFD packets are received.

The value is an integer ranging from 3 to 20000, in milliseconds. The default value is 10.

min-tx-interval min-tx-interval

Specifies the minimum interval at which BFD packets are sent.

The value is an integer ranging from 3 to 20000, in milliseconds. The default value is 10.

detect-multiplier multiplier

Specifies the detection time multiplier.

The value is an integer ranging from 3 to 50. The default value is 3.

vpn-instance vpn-instance-name

Specifies the name of the VPN instance that the next hop belongs to.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
route-base write

Usage Guidelines

Usage Scenario

To configure BFD parameters for a static route, run the ip route-static bfd command.

Implementation Procedure

When setting BFD parameters for a static route, you need to specify the outbound interface or next hop.

Configuration Impact

To modify BFD parameters, you need to update BFD parameters of all the corresponding static routes.

If BFD parameters are configured, but the local-address ip-address parameter is not, BFD sessions may fail to be negotiated.

If the undo ipv6 route-static bfd command is run, the static route is unbound from all BFD sessions. Therefore, exercise caution when running the command.

Precautions

  • When configuring BFD for a single route, you need to check whether the BFD parameters of the static route are set.
  • Search for BFD parameters according to the outbound interface, next hop, and VPN instance that the next hop belongs to for the static route.
  • If min-rx-interval, min-tx-interval, or detect-multiplier are not set, default values of BFD parameters are used.
  • When you configure BFD parameters for a static VPN route, specifying a VPN instance and specifying an outbound interface are mutually exclusive. If an outbound interface is specified in this configuration, the VPN instance created on the next hop is used as the VPN instance bound to the outbound interface.

Example

# Set the next hop address to 1.2.3.4, the local address to 11.11.11.1, and the minimum interval at which BFD packets are received to 30 ms for a static route.
<HUAWEI> system-view
[~HUAWEI] ip route-static bfd 1.2.3.4 local-address 11.11.11.1 min-rx-interval 30
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >