Command Reference Guide
3Com Router 5000 Family and Router 6000 Family filter-policy import ● 141
Command Reference
filter-policy import
Purpose Use the filter-policy import command to configure the OSPF rules of filtering
the routing information received.
Use the undo filter-policy import command to cancel the filtering of the
routing information received.
Use the filter-policy import command to filter the routes calculated by OSPF.
Only the filtered routes can be added to the routing table. The filtering can be
performed according to the next hop and destination of the route.
Syntax filter-policy { acl-number | ip-prefix ip-prefix-name | gateway
prefix-list-name } import
undo filter-policy { acl-number | ip-prefix ip-prefix-name | gateway
ip-prefix-name } import
Parameters acl-number
Access control list number used for filtering the
destination addresses of the routing information.
ip-prefix-name
Name of address prefix list used for filtering the
destination addresses of the routing information.
gateway ip-prefix-name
Name of address prefix list used for filtering the
addresses of the neighboring routers advertising the
routing information.
Default By default, no filtering of the received routing information is performed.
Example Filter the received routing information according to the rule defined by the ACL 2002.
[3Com ] acl number 2002
[3Com -acl-basic-2002] rule permit source 20.0.0.0 0.255.255.255
[3Com -acl-basic-2002] rule deny source any
[3Com -ospf-1] filter-policy 2002 import
View This command can be used in the following views:
■ OSPF view