Configuring OSPFv3 to Filter the Received Routes
Context
After receiving LSAs, OSPFv3 determines whether to add the calculated routes to the local routing table according to the filtering policy.
Do as follows on the switch that runs OSPFv3.
Procedure
- Run system-view
The system view is displayed.
- Run ospfv3 [ process-id ]
The OSPFv3 view is displayed.
- Run filter-policy { acl6-number | acl6-name acl6-name | ipv6-prefix ipv6-prefix-name | route-policy route-policy-name } import
OSPFv3 is configured to filter the imported routes.
Using the filter-policy command, you can only filter the routes calculated by OSPFv3. Routes that do not pass the filtering are neither added to the OSPFv3 routing table nor advertised.
- Run commit
The configuration is committed.