Command Manual – IPv4 Routing
H3C S7500E Series Ethernet Switches
Chapter 3 OSPF Configuration Commands
3-32
[Sysname] ospf 100
[Sysname-ospf-100] enable log
3.1.25 filter
Syntax
filter
{
acl-number
|
ip-prefix ip-prefix-name
} {
import
|
export
}
undo filter
{
import
|
export
}
View
OSPF area view
Parameters
acl-number
: ACL number, in the range 2000 to 3999.
ip-prefix-name
: IP prefix list name, a string of up to 19 characters.
import
: Filters incoming LSAs.
export
: Filters outgoing LSAs.
Description
Use the
filter
command to configure incoming/outgoing summary LSAs filtering on an
ABR.
Use the
undo filter
command to disable summary LSA filtering.
By default, summary LSAs filtering is disabled.
Note:
This command is only available on an ABR.
Examples
# Apply IP prefix list
my-prefix-list
to filter inbound Type-3 LSAs, and apply ACL 2000
to filter outbound Type-3 LSAs in OSPF Area 1.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] area 1
[Sysname-ospf-100-area-0.0.0.1] filter ip-prefix my-prefix-list import
[Sysname-ospf-100-area-0.0.0.1] filter 2000 export