Configuring OSPFv3 route redistribution

Because OSPFv3 is a link state routing protocol, it cannot directly filter LSAs to be advertised. OSPFv3 filters only redistributed routes. Only routes that are not filtered out can be advertised in LSAs.

Redistributing routes from another routing protocol


[IMPORTANT: ]

IMPORTANT:

The import-route bgp4+ command redistributes only EBGP routes. Because the import-route bgp4+ allow-ibgp command redistributes both EBGP and IBGP routes, and might cause routing loops, use it with caution.


To configure OSPFv3 route redistribution:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter OSPFv3 view.

ospfv3 [ process-id | vpn-instance vpn-instance-name ] *

N/A

3. Configure OSPFv3 to redistribute routes from other routing protocols.

import-route protocol [ process-id | all-processes | allow-ibgp ] [ cost cost | nssa-only | route-policy route-policy-name | tag tag | type type ] *

By default, route redistribution is disabled.

4. (Optional.) Configure OSPFv3 to filter redistributed routes.

filter-policy { acl6-number | prefix-list prefix-list-name } export [ protocol [ process-id ] ]

By default, OSPFv3 accepts all redistributed routes.

This command filters only routes redistributed with the import-route command. If the import-route command is not configured, executing this command does not take effect.

Redistributing a default route

The import-route command cannot redistribute a default external route. Perform this task to redistribute a default route.

To redistribute a default route:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter OSPFv3 view.

ospfv3 [ process-id | vpn-instance vpn-instance-name ] *

N/A

3. Redistribute a default route.

default-route-advertise [ [ always | permit-calculate-other ] | cost cost | route-policy route-policy-name | tag tag | type type ] *

By default, no default route is redistributed.

Configuring tags for redistributed routes

Perform this task to configure tags for redistributed routes to identify information about protocols. For example, when redistributing IPv6 BGP routes, OSPFv3 uses tags to identify AS IDs.

To configure a tag for redistributed routes:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter OSPFv3 view.

ospfv3 [ process-id | vpn-instance vpn-instance-name ] *

N/A

3. Configure a tag for redistributed routes.

default tag tag

By default, the tag of redistributed routes is 1.