ospf filter-lsa-out

Function

The ospf filter-lsa-out command configures an OSPF interface to filter outgoing LSAs on a P2P, broadcast, or NBMA network.

The undo ospf filter-lsa-out command prevents an OSPF interface from filtering outgoing LSAs on a P2P, broadcast, or NBMA network.

By default, outgoing LSAs are not filtered on a P2P, broadcast, or NBMA network.

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 } ] } * }

undo ospf filter-lsa-out

Parameters

Parameter Description Value
all

Filters all outgoing LSAs except grace LSAs.

-

ase

Filters outgoing AS external LSAs (Type 5).

-

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 without spaces. The value must start with a letter (a to z or A to Z, case sensitive)

nssa

Filters outgoing NSSA LSAs (Type 7).

-

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 outgoing network summary LSAs (Type 3).

-

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.

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

When multiple links exist between two devices on a P2P, broadcast, or NBMA network, the ospf filter-lsa-out command configures the local device to filter outgoing LSAs before sending them along specified links. This can reduce the unnecessary retransmission of LSAs and save bandwidth resources.

Configuration Impact

Filtering outgoing LSAs on an OSPF interface can prevent useless LSAs from being sent to neighbors. This can reduce the size of the LSDB of neighbors and speed up the network convergence.

After the command is configured on an interface, the OSPF neighbor relationship of the interface will automatically re-establish.

Precautions

Configure the filtering rules for a named ACL only the source address range that is specified in source and the period that is specified in time-range take effect.

Grace LSAs are used to inform the neighbor of the Graceful Restart (GR) time, cause, and interface instance ID when GR starts and ends. The command is not used to filter the grace LSAs.

After the ospf filter-lsa-out command is run, the LSAs that other devices have received before will not be deleted immediately, but it will be deleted after a period of time (usually no more than one hour).

Example

# Configure GigabitEthernet0/1/0 to filter all outgoing LSAs except grace LSAs.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/0
[~HUAWEI-GigabitEthernet0/1/0] ospf filter-lsa-out all
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >