This help contains the following topics:
Policy-based routing (PBR) uses user-defined policies to route packets. A policy can specify parameters for packets that match specific criteria such as ACLs, packet lengths, service object groups, or application groups. The parameters include the next hop, output interface, default next hop, and default output interface.
A policy includes match criteria and actions to be taken on the matching packets. A policy can have one or multiple nodes as follows:
Each node is identified by a node number. A smaller node number has a higher priority.
A node contains
A node has a match mode of
You can specify a policy for local PBR to guide the forwarding of locally generated packets, or apply a policy to an interface to guide the forwarding of packets received on the interface.
A policy compares packets with nodes in priority order. If a packet matches the criteria on a node, it is processed by the action on the node. Otherwise, it goes to the next node for a match. If the packet does not match the criteria on any node, the device performs a routing table lookup
You can set an ACL, service object group, application group, or packet length match criterion to match packets.
To match a node, a packet must match all types of the match criteria for the node.
Compare packets with the next node upon failure on the current node. This action is taken when the specified actions (setting the VPN instance, next hop, output interface, default next hop, and default output interface) are not configured or become invalid. For example, the specified next hop is unreachable, the specified output interface is down, or the packets cannot be forwarded in the specified VPN instance.
Set an IP precedence.
Set the DF bit in the IP header.
Specify the forwarding tables that can be used for the matching packets.
Set next hops and default next hops associated with track entries. You can specify that a next hop must be directly connected to take effect.
Set output interfaces and default output interfaces associated with track entries.
PBR can work with the Track feature to dynamically adapt the availability status of an action to the link status of a tracked object.
The tracked object can be a next hop, output interface, default next hop, or default output interface. The action is valid only when the track entry status changes to
Support of non-default vSystems for this feature depends on the device model. This feature is available on the Web interface only if it is supported.
Policy-based routing is a mechanism that achieves user-defined traffic forwarding. It allows network administrators to determine the forwarding path of data packets according to specific policies or conditions, which optimizes traffic management and improve resource efficiency in complex networks.
Click the
In the navigation pane, select
Click
Configure IPv4 or IPv6 PBR policy parameters.
Figure-1 Creating an PBR policy
Table-1 IPv4 or IPv6 PBR policy configuration items
Item | Description |
Policy name | Enter a PBR policy name. |
Apply to | Apply the PBR policy locally (for local PBR) or to specific interfaces (for interface PBR). |
Figure-2 Creating an IPv4 policy node
Figure-3 Creating an IPv6 policy node
Table-2 Policy node configuration items
Item | Description |
Node ID | Enter a policy node ID. A smaller ID has a higher priority. A policy compares packets with nodes in priority order. |
Mode | Select a match mode for the policy node. Options include:
|
Match criteria | Specify packet match criteria. Options include:
|
Actions-Set next node | Compare packets with the next node upon failure on the current node. |
Actions-Set IP precedence | Set the precedence for IP packets. Eight precedence values (0 to 7) are available. Each precedence value corresponds to a precedence type |
Actions-Set DF bit | Set the Don't Fragment (DF) bit in the IP header of matching packets. Options include:
This parameter is supported by only IPv4 PBR. |
Actions-Set VPN instances | Specify forwarding tables for the public network or VPN instances. |
Set next hops | Set next hops for matching packets. You can specify multiple next hops for backup or load sharing.
|
Set output interfaces | Set output interfaces for matching packets. You can specify multiple output interfaces for backup or load sharing.
The output interface must be P2P type. Using a non-P2P output interface can result in forwarding failures when the interface has multiple next hops. Non-P2P interfaces include broadcast and NBMA interfaces such as Ethernet and virtual-template interfaces. |
On the
The created policy node will be displayed on the policy node list.
On the
The created policy will be displayed on the IPv4 or IPv6 PBR policy list.