Command Manual – IPv4 Routing
H3C S7500E Series Ethernet Switches
Chapter 3 OSPF Configuration Commands
3-33
3.1.26 filter-policy export
Syntax
filter-policy
{
acl-number
|
ip-prefix
ip-prefix-name
}
export
[
protocol
[
process-id
] ]
undo filter
-
policy export
[
protocol
[
process-id
] ]
View
OSPF view
Parameters
acl-number
: Number of an ACL used to filter outgoing redistributed routes, in the range
2000 to 3999.
ip-prefix-name
: Name of an IP prefix list used to filter outgoing redistributed routes, a
string of up to 19 characters.
protocol
: Specifies a protocol from which to filter redistributed routes. The protocol can
be
direct
,
static
,
rip
,
ospf
,
isis
or
bgp
. If no protocol is specified, all redistributed
routes are filtered.
process-id
: Process ID, which is required when the
protocol
is
rip
,
ospf
or
isis
, in the
range 1 to 65535.
Description
Use the
filter-policy export
command to configure the filtering of outgoing
redistributed routes.
Use the
undo filter-policy export
command to disable the filtering.
By default, the filtering of outgoing redistributed routes is not configured.
You can use this command to filter outgoing redistributed routes as needed.
Related commands:
import-route
.
Examples
# Filter outgoing redistributed routes using ACL2000.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] filter-policy 2000 export
3.1.27 filter-policy import
Syntax
filter-policy
{
acl-number
|
ip-prefix
ip-prefix-name
|
gateway
ip-prefix-name
}
import
undo filter-policy import