< Home

Configuring OSPF to Filter Received Routes

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run ospf [ process-id ]

    The OSPF process view is displayed.

  3. Run filter-policy { acl-number | acl-name acl-name | ip-prefix ip-prefix-name | route-policy route-policy-name [ secondary ] } import

    OSPF is configured to filter received routes.

    • The parameter acl-number specifies the number of a basic ACL.
    • The parameter acl-name acl-name specifies the name of an ACL.
    • The parameter ip-prefix ip-prefix-name specifies the name of an IP prefix list.

    The filter-policy import command is used to filter the routes calculated by OSPF but cannot be used to filter advertised or received LSAs. Only the routes that pass the filtering criteria are added to the routing table. Routes that do not pass the filtering criteria can still be advertised.

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