Context
Perform the following steps on the switch running OSPF.
Procedure
Step 1 Run:
system-view
The system view is displayed.
Step 2 Run:
ospf [ process-id ]
The OSPF process view is displayed.
Step 3 Run:
filter-policy { acl-number | acl-name acl-name | ip-prefix ip-prefix-name } import
Routes received by OSPF are filtered.
OSPF is a dynamic routing protocol based on the link state, and routing information is carried
in LSAs. The filter-policy import command cannot be used to filter the advertised and received
LSAs. Actually, this command is used to filter the routes calculated by OSPF. Only the routes
that meet the filtering conditions are added to the routing table. Therefore, the LSDB is not
affected regardless of whether the received routes meet the filtering conditions.
----End
4.6.6 Configuring the switch to Filter LSAs to Be Sent
Filtering the LSAs to be sent on the local router can prevent unnecessary LSA transmission.
This reduces the size of the LSDB on the neighboring switch and speeds up network
convergence.
Context
When multiple links exist between two switches, you can configure the local switch to filter the
LSAs to be sent. This prevents unnecessary LSA transmission and saves bandwidth resources.
Perform the following steps on the switch running OSPF.
Procedure
Step 1 Run:
system-view
The system view is displayed.
Step 2 Run:
interface interface-type interface-number
The interface view is displayed.
Step 3 Run:
ospf filter-lsa-out { all | { summary [ acl { acl-number | acl-name } ] | ase
[ acl { acl-number | acl-name } ] | nssa [ acl { acl-number | acl-name } ] }
*
}
S6700 Series Ethernet Switches
Configuration Guide - IP Routing 4 OSPF Configuration
Issue 01 (2012-03-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
113