Configuring ipv6 local pbr – H3C Technologies H3C S12500 Series Switches User Manual

Page 412

Advertising
background image

396

You can specify up to two next hops for a policy (only one next hop can be specified in one

command line). When neither next hop takes effect, packets are forwarded according to the
routing table.

The rule you add to an ACL that has been used by a policy cannot take effect if hardware resources
are insufficient or the policy does not support the rule. Such rules are marked as uncompleted in the

output from the display acl { acl-number | all | name acl-name } slot slot-number command. To

successfully apply the rule, you must delete the rule and reconfigure it when hardware resources are
sufficient. For more information about the display acl command, see ACL and QoS Command

Reference.

If an ACL match criterion is defined, do not configure deny action for the specified ACL rules.

If the specified ACL does not exist, no packet is matched.

If packets that match a policy node do not need to be forwarded according to PBR, specify deny
match mode for the policy node.

To configure an IPv6 policy:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Create an IPv6 policy or IPv6
policy node and enter IPv6

PBR policy node view.

ipv6 policy-based-route policy-name
[ deny | permit ] node node-number Not created by default.

3.

Define an IPv6 ACL match
criterion.

if-match acl6 acl6-number Optional.

4.

Set a preference type or value
for permitted IPv6 packets.

apply ipv6-precedence { type |
value }

Optional.

5.

Set a next hop for permitted
IPv6 packets.

apply ipv6-address next-hop

ipv6-address

Optional.
If you set two next hops for a

policy, only the primary next
hop takes effect. The backup

next hop takes effect only when

the primary next hop is invalid.

Configuring IPv6 local PBR

Local PBR applies to locally generated packets only. Only one policy can be referenced for IPv6 local

PBR.
If the specified policy does not exist, the IPv6 local PBR configuration succeeds, but it takes effect only

when the policy is created.
IPv6 local PBR supports only IP forwarding.
To configure IPv6 local PBR:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Configure IPv6 local PBR.

ipv6 local policy-based-route
policy-name

Not configured by default.

Advertising