Creating a Routing Policy
Context
You must set at least one node to the permit mode in a routing policy; otherwise, all routes are filtered out.
Procedure
- Run system-view
The system view is displayed.
- Run route-policy route-policy-name { permit | deny } node node
A routing policy is created, and the routing policy view is displayed.
When a routing policy is used to filter a route, the route is matched with nodes in the routing policy in ascending order of node ID. Therefore, a route is first matched with the node with the smallest node ID. If a route matches a node in the routing policy, the system does not continue to match it with other nodes. If a route fails to match all the nodes in the routing policy, the route is filtered out.
- (Optional) Run description text
The description of the routing policy is configured.