Command Manual – Routing Protocol
Quidway S8500 Series Routing Switches Chapter 3 OSPF Configuration Commands
Huawei Technologies Proprietary
3-34
Description
Use the filter-policy import command to set the filter condition for the Type-3 LSAs
received by an OSPF area.
Use the undo filter-policy import command to cancel the set filter condition.
By default, no received Type-3 LSA is filtered.
In some situations, it may be required that only some Type-3 LSAs meeting a certain
condition be received. In this case, you can define a Filter-policy to set the filter
condition for received Type-3 LSAs so that only the Type-3 LSAs having passed the
filtration can be received.
Use the filter-policy import command to filter the Type-3 LSAs generated locally in an
OSPF area so that only those Type-3 LSAs having passed the filtration can be added
into the link state database of the other areas. The filtration is implemented according to
the link state ID of the Type-3 LSAs.
Related command: acl, ip ip-prefix.
Example
# Filter the received routing information as per the condition defined in ACL 2000.
[Quidway] acl number 2000
[Quidway-acl-basic-2000] rule permit source 20.0.0.0 0.255.255.255
[Quidway-acl-basic-2000] rule deny source any
[Quidway-acl-basic-2000] quit
[Quidway] ospf 1
[Quidway-ospf-1]area 1
[Quidway-ospf-1-area-0.0.0.1] filter-policy 2000 import
3.1.32 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: Specifies the source routing protocol that can be imported. At present, it
includes direct, rip, isis, bgp, ospf-ase, ospf-nssa and static.
cost value: Specifies the cost of imported route.