< Home

Creating a Routing Policy

Context

A routing policy can consist of multiple matching rules and actions.

You must set at least one node to the permit mode in a routing policy; otherwise, all routes are filtered out.

Procedure

  1. Run system-view

    The system view is displayed.

  2. 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.

  3. (Optional) Run description text

    The description of the routing policy is configured.

    By default, the system does not allow a nonexistent route-policy to be specified in a command. To enable the system to allow a nonexistent route-policy to be specified in a command, run the route-policy nonexistent-config-check disable command.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >