12-21
With FRR, a routing protocol can designate a backup next hop by using the referenced route
policy when a network failure is detected, and packets are directed to the backup next hop for
forwarding, thus to reduce traffic recovery time greatly.
This command allows you to specify a backup next hop in a route policy for routes matching
specified criteria.
Examples
# Configure node 10 of route policy
policy1
to specify backup outbound interface
VLAN-interface 1 and backup next hop 193.1.1.8 for packets destined to 100.1.1.0/24.
<Sysname> system-view
[Sysname] ip ip-prefix abc index 10 permit 100.1.1.0 24
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy] if-match ip-prefix abc
[Sysname-route-policy] apply fast-reroute backup-interface vlan-interface 1
backup-nexthop 193.1.1.8
apply ip-address next-hop
Syntax
apply ip-address next-hop
ip-address
undo apply ip-address
next-hop
View
Route policy view
Default Level
2: System level
Parameters
ip-address
: IP address of the next hop.
Description
Use the
apply ip-address next-hop
command to set a next hop for IPv4 routing information.
Use the
undo apply ip-address next-hop
command to remove the clause configuration.
No next hop is set for IPv4 routing information by default.
This command cannot set a next hop for redistributed routes.
Related commands:
if-match interface
,
if-match acl
,
if-match ip-prefix
,
if-match ip
next-hop
,
if-match cost
,
if-match tag
,
route-policy
,
apply local-preference
,
apply cost
,
apply origin,
apply tag
.
Examples
# Configure node 10 in
permit
mode of routing policy
policy1
to set next hop 193.1.1.8 for
routes matching AS-PATH list 1.<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy] if-match as-path 1
[Sysname-route-policy] apply ip-address next-hop 193.1.1.8