313
Relationship between the match mode and clauses on the node
Does a packet match all
the if-match clauses on
the node?
Match mode
Permit Deny
Yes.
• If the node is configured with an
apply clause, PBR executes the
apply clause on the node. It does
not match the packet against the
next node.
• If the node is configured with no
apply clause, the packet is
forwarded according to the routing
table.
The packet is forwarded according
to the routing table.
No.
PBR matches the packet against the
next node.
PBR matches the packet against
the next node.
A node that has no if-match clauses matches any packet.
PBR and Track
PBR can work with the Track feature to dynamically adapt the availability status of an apply clause to
the link status of a tracked next hop.
• When the track entry associated with an object changes to Negative, the apply clause is
invalid.
• When the track entry changes to Positive or NotReady, the apply clause is valid.
For more information about Track-PBR collaboration, see High Availability Configuration Guide.
PBR configuration task list
Tasks at a glance
(Required.) Configuring a policy:
• Creating a node
• Configuring match criteria for a node
• Configuring actions for a node
(Required.) Configuring PBR:
• Configuring local PBR
• Configuring interface PBR
Configuring a policy
Creating a node
Step Command Remarks
1. Enter system view.
system-view
N/A
2. Create a node for a policy, and
enter policy node view.
policy-based-route
policy-name
[
deny
|
permit
]
node
node-number
By default, no policy node is
created.