If-match clause, Apply clause, Configuring ipv6 pbr – H3C Technologies H3C S12500 Series Switches User Manual

Page 411: Configuring ipv6 policy

Advertising
background image

395

Table 11 Relationship between the match mode and the clauses

If a packet…

Then…
In permit mode

In deny mode

Matches an if-match clause on the
policy node

The apply clause is executed, and
the packet will not go to the next

policy node for a match.

The apply clause is not executed,
the packets will not go to the next

policy node for a match, and will

be forwarded according to the
routing table.

Fails to match an if-match clause
on the policy node

The apply clause is not executed,
and the packet will go to the next

policy node for a match.

The apply clause is not executed,
and the packet will go to the next

policy node for a match.

If a policy has a node with no if-match clause configured, all packets can pass the policy node. However,

an action is taken according to the match mode, and the packets will not go to the next policy node for

a match.
If a policy has a node with the permit match mode but no apply clause configured, all packets matching

an if-match clause can pass the policy node, and no action is taken; the packets will not go to the next

policy node for a match, and will be forwarded according to the routing table.
If a policy has a node with no if-match or apply clauses configured, all packets can pass the policy node,
and no action is taken; the packets will not go to the next policy node for a match, and will be forwarded

according to the routing table.
The nodes of a policy are in an OR relationship. If a packet matches a node, it passes the policy; if the

packet does not match any node of the policy, it fails to pass the policy and is forwarded according to
the routing table.

if-match clause

The following type of if-match clause is available: if-match acl6.
You can specify only one if-match clause in a policy node.

apply clause

IPv6 PBR supports the following types of apply clauses in

Table 12

.

Table 12 Priorities of the apply clauses in a policy node

Clause Meaning Priority

apply
ipv6-precedence

Sets an IP precedence

If configured, this clause will always be executed.

apply ipv6-address
next-hop

Sets the next hop

This clause will be executed as long as the configured
next hop is valid.

Configuring IPv6 PBR

Configuring IPv6 policy

Follow these guidelines when you configure an IPv6 policy:

Advertising