R3303-HP HSR6800 Routers Layer 3 - IP Routing Command Reference

99
filter
NOTE:
This command is only available on an ABR.
Use filter to configure incoming/outgoing Type-3 LSAs filtering on an ABR.
Use undo filter to disable Type-3 LSA filtering.
Syntax
filter { acl-number | ip-prefix ip-prefix-name } { export | import }
undo filter { export | import }
Default
Type-3 LSAs filtering is disabled.
Views
OSPF area view
Default command level
2: System level
Parameters
acl-number: Specifies an ACL by its number in the range of 2000 to 3999.
ip-prefix-name: Specifies an IP prefix list by its name, a string of up to 19 characters. For more information
about IP prefix lists, see Layer 3 – IP Routing Configuration Guide.
export: Filters Type-3 LSAs advertised to other areas.
import: Filters Type-3 LSAs advertised into the area.
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
filter-policy export (OSPF view)
Use filter-policy export to configure OSPF to filter redistributed routes.
Use undo filter-policy export to disable the filtering.
Syntax
filter-policy { acl-number | ip-prefix ip-prefix-name } export [ protocol [ process-id ] ]
undo filter-policy export [ protocol [ process-id ] ]