R3102-R3103-HP 6600/HSR6600 Routers Layer 3 - IP Routing Command Reference

509
Using the routing policy, a routing protocol can designate a backup link for specific routes to implement
FRR. When the primary link fails, FRR immediately directs packets to the backup link to minimize
interruption time.
Examples
# Configure node 10 of routing policy policy1 to set the backup output interface GigabitEthernet 2/1/1
and backup next hop 193.1.1.8 for the route 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 gigabitethernet 2/1/1
backup-nexthop 193.1.1.8
apply ip-address next-hop
Use apply ip-address next-hop to set a next hop for IPv4 routing information.
Use undo apply ip-address next-hop to remove the clause configuration.
Syntax
apply ip-address next-hop ip-address
undo apply ip-address next-hop
Default
No next hop is set for IPv4 routing information.
Views
Routing policy view
Default command level
2: System level
Parameters
ip-address: Specifies the IP address of the next hop.
Usage guidelines
This command cannot set a next hop for redistributed routes.
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
display ip ip-prefix
Use display ip ip-prefix to display IPv4 prefix list statistics.