Configuring actions for a node
Step
1.
Enter system view.
2.
Enter policy node view.
3.
Set an IP precedence.
4.
Set next hops.
5.
Set default next hops.
Specifying a policy for PBR
Support for local PBR, interface PBR, and outbound PBR on a VXLAN tunnel interface depends on
the VXLAN hardware resource allocation mode.
•
If the normal mode is specified, the interface module supports local PBR and interface PBR.
•
If the MAC address mode is specified, the interface module supports local PBR, interface PBR,
and outbound PBR on a VXLAN tunnel interface.
You can use the hardware-resource vxlan command to set the VXLAN hardware resource
allocation mode.
Specifying a policy for local PBR
Local PBR might affect local services, such as ping and Telnet. When you use local PBR, make sure
you fully understand its impact on local services of the device.
You can specify only one policy for local PBR and must make sure the specified policy already exists.
Before you apply a new policy, you must first remove the current policy.
To specify a policy for local PBR:
Command
system-view
policy-based-route
policy-name
deny
permit
[
|
node-number
apply precedence { type | value }
apply next-hop [ vpn-instance
vpn-instance-name ] { ip-address
[
direct
]
[
track-entry-number ] }&<1-n>
apply
default-next-hop
[
vpn-instance
vpn-instance-name ] { ip-address
direct
[
]
[
track-entry-number ] }&<1-n>
361
Remarks
N/A
node
]
N/A
By default, no IP precedence is
specified.
By default, no next hop is specified.
You can specify multiple next hops for
backup in one command line or by
executing this command multiple
times.
You can specify a maximum of two
track
next hops for a node.
For outbound PBR on a VXLAN
tunnel interface, you can specify only
one next hop and the next hop must
be directly connected.
By default, no default next hop is
specified.
You can specify multiple default next
hops for backup in one command line
or
by
executing
track
multiple times.
You can specify a maximum of two
default next hops for a node.
this
command