Step
12.
Set default
output
interfaces.
13.
Enable load
sharing
among
multiple
default output
interfaces.
14.
Match packets
against the
next node
upon match
failure on the
current node.
Configuring PBR
Configuring local PBR
Configure PBR by applying a policy locally. PBR uses the policy to guide the forwarding of locally
generated packets. The specified policy must already exist. Otherwise, the local PBR configuration fails.
You can apply only one policy locally. Before you apply a new policy, you must first remove the current
policy.
Do not configure local PBR unless required.
To configure local PBR:
Step
1.
Enter system view.
2.
Apply a policy locally.
Configuring interface PBR
Configure PBR by applying a policy to an interface. PBR uses the policy to guide the forwarding of
packets received on the interface. The specified policy must already exist. Otherwise, the interface PBR
configuration fails.
Command
apply default-output-interface { interface-type
interface-number [ track
track-entry-number ] }&<1-n>
apply loadshare default-output-interface
apply continue
Command
system-view
ip local policy-based-route
policy-name
Remarks
By default, no default output interface
is specified.
You can specify multiple default output
interfaces for backup or load sharing
by executing this command once or
multiple times.
You can specify up to m default output
interfaces for a node. The value of m
depends on the device model.
By default, the default output interfaces
operate in primary/backup mode.
By default, PBR does not match
packets against the next node upon
match failure on the current node.
This command takes effect only when
the match mode of the node is permit.
302
Remarks
N/A
By default, no policy is locally
applied.