Command Manual - Routing Protocol
Quidway S6500 Series Ethernet Switches
Chapter 3 OSPF Configuration Commands
Huawei Technologies Proprietary
3-32
Parameter
acl-number:
Access control list number used for filtering the destination addresses of
the routing information, ranging 2000 to 3999.
ip-prefix-name
: Name of address prefix list used for filtering the destination addresses
of the routing information. The length of
ip-prefix-name
ranges from 1 to 19 character
string.
gateway
ip-prefix-name:
Name of address prefix list used for filtering the addresses of
the neighboring routers advertising the routing information. The length of
ip-prefix-name
ranges from 1 to 19 character string.
Description
Using
filter-policy import
command, you can configure the OSPF rules of filtering the
routing information received. Using
undo filter-policy import
command, you can
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 received. Only the routing
information passing the filtration can be received.
Example
# Filter the received routing information according to the rule defined by the access
control list 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-ospf-1] filter-policy 2000 import
3.1.29 import-route
Syntax
import-route protocol
[
cost
value
|
type
value
|
tag
value
|
route-policy
route-policy-name
]*
undo import-route protocol
View
OSPF view