If-match clause, Apply clause – H3C Technologies H3C SecPath F1000-E User Manual
Page 857
832
Table 87 Relationship between the match mode and the clauses
If a packet…
Then…
In permit mode
In deny mode
Matches all the if-match clauses 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.
NOTE:
•
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
all the if-match clauses can pass the policy node. However, 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. However, 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 types of if-match clause are available: if-match packet-length and if-match acl6.
You can specify only one if-match clause of each type in a policy node. The if-match clauses on a node
have an AND relationship. A packet must satisfy all the if-match clauses of the node before the action
specified by the apply clause is taken.
apply clause
The following types of apply clauses are available: apply ipv6-precedence, apply output-interface,
apply ipv6-address next-hop, apply default output-interface, and apply ipv6-address default next-hop.
For the priorities of the apply clauses in a policy node, see
.
Table 88 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
output-interface and
apply ipv6-address
next-hop
Sets the outgoing interface
and next hop.
The apply output-interface clause takes precedence
over the apply ipv6-address next-hop clause. Only the
apply output-interface clause will be executed when
both are configured.
- H3C SecPath F5000-A5 Firewall H3C SecPath F1000-A-EI H3C SecPath F1000-E-SI H3C SecPath F1000-S-AI H3C SecPath F5000-S Firewall H3C SecPath F5000-C Firewall H3C SecPath F100-C-SI H3C SecPath F1000-C-SI H3C SecPath F100-A-SI H3C SecBlade FW Cards H3C SecBlade FW Enhanced Cards H3C SecPath U200-A U200-M U200-S H3C SecPath U200-CA U200-CM U200-CS H3C SecBlade LB Cards H3C SecPath L1000-A Load Balancer