< Home

apply backup-nexthop

Function

The apply backup-nexthop command configures a backup next hop in a routing policy.

The undo apply backup-nexthop command deletes the configured backup next hop.

By default, the backup next hop is not configured in a routing policy.

Product

Support

S5720-EI, S5720-HI, S5720I-SI, S5720S-SI, S5720-SI, S5735-S, S5735S-S, S5735-S-I, S5730-HI, S5730S-EI, S5730-SI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6720S-SI, S6720-SI, S6730-H, S6730S-H, S6730-S, and S6730S-S

Supported.

S2720-EI, S5720-LI, S5735-L, S5735S-L, S5735S-L-M, S5720S-LI, S6720-LI, and S6720S-LI

Not supported.

Format

apply backup-nexthop { ipv4-address | auto }

undo apply backup-nexthop

Parameters

Parameter Description Value

ipv4-address

Specifies the IP address of a backup next hop.

It is in dotted decimal notation.

auto

Automatically searches for the backup next hop.

-

Views

Route-Policy view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The apply backup-nexthop command is used to configure a backup next hop for a route in IP FRR and VPN FRR scenarios. After IP FRR is enabled, data traffic can be quickly switched to the backup next hop if the primary link fails.

Prerequisites

if-match clauses can be used to set matching rules such as interfaces, IP prefix lists, and ACLs before a backup next hop is configured.

Follow-up Procedure

The configured route-policy can be used in the ip frr (system view) command or the ip frr (VPN instance view) command that is run to configure IP FRR for a public or private network. It can also be used in the vpn frr command that is run to enable VPN FRR.

In a VPN FRR scenario, you only need to run the apply backup-nexthop command to configure a backup next hop.

In an IP FRR scenario, you need to run both the apply backup-nexthop and apply backup-interface commands.

Precautions

For P2P links, a backup next hop is not necessary. For non-P2P links, a backup next hop is necessary.

Example

# Configure the backup interface and the backup next hop 192.168.20.2 in the route-policy named ip_frr_rp.

<HUAWEI> system-view
[HUAWEI] route-policy ip_frr_rp permit node 10
[HUAWEI-route-policy] apply backup-interface vlanif10
[HUAWEI-route-policy] apply backup-nexthop 192.168.20.2

# Delete the configured backup next hop from the route-policy named ip_frr_rp.

<HUAWEI> system-view
[HUAWEI] route-policy ip_frr_rp permit node 10
[HUAWEI-route-policy] undo apply backup-nexthop
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >