RIP Configuration Commands 163
filter-policy export Syntax
filter-policy { acl_number | gateway gateway-ip | ip-prefix
ip_prefix_name | route-policy route-policy-name } export
[routing_process]
undo filter-policy { acl_number | gateway gateway-ip | ip-prefix
ip_prefix-name | route-policy route-policy-name } export
[routing_process]
View
RIP view
Parameters
acl_number
Enter the number of the ACL that you want to use to filter the
destination addresses of the routing information.
gateway-ip
ip_prefix_name
Enter the name of the address prefix list that you want to use to
filter the destination addresses of the routing information.
route-policy-name
: Route policy name that filters routing information. After
enabling RIP protocol, you can determine which routes are to be sent/received
based on acl/cost/interface/ip/ip-prefix/tag fields.
routing_protocol
Enter the routing protocol whose routing information is to be
filtered. This can be one of the following:
■ direct — Specifies direct routes
■ ospf — Specifies Open Shortest Path First (OSPF).
■ ospf-ase — Specifies OSPF external routes.
■ ospf-nssa — Specifies OSPF NSSA external routes.
■ static — Specifies static routes.
Description
Use the filter-policy export command to configure RIP to filter the advertised
routing information.
Use the undo filter-policy export command to configure RIP not to filter the
advertised routing information. This is the default.
Related commands: acl, filter-policy import, ip ip-prefix.
Example
To filter the advertised route information using ACL 2000, enter the following:
<SW5500>system-view
System View: return to User View with Ctrl+Z.
[SW5500]rip
[SW5500-rip]filter-policy 2000 export