< Home

filter import (OSPFv3)

Function

The filter import command filters the incoming Inter-Area-Prefix-LSAs of the local area.

The undo filter import command restores the default setting.

By default, the incoming Inter-Area-Prefix-LSAs cannot be filtered.

Format

filter { acl6-number | ipv6-prefix ipv6-prefix-name | route-policy route-policy-name } import

undo filter [ acl6-number | ipv6-prefix ipv6-prefix-name | route-policy route-policy-name ] import

Parameters

Parameter Description Value
acl6-number Specifies the number of a basic ACL. The value is an integer that ranges from 2000 to 2999.
ipv6-prefix ipv6-prefix-name Specifies the name of an IP prefix list. The name is a string of 1 to 169 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
route-policy route-policy-name Specifies the name of a routing policy. The name is a string of 1 to 40 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

OSPFv3 area view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The command can be used to filter out invalid LSAs sent to neighbors to reduce the size of the LSDB and speed up network convergence.

Configuration Impact

After filtering conditions are set for the incoming Inter-Area-Prefix-LSAs to be advertised using the filter import command, only the incoming Inter-Area-Prefix-LSAs that pass the filtering can be received.

Precautions

  • The command can be configured only on an ABR.
  • For a named ACL, configure a filtering rule, the filtering rule takes effective only when the source address range is specified by the source parameter and the time period is specified by the time-range parameter.
  • Run the filter export (OSPFv3) command to set filtering conditions for the outgoing Inter-Area-Prefix-LSAs to be advertised.

Creating an ACL6, IPv6 prefix list, or route-policy before it is referenced is recommended. If a nonexistent ACL6, IPv6 prefix list, or route-policy is referenced using the command, OSPFv3 receives all Type 3 LSAs.

Example

# Filter incoming Inter-Area-Prefix-LSAs within the local area.

<sysname> system-view
[sysname] ospfv3 100
[sysname-ospfv3-100] area 1
[sysname-ospfv3-100-area-0.0.0.1] filter ip-prefix my-prefix-list import
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >