The filter-policy import command filters the received RIP routes.
The undo filter-policy import command cancels route filtering.
By default, the filtering function is disabled.
filter-policy acl-number import [ interface-type interface-number ]
filter-policy gateway ip-prefix-name import
filter-policy ip-prefix ip-prefix-name [ gateway ip-prefix-name ] import [ interface-type interface-number ]
undo filter-policy acl-number import [ interface-type interface-number ]
undo filter-policy [ gateway ip-prefix-name ] import
undo filter-policy [ ip-prefix ip-prefix-name [ gateway ip-prefix-name ] ] import [ interface-type interface-number ]
| 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. |
| 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 name of the IP prefix list that is used to filter the destination addresses of routes. | The value is a string of 1 to 169 case-sensitive characters and cannot contain a space. |
| gateway | Filters routes based on the gateway. | - |
The filter-policy import command is used to filter the received RIP routes:
Filters the specified routes in packets.
Does not listen to the Updates packets from specified equipment.
The undo filter-policy import command is used to disable route filtering. If a routing policy based on an interface is configured, you need to specify interface-type interface-number when deleting the routing policy, and you can delete the routing policy on only one interface at a time.
The filter-policy import command is configured in the RIP process. If routes are filtered based on an interface, you can configure only one routing policy based on the interface at a time. If no interface is specified, the system considers the configured routing policy as the global routing policy, and you can configure only one routing policy at a time. If the routing policy is configured repeatedly, the new routing policy covers the old routing policy.