Because OSPFv3 is a link-state routing protocol and cannot filter advertised LSAs directly, it must filter routes when importing them. After filtering, only the routes that pass the filtering criteria are advertised.
Perform the following operations on the switch that runs OSPFv3.
The system view is displayed.
The OSPFv3 view is displayed.
Default parameters are set for imported routes.
External routes are imported.
Importing IBGP routes in an OSPFv3 process may lead to routing loops.
After the import-route command is executed on an OSPFv3 switch to import external routes, the switch becomes an ASBR.
Default routes are advertised to the OSPFv3 routing area.
Imported external routes are filtered.
To filter a certain type of route, you must specify protocol. Otherwise, OSPFv3 filters all imported routes.
The filter-policy command takes effect only for the routes imported by an ASBR using the import-route command. The ASBR filters routes when importing the routes. The routes that are filtered out do not generate LSAs and cannot be advertised by OSPFv3. If the import-route command is not run to import other external routes (including OSPFv3 routes in different processes), the filter-policy command does not take effect.