(Optional) Preventing a Static Route from Being Selected If the BFD Session Associated with It Is in the AdminDown State
Context
By default, a static route can still be selected by the router even though the BFD session associated with it is in the AdminDown state, but not by non-Huawei devices. As a result, the router cannot interwork with non-Huawei devices.
To address this problem, run the ip route-static track bfd-session admindown invalid command to configure the router not to select the static route if the BFD session associated with it is in the AdminDown state.
Procedure
- Run system-view
The system view is displayed.
- Run ip route-static track bfd-session session-name bfd-name admindown invalid
The router has been configured not to select the static route if the BFD session associated with it is in the AdminDown state.
By default, a static route can still be selected by the router even though the BFD session associated with it is in the AdminDown state.