Operation Manual - Routing Protocol
Quidway S3500 Series Ethernet Switches Chapter 6 IP Routing Policy Configuration
Huawei Technologies Proprietary
6-3
6.2 IP Routing Policy Configuration
The routing policy configuration includes:
z Defining a route-policy
z Defining if-match clauses for a Route-policy
z Defining apply clauses for a Route-policy
z Importing the routes of other protocols
z Defining ip-prefix
z Configuring Route Filtering
6.2.1 Defining a route-policy
A route-policy can comprise multiple nodes. Each node is a unit for matching operation.
The nodes will be tested against by node-number.
Perform the following configurations in system view.
Table 6-1 Defining a route-policy
Operation Command
Enter Route policy view
route-policy route-policy-name { permit | deny }
node { node-number }
Remove the specified
route-policy
undo route-policy route-policy-name [ permit |
deny | node node-number ]
The argument permit specifies the matching mode for a defined node in the
route-policy to be in permit mode. If a route satisfies all the if-match clauses of the
node, it will pass the filtering of the node, and the apply clauses for the node will be
executed without taking the test of the next node. If not, however, the route should take
the test of the next node.
The deny argument specifies the matching mode for a defined node in the route-policy
to be in deny mode. In this mode, the apply clauses will not be executed. If a route
satisfies all the if-match clauses of the node, it will be denied by the node and will not
take the test of the next node. If not, however, the route will take the test of the next
node.
The nodes have the “OR” relationship. In other words, the router will test the route
against the nodes in the route-policy in sequence, once a node is matched, the
route-policy filtering will be passed.
By default, the Route-policy is not defined.
Note: if multiple nodes are defined in a route-policy, at least one of them should be in
permit mode. Apply the route-policy to filter routing information. If the routing
information does not match any node, the routing information will be denied by the