Command Manual – Routing Protocol
Quidway S8500 Series Routing Switches
Chapter 3 OSPF Configuration Commands
Huawei Technologies Proprietary
3-32
Description
Use the
filter-policy export
command to set the filter condition for the Type-3 LSAs
advertised from an OSPF area.
Use the
undo filter-policy export
command to cancel the set filter condition.
By default, no advertised Type-3 LSA is filtered.
In some situations, it may be required that only some Type-3 LSAs meeting a certain
condition be advertised. In this case, you can define a Filter-policy to set the filter
condition for advertised Type-3 LSAs so that only the Type-3 LSAs having passed the
filtration can be advertised.
Use the
filter-policy export
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
# Configure the filter condition so that the OSPF backbone area advertises only those
Type-3 LSAs having passed ACL 2000.
[Quidway] acl number 2000
[Quidway-acl-basic-2000] rule permit source 11.0.0.0 0.255.255.255
[Quidway-acl-basic-2000] rule deny source any
[Quidway-ospf-1-area-0.0.0.1] filter-policy 2000 export
3.1.30 filter-policy import
Syntax
filter-policy
{
acl-number
|
ip-prefix
ip-prefix-name
|
gateway
ip-prefix-name
}
import
undo filter-policy
{
acl-number
|
ip-prefix
ip-prefix-name
|
gateway
ip-prefix-name
}
import
View
OSPF view
Parameter
acl-number:
Number of a basic or advanced access control list used for filtering the
destination addresses of the routing information.
ip-prefix-name
: Name of the address prefix list used for filtering the destination
addresses of the routing information.
gateway
ip-prefix-name:
Name of the address prefix list used for filtering the addresses
of the neighboring routers advertising the routing information.