Configure rules of local policy routing on an AR router

Run the system-view command to access the system view.
Run the policy-based-routepolicy-name { deny | permit } nodenode-id command to create policy-based routing and policy points. If policy points have been created, access the local policy routing view. By default, no local policy routing or policy point has been created.
Note: For packets that matches a rule, permit indicates a policy routing is applied; while deny indicates no policy routing is applied.

Repeat the previous command to create multiple policy points for a local policy routing. The policy points are specified based on the node ID. The smaller the node ID, the higher the priority, and corresponding policy is implemented preferentially.

Run the if-match aclacl-number command to set ACL rules of IP packets. The command can be implemented once or twice.
By default, rules about IP addresses are not configured in local policy routing.
Note:
If an ACL rule is set to permit, the router implements an action for packets that match the rule. When a policy point is permit, packets that match the rule are routed based on a policy. When a policy point is deny, packets that match the rule are not routed based on a policy, and are forwarded according to the destination IP addresses.

If an ACL is configured with rules, packets that do not match any rule are forwarded according to the destination IP addresses.

If an ACL rule is set to deny or an ACL is not configured with rules, local policy routing that applies the ACL does not take effect. Therefore, packets are forwarded according to the destination IP addresses.
Run the if-match packet-lengthmin-lengthmax-length command to set a length rule of IP packets.
By default, length rules of IP packets are not configured in local policy routing.

Scroll to top