< Home

Configuring RIP to Filter Received Routes

Context

The filtering policy can be configured on the inbound interface by configuring the ACL and IP prefix list to filter received routes. Only the routes not filtered out by the filtering policy are added to the local routing table.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run rip [ process-id ]

    The RIP view is displayed.

  3. Depending on type of desired filtering, run one of following commands to configure RIP to filter the received routes:

    • Run filter-policy { acl-number | acl-name acl-name } import [ interface-type interface-number ]

      The learned routing information is filtered based on an ACL.

    • Run filter-policy gateway ip-prefix-name import

      The routing information advertised by neighbors is filtered based on the IP prefix list.

    • Run filter-policy ip-prefix ip-prefix-name [ gateway ip-prefix-name ] import [ interface-type interface-number ]

      The routes learned by the specified interface are filtered based on the IP prefix list and neighbors.

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