< Home

ospf filter-lsa-out

Function

The ospf filter-lsa-out command configures an OSPF interface to filter outgoing LSAs.

The undo ospf filter-lsa-out command disables an OSPF interface from filtering outgoing LSAs.

By default, outgoing LSAs are not filtered.

Format

ospf filter-lsa-out { all | { summary [ acl { acl-number | acl-name } ] | ase [ acl { acl-number | acl-name } ] | nssa [ acl { acl-number | acl-name } ] } * }

undo ospf filter-lsa-out

Parameters

Parameter Description Value
all Filters all outgoing LSAs except grace LSAs. -
summary Filters outgoing network summary LSAs (Type3). -
ase Filters outgoing AS external LSAs (Type5). -
nssa Filters outgoing NSSA LSAs (Type7). -
acl acl-number Specifies the number of the basic ACL. The value is an integer that ranges from 2000 to 2999.
acl acl-name Specifies the name of a named ACL. The value is a string of 1 to 64 case-sensitive characters without spaces. The value must start with a letter.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When multiple links exist between two switches, you can run the ospf filter-lsa-out command to configure the local switch to filter the outgoing LSAs based on the filtering policy before the device sends these LSAs along specified links. This reduces the unnecessary retransmission of LSAs and saves bandwidth resources.

Configuration Impact

Filtering the outgoing LSAs on the specified 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

When the rule command is used to configure the filtering rules for an ACL configured using the acl command, only the source address range that is specified by the source parameter and the period of time that is specified by the time-range parameter 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.

Example

# Configure VLANIF100 to filter all outgoing LSAs except grace LSAs.
<HUAWEI> system-view 
[HUAWEI] interface vlanif 100
[HUAWEI-Vlanif100] ospf filter-lsa-out all
# Configure GE0/0/1 to filter all outgoing LSAs except grace LSAs.
<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] undo portswitch
[HUAWEI-GigabitEthernet0/0/1] ospf filter-lsa-out all
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >