Filtering LSAs in an area can prevent unnecessary LSA transmission. This reduces the size of the LSDB on the neighboring device and speeds up network convergence.
After filtering conditions are set for the incoming or outgoing Type 3 LSAs (Inter-Area-Prefix LSAs) in an area, only the Type 3 LSAs that meet the filtering conditions can be received or advertised.
This function is applicable only to the ABR.
The system view is displayed.
The OSPFv3 view is displayed.
The OSPFv3 area view is displayed.
Filter incoming Type 3 LSAs in the area. Run any of the following commands as required:
Run quit
Return to the OSPFv3 view.
Run quit
Return to the system view.
Run acl ipv6 { name basic-acl6-name basic | [ number ] basic-acl6-number } [ match-order { config | auto } ]
The basic ACL view is displayed.
Run rule [ rule-id ] [ name rule-name ] { deny | permit } [ fragment | source { source-ipv6-address { prefix-length | source-wildcard } | source-ipv6-address/prefix-length | any } | time-range time-name | [ vpn-instance vpn-instance-name | vpn-instance-any ] ] *
A rule is configured for the basic ACL.
When the rule command is run to configure rules for a named ACL, only the source address range specified by source and the time period specified by time-range are valid as the rules.
If the action specified in an ACL rule is permit, a route that matches the rule will be received or advertised by the system.
If the action specified in an ACL rule is deny, a route that matches the rule will not be received or advertised by the system.
If a route has not matched any ACL rules, the route will not be received or advertised by the system.
If an ACL does not contain any rules, all routes matching the route-policy that references the ACL will not be received or advertised by the system.
In the configuration order, the system first matches a route with a rule that has a smaller number and then matches the route with a rule with a larger number. Routes can be filtered using a blacklist or a whitelist:
Route filtering using a blacklist: Configure a rule with a smaller number and specify the action deny in this rule to filter out the unwanted routes. Then, configure another rule with a larger number in the same ACL and specify the action permit in this rule to receive or advertise the other routes.
Route filtering using a whitelist: Configure a rule with a smaller number and specify the action permit in this rule to permit the routes to be received or advertised by the system. Then, configure another rule with a larger number in the same ACL and specify the action deny in this rule to filter out unwanted routes.
The OSPFv3 view is displayed.
The OSPFv3 area view is displayed.
Incoming Type 3 LSAs in the area are filtered based on the ACL.
Based on an IPv6 prefix list:
Run filter ipv6-prefix ipv6-prefix-name import
Incoming Type 3 LSAs in the area are filtered based on an IP prefix list.
Based on a route-policy:
Run filter route-policy route-policy-name import
Incoming Type 3 LSAs in the area are filtered based on a route-policy.
Based on a route-filter:
Run filter route-filter route-filter-name import
Incoming Type 3 LSAs in the area are filtered based on a route-filter.
Filter outgoing Type 3 LSAs in the area. Run any of the following commands as required:
Return to the OSPFv3 view.
Return to the system view.
The ACL view is displayed.
A rule is configured for the basic ACL.
When the rule command is run to configure rules for a named ACL, only the source address range specified by source and the time period specified by time-range are valid as the rules.
If the action specified in an ACL rule is permit, a route that matches the rule will be received or advertised by the system.
If the action specified in an ACL rule is deny, a route that matches the rule will not be received or advertised by the system.
If a route has not matched any ACL rules, the route will not be received or advertised by the system.
If an ACL does not contain any rules, all routes matching the route-policy that references the ACL will not be received or advertised by the system.
In the configuration order, the system first matches a route with a rule that has a smaller number and then matches the route with a rule with a larger number. Routes can be filtered using a blacklist or a whitelist:
Route filtering using a blacklist: Configure a rule with a smaller number and specify the action deny in this rule to filter out the unwanted routes. Then, configure another rule with a larger number in the same ACL and specify the action permit in this rule to receive or advertise the other routes.
Route filtering using a whitelist: Configure a rule with a smaller number and specify the action permit in this rule to permit the routes to be received or advertised by the system. Then, configure another rule with a larger number in the same ACL and specify the action deny in this rule to filter out unwanted routes.
The OSPFv3 view is displayed.
The OSPFv3 area view is displayed.
Outgoing Type 3 LSAs in the area are filtered based on the ACL.
Based on an IPv6 prefix list:
Run filter ipv6-prefix ipv6-prefix-name export
Outgoing Type 3 LSAs in the area are filtered based on an IP prefix list.
Based on a route-policy:
Run filter route-policy route-policy-name export
Outgoing Type 3 LSAs in the area are filtered based on a route-policy.
Based on a route-filter:
Run filter route-filter route-filter-name export
Outgoing Type 3 LSAs in the area are filtered based on a route-filter.
The configuration is committed.