Step
11. Set two default next hops to
operate in active/standby
mode.
12. 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.
You can apply only one policy locally. If you perform the ip local policy-based-route command
multiple times, only the last specified policy takes effect.
If the specified policy does not exist, the local PBR configuration succeeds, but it does not take effect
until the policy is created.
Do not configure local PBR unless required.
To configure local PBR:
Step
Enter system view.
1.
Apply a policy locally.
2.
Configuring interface PBR
Configure PBR by applying a policy on an interface. PBR uses the policy to guide the forwarding of
packets received on the interface.
You can apply only one policy to an interface. If you perform the ip policy-based-route command
multiple times, only the last specified policy takes effect.
If the specified policy does not exist, the interface PBR configuration succeeds, but it does not take
effect until the policy is created.
To configure interface PBR on a VLAN interface of an HSR6800 router that operates in gateway
mode and is configured with SAP modules, use the redirect command to configure a traffic
redirecting action for the VLAN. For more information about configuring traffic redirecting actions,
see ACL and QoS Configuration Guide.
You can apply the same policy on multiple interfaces.
To configure interface PBR:
Step
Enter system view.
1.
Command
apply ip-address default
next-hop standby
apply fail-action continue
Command
system-view
ip local policy-based-route
policy-name
Command
system-view
270
Remarks
Optional.
By default, both default next hops
take effect to achieve load
sharing.
Optional.
Use this command only when the
match mode of the node is
permit.
Remarks
N/A
Not applied by default.
Remarks
N/A