< Home

ip route-static track bfd-session admindown invalid

Function

The ip route-static track bfd-session admindown invalid command prevents a static route from being selected if the BFD session associated with it is in the AdminDown state.

The undo ip route-static track bfd-session admindown invalid command restores the default configuration.

By default, a static route can still be selected by the FW even though the BFD session associated with it is in the AdminDown state.

Format

ip route-static track bfd-session session-name bfd-name admindown invalid

undo ip route-static track bfd-session [ session-name bfd-name ] admindown invalid

Parameters

Parameter Description Value
session-name bfd-name

Specifies a BFD session bound to a static route.

The value must be the name of an existing BFD session.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

By default, a static route can still be selected by the FW even though the BFD session associated with it is in the AdminDown state, but not by non-Huawei devices. As a result, the FW cannot interwork with non-Huawei devices.

To address this problem, run the ip route-static track bfd-session admindown invalid command to configure the FW not to select the static route if the BFD session associated with it is in the AdminDown state.

Prerequisites

The BFD session specified by bfd-name has been created.

Precautions

The undo ip route-static track bfd-session admindown invalid command enables all static routes to be selected by the FW even though the BFD sessions associated with them are in the AdminDown state.

Example

# Prevent the static route from being selected if the BFD session associated with it is in the AdminDown state.

<sysname> system-view
[sysname] bfd
[sysname-bfd] quit
[sysname] bfd bfda bind peer-ip 1.1.1.1
[sysname-bfd-session-bfda] discriminator local 20
[sysname-bfd-session-bfda] discriminator remote 10
[sysname-bfd-session-bfda] commit
[sysname-bfd-session-bfda] quit
[sysname] ip route-static track bfd-session session-name bfda admindown invalid
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >