Command Reference Guide

3Com Router 3000 Ethernet Family
Command Reference Guide
Chapter 3 OSPF Configuration Commands
3Com Corporation
3-34
Parameter
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.
Description
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.
By default, no filtering of the received routing information is performed.
In some cases, it may be required that only the routing information meeting some
conditions can be received. Then, the filter-policy command can be used to set the
filtering conditions for the routing information to be advertised. Only the routing
information passed the filtration can be 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.
Since OSPF is a dynamic routing protocol based on link state, its routing information
hides in the link state, this command cannot filter the advertised/received routing
information in link state. There is more limitation when using this command in OSPF
than using it in distance vector routing protocol.
This command is valid for this process only if multiple OSPF processes are enabled.
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
3.1.29 import-route
Syntax
import-route protocol [ allow-ibgp ] [ cost value ] [ type value ] [ tag value ]
[ route-policy route-policy-name ]