< Home

filter-policy import (RIP)

Function

The filter-policy import command filters the received RIP routes.

The undo filter-policy import command cancels route filtering.

By default, no filtering policy is configured.

Format

filter-policy { acl-number | acl-name acl-name | ip-prefix ip-prefix-name [ gateway ip-prefix-name ] } import [ interface-type interface-number ]

filter-policy gateway ip-prefix-name import

undo filter-policy [ acl-number | acl-name acl-name | ip-prefix ip-prefix-name [ gateway ip-prefix-name ] ] import [ interface-type interface-number ]

undo filter-policy [ gateway ip-prefix-name ] import

Parameters

Parameter Description Value
acl-number Specifies the number of the basic ACL that is used to filter the destination addresses of routes. The value is an integer ranging from 2000 to 2999.
acl-name acl-name Specifies the ACL filtering route destination addresses. The value is a string of 1 to 64 case-sensitive characters without spaces. The value must start with a letter.
interface-type interface-number Indicates the type and the number of the interface based on which routes are filtered. -
ip-prefix Filters routes by using the IP prefix list. -
ip-prefix-name Specifies the address prefix list used to filter route destination addresses. The name is a string of 1 to 169 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
gateway Filters routes based on the gateway. -

Views

RIP view

Default Level

2: Configuration level

Usage Guidelines

The filter-policy import command filters received RIP routes, including:

  • Filtering a specified route in the packet

  • Not monitoring the Update packets from the device

To cancel route filtering, run the undo filter-policy import command. When you remove an interface-based filtering policy, you must specify interface-type interface-number. The policy on only one interface can be deleted each time.

This command runs in the RIP view. If the filtering policy is based on interfaces, each interface can be configured with only one filtering policy. If the interface is not specified, a global filtering policy is configured. Only one global filtering policy can be configured. If you run the command again when a global policy exists, the new policy overwrites the old one.

For an ACL, when the rule command is used to configure a filtering rule, the filtering rule takes effective only when the source address range is specified by the source parameter and the time period is specified by the time-range parameter.

Example

# Filter the RIP Update packets that are received from all the interfaces according to the IP prefix list named abc.

<HUAWEI> system-view
[HUAWEI] rip 100
[HUAWEI-rip-100] filter-policy ip-prefix abc import
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >