Defining If-Match Clauses - H3C S5500-SI Series Operation Manual

Hide thumbs Also See for S5500-SI Series:
Table of Contents

Advertisement

If a route policy node has the permit keyword specified, routing information matching all the
if-match clauses of the node will be handled using the apply clauses of this node, without needing
to match against the next node. If routing information does not match the node, it will go to the next
node for a match.
If a route policy node has the deny keyword specified, the apply clauses of the node will not be
executed. When routing information matches all the if-match clauses of the node, it cannot pass
the node, or go to the next node. If route information cannot match all the if-match clauses of the
node, it will go to the next node for a match.
When a route policy has more than one node, at least one node should be configured with the
permit keyword. If the route policy is used to filter routing information, routing information that does
not meet any node cannot pass the route policy. If all nodes of the route policy are set with the
deny keyword, no routing information can pass it.

Defining if-match Clauses

Follow these steps to define if-match clauses for a route-policy node:
To do...
Enter system view
Enter route policy node view
Match IPv4 routing
information specified in
the ACL
Define
Match IPv4 routing
match
information specified in
criteria
the IP prefix list
for IPv4
Match IPv4 routing
routes
information whose next
hop or source is
specified in the ACL or
IP prefix list
Match IPv6 routing information
whose next hop or source is
specified in the ACL or IP prefix list
Match routes having the specified
cost
Match routing information having
specified outbound interface(s)
Match RIP routing information
having the specified tag value
Use the command...
system-view
route-policy
route-policy-name { permit |
deny } node node-number
if-match acl acl-number
if-match ip-prefix
ip-prefix-name
if-match ip { next-hop |
route-source } { acl
acl-number | ip-prefix
ip-prefix-name }
if-match ipv6 { address |
next-hop | route-source } { acl
acl-number | prefix-list
ipv6-prefix-name }
if-match cost value
if-match interface
{ interface-type
interface-number }&<1-16>
if-match tag value
1-5
Remarks
Required
Optional
Not configured by default.
Optional
Not configured by default.
Optional
Not configured by default.
Optional
Not configured by default.
Optional
Not configured by default.
Optional
Not configured by default.

Advertisement

Chapters

Table of Contents
loading

Table of Contents