R3166-R3206-HP High-End Firewalls Network Management Command Reference-6PW101

Table Of Contents
369
Note that:
At most two default next hops can be specified in one command line.
Using the undo apply ip-address default next-hop command with a next hop specified removes the
default next hop. Using this command without any next hop specified removes all default next hops.
Examples
# Set the default next hop to 1.1.1.1.
<Sysname> system-view
[Sysname] policy-based-route aa permit node 11
[Sysname-pbr-aa-11] apply ip-address default next-hop 1.1.1.1 track 1
apply ip-address next-hop
Syntax
apply ip-address next-hop ip-address [ direct ] [ track track-entry-number ] [ ip-address [ direct ] [ track
track-entry-number ] ]
undo apply ip-address next-hop [ ip-address [ ip-address ] ]
View
PBR policy node view
Default level
2: System level
Parameters
ip-address: IP address of the next hop.
direct: Specifies the current next hop as valid when it is a directly connected next hop.
track track-entry-number: Specifies a track entry. The track-entry-number argument is in the range 1 to
1024.
Description
Use the apply ip-address next-hop command to set the next hop(s) for packets.
Use the undo apply ip-address next-hop command to remove the configuration.
Note that:
You can specify up to two next hops in one command line for load sharing.
Using the undo apply ip-address next-hop command with a next hop specified removes the next
hop. Using this command without any next hop specified removes all next hops.
Examples
# S e t t h e d i r e c t l y c o n n e c t e d n e x t h o p t o 1.1.1.1.
<Sysname> system-view
[Sysname] policy-based-route aa permit node 11
[Sysname-pbr-aa-11] apply ip-address next-hop 1.1.1.1 direct
apply ip-precedence
Syntax
apply ip-precedence value