Switch 7700 Command reference Guide, v2.0

Table Of Contents
OSPF Configuration Commands 147
gateway ip_prefix_name Enter the name of address prefix list used for filtering
the addresses of the neighboring routers advertising the routing information.
Description
Using the filter-policy import command, you can configure how OSPF filters
the routing information received. Only the routing information that meets these
conditions is can be received.
Using the undo filter-policy import command, you can cancel the filtering of
the received routing information received. By default, no filtering of the received
routing information is performed.
Example
To filter the received routing information using the rules defined by access control
list 2, enter the following commands:
[SW7700]acl number 2
[SW7700-acl-basic-2]rule permit source 20.0.0.0 0.255.255.255
[SW7700-acl-basic-2]rule deny source any
[SW7700-ospf]filter-policy 2 import
import-route Syntax
import-route protocol [ cost value ] [ type value ] [ tag value ] [
route-policy route_policy_name ]
undo import-route protocol
View
OSPF view
Parameter
protocol Enter the source routing protocol to be imported. This can be one of the
following:
direct, rip, and static.
route-policy route_policy_name Enter a route policy name. Only routes that
match the specified route policy are imported.
cost value Enter the cost of the imported route.
type value Enter the cost type of imported routes. The value can be 1 or 2.
tag value Enter the tag value for imported external routes.
Description
Using the import-route command, you can import the external routing
information of another routing protocol.
Using the undo import-route command, you can cancel the import of external
routing information. By default, the routing information of other protocols is not
imported.