ospf filter-lsa-out multi-area

Function

The ospf filter-lsa-out multi-area command enables an OSPF multi-area adjacency interface to filter the LSAs to be sent.

The undo ospf filter-lsa-out multi-area command disables an OSPF multi-area adjacency interface from filtering the LSAs to be sent.

By default, OSPF multi-area adjacency interfaces do not filter the LSAs to be sent.

Format

ospf filter-lsa-out { all | { ase [ acl { ase-acl-num | ase-acl-name } ] | nssa [ acl { nssa-acl-num | nssa-acl-name } ] | summary [ acl { sum-acl-num | sum-acl-name } ] } * } multi-area { area-id-integer | area-id-ipv4 }

undo ospf filter-lsa-out multi-area { area-id-integer | area-id-ipv4 }

Parameters

Parameter Description Value
all

Filters all LSAs except Grace LSAs.

-

ase

Filters AS-external LSAs (Type-5 LSAs).

-

acl

Specifies the ACL for route filtering.

-

ase-acl-num

Specifies the number of a basic ACL.

The value is an integer that ranges from 2000 to 2999.

ase-acl-name

Specifies the name of a named basic ACL.

The value is a string of 1 to 64 case-sensitive characters, spaces not supported. The name must start with a letter or digit, and cannot contain only digits.

nssa

Filters NSSA LSAs (Type-7 LSAs).

-

nssa-acl-num

Specifies the number of a basic ACL.

The value is an integer that ranges from 2000 to 2999.

nssa-acl-name

Specifies the name of a named basic ACL.

The value is a string of 1 to 64 case-sensitive characters, spaces not supported. The name must start with a letter or digit, and cannot contain only digits.

summary

Filters Network-summary LSAs (Type-3 LSAs).

-

sum-acl-num

Specifies the number of a basic ACL.

The value is an integer that ranges from 2000 to 2999.

sum-acl-name

Specifies the name of a named basic ACL.

The value is a string of 1 to 64 case-sensitive characters, spaces not supported. The name must start with a letter or digit, and cannot contain only digits.

area-id-integer

Specifies the ID of an OSPF area.

The value is a decimal integer ranging from 0 to 4294967295.

area-id-ipv4

Specifies the ID of an OSPF area.

The value is in the format of an IP address.

Views

100GE interface view, 10GE interface view, 25GE sub-interface view, 25GE interface view, 400GE interface view, 40GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk interface view, FlexE interface view, GE optical interface view, GE electrical interface view, GMPLS-UNI interface view, Global VE sub-interface view, Tunnel interface view, VBDIF interface view, VE sub-interface view, VLANIF interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ospf write

Usage Guidelines

Usage Scenario

If multiple links exist between two devices, you can run the ospf filter-lsa-out multi-area command to configure the local device to filter the LSAs to be sent. This prevents unnecessary LSA transmission and reserves bandwidth resources.

Prerequisites

The ospf enable multi-area command has been run.

Configuration Impact

The ospf filter-lsa-out multi-area command prevents useless LSAs from being sent to OSPF neighbors, which reduces the size of the neighbors' LSDBs and speeds up network convergence.

After the ospf filter-lsa-out multi-area command is run on an interface, the neighbor relationships on the interface are reestablished.

Precautions

When filtering conditions are configured for a named ACL, only the configurations specified by source and time-range take effect.

Grace LSAs are used to inform neighbors of the graceful restart (GR) time, cause, and interface instance ID when a GR starts or ends. The ospf filter-lsa-out multi-area command does not apply to Grace LSAs.

Example

# Enable OSPF multi-area adjacency interface GE 0/1/0 to filter the LSAs (except Grace LSAs) to be sent.
<HUAWEI> system-view
[~HUAWEI] ospf 1
[*HUAWEI-ospf-1] area 0
[*HUAWEI-ospf-1-area-0.0.0.0] quit
[*HUAWEI-ospf-1] area 1
[*HUAWEI-ospf-1-area-0.0.0.1] quit
[*HUAWEI-ospf-1] quit
[*HUAWEI] interface GigabitEthernet 0/1/0
[*HUAWEI-GigabitEthernet0/1/0] ospf enable 1 area 0
[*HUAWEI-GigabitEthernet0/1/0] ospf enable multi-area 1
[*HUAWEI-GigabitEthernet0/1/0] ospf filter-lsa-out all multi-area 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >