Configuration prerequisites, Defining a route policy, Defining if-match clauses and apply clauses – H3C Technologies H3C S3600 Series Switches User Manual
Page 360
5-3
z
if-match clause: Defines matching rules; that is, the filtering conditions that the routing information
should satisfy for passing the current route policy. The matching objects are some attributes of the
routing information.
z
apply clause: Specifies actions, which are the configuration commands executed after a route
satisfies the filtering conditions specified by the if-match clause. Thereby, some attributes of the
route can be modified.
Configuration Prerequisites
Before configuring a route policy, perform the following tasks:
z
Configuring a filtering list,
z
Configuring a routing protocol
Prepare the following data before the configuration:
z
Route policy name and node number
z
Match conditions
z
Route attributes to be changed
Defining a Route Policy
Follow these steps to define a route policy:
To do...
Use the command...
Remarks
Enter system view
system-view
—
Define a route policy and enter
the route policy view
route-policy route-policy-name { permit
| deny } node node-number
Required
Not defined by default
z
The permit argument specifies the matching mode for a defined node in the route policy to be in
permit mode. If a route matches the rules for the node, the apply clauses for the node will be
executed and the test of the next node will not be taken. If not, however, the route takes the test of
the next node.
z
The deny argument specifies the matching mode for a defined node in the route policy to be in
deny mode. In this mode, no apply clause is executed. If a route satisfies all the if-match clauses
of the node, no apply clause for the node will be executed and the test of the next node will not be
taken. If not, however, the route takes the test of the next node.
z
If multiple nodes are defined in a route policy, at least one of them should be in permit mode. When
a route policy is applied to filtering routing information, if a piece of routing information does not
match any node, the routing information will be denied by the route policy. If all the nodes in the
route policy are in deny mode, all routing information will be denied by the route policy.
Defining if-match Clauses and apply Clauses
Follow these steps to define if-match clauses and apply clauses: