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 routes, it checks nodes in the routing policy in ascending order according to node ID. Therefore, it starts route matching from the smallest node ID. If a route matches a node in the routing policy, the system does not continue to check other nodes. If a route fails to match all the nodes in the routing policy, the route is filtered out.
- (Optional) Run description text
A description of the routing policy is configured.
- Run commit
The configuration is committed.