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
of 1 to 1024.
Description
Use
apply ip-address next-hop
to set the next hop(s) for packets.
Use
undo apply ip-address next-hop
to remove the configuration.
You can specify up to two next hops in one command line.
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.
The next hop must belong to the public network instead of a VPN.
Examples
# Set the directly connected 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 next-hop 1.1.1.1 direct
apply ip-precedence
Syntax
apply
ip
-
precedence value
undo apply
ip-precedence
View
PBR policy node view
Default level
2: System level
Parameters
value
: Sets the precedence for IP packets. Eight precedence values (0 to 7) are available. Each
precedence value corresponds to a precedence type, as shown in
. You can set either a
precedence value or a precedence type for IP packets.
Table 97 IP precedences and the corresponding types
Precedence value
Precedence type
0 routine
1 priority
2 immediate
3 flash
439