import-route (OSPFv3)
Function
The import-route command imports an external route. Before the routes are imported, the OSPFv3 process of the route must be active.
The undo import-route command stops importing external routes.
By default, no route of other protocols is imported.
Format
import-route { bgp [ permit-ibgp ] | unr | direct | ripng help-process-id | static | isis help-process-id | ospfv3 help-process-id } [ { cost cost | inherit-cost } | type type | tag tag | route-policy route-policy-name ]*
undo import-route { bgp | unr | direct | ripng help-process-id | static | isis help-process-id | ospfv3 help-process-id }
Parameters
Parameter | Description | Value |
---|---|---|
bgp | Specifies the protocol from which routes are imported, as bgp. | - |
permit-ibgp | IBGP routes that are permitted to be imported. The import of IBGP routes may cause route loops. Therefore, this command must not be configured unless it is necessary. | - |
unr | Specifies the imported source routing protocol as unr. User Network Route (UNR) is allocated if dynamic routing protocols cannot be used when users are getting online. |
- |
direct | Specifies the imported source routing protocol as direct. | - |
ripng | Specifies the protocol from which routes are imported, as ripng. | - |
static | Specifies the imported source routing protocol as static. | - |
isis | Specifies the protocol from which routes are imported, as isis. | - |
ospfv3 | Specifies the protocol from which routes are imported, as ospfv3. | - |
help-process-id | Specifies the process ID of the imported source protocol. When the imported protocol is ripng, isis or ospfv3, you should specify the parameter. | The value is an integer ranging from 1 to 65535. |
cost cost | Indicates the cost of the imported route. | The value is an integer ranging from 1 to 16777214. By default, it is 1. |
inherit-cost | Indicates the original cost of the imported routes. | - |
type type | Specifies the type of the external routes. | The value is an integer ranging from 1 to 2. By default, it is 2.
|
tag tag | Specifies the tag value of the imported routes. | The value is an integer that ranges from 0 to 4294967295. By default, the value is 1. |
route-policy route-policy-name | Specifies the name of the routing policy. Only the routes that match the route-policy-name are imported. | The name is a string of 1 to 40 characters without space. It is case-sensitive. |
Example
# Import the RIPng route of type 2. The cost of the route is 50.
<AC6605> system-view
[AC6605] ospfv3 1
[AC6605-ospfv3-1] import-route ripng 1 type 2 cost 50
# OSPFv3 process 100 imports the routes discovered by OSPFv3 process 160.
<AC6605> system-view
[AC6605] ospfv3 100
[AC6605-ospfv3-100] import-route ospfv3 160