260
route-policy route-policy-name: Specifies a routing policy to filter redistributed routes. The
route-policy-name argument is a case-sensitive string of 1 to 63 characters.
tag tag: Specifies a tag for marking external LSAs, in the range of 0 to 4294967295. If this option is
not specified, no tag is contained in advertised LSAs by default.
type type: Specifies the type for redistributed routes, 1 or 2. The default is 2.
Usage guidelines
An external route is a route to a destination outside the OSPFv3 AS. External routes types are as
follows:
A Type-1 external route has high reliability. Its cost is comparable with the cost of OSPFv3
internal routes. The cost from an OSPFv3 router to a Type-1 external route's destination equals
the cost from the router to the ASBR plus the cost from the ASBR to the external route's
destination.
A Type-2 external route has low credibility, so OSPFv3 considers the cost from the ASBR to a
Type-2 external route is much bigger than the cost from the ASBR to an OSPFv3 internal router.
The cost from an internal router to a Type-2 external route's destination equals the cost from the
ASBR to the Type-2 external route's destination.
The import-route command cannot redistribute default routes.
The import-route bgp4+ command redistributes only EBGP routes. The import-route bgp4+
allow-ibgp command redistributes both EBGP and IBGP routes, and might cause routing loops.
Therefore, use it with caution.
The import-route nssa-only command redistributes AS-external routes in Type-7 LSAs only into
the NSSA area.
Examples
# Configure OSPFv3 process 1 to redistribute routes from RIPng and specify the type as type 2 and
cost as 50.
<Sysname> system-view
[Sysname] ospfv3
[Sysname-ospfv3-1] import-route ripng 10 type 2 cost 50
# Configure OSPFv3 process 100 to redistribute the routes discovered by OSPFv3 process 160.
<Sysname> system-view
[Sysname] ospfv3 100
[Sysname-ospfv3-100] import-route ospfv3 160
ipv6 import-route (IPv6 IS-IS view)
Use ipv6 import-route to enable IPv6 IS-IS to redistribute routes from another routing protocol.
Use undo ipv6 import-route to disable route redistribution.