No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Command Reference

CloudEngine 8800, 7800, 6800, and 5800 V200R002C50

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
import-route (OSPFv3)

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 ] | 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 | 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. -
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 4294967295.
cost cost Indicates the cost of the imported route. The value is an integer ranging from 0 to 16777214.By default, it is 1.
inherit-cost dicates 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.
  • 1: Type 1 external route
  • 2: Type 2 external route
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 200 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

OSPFv3 view

Default Level

2: Configuration level

Usage Guidelines

On a non-PE device, only EBGP routes are imported after the import-route bgp command is configured. IBGP routes are also imported after the import-route bgp permit-ibgp command is configured. If IBGP routes are imported, routing loops may occur.In this case, run the preference (OSPFv3) and preference (BGP) commands to prevent loops by specifying preferences of OSPFv3 and BGP routes.If IBGP routes need to be imported, configure the import-route bgp permit-ibgp command, and run the preference (OSPFv3) and preference (BGP) commands to set the preference of OSPFv3 ASE routes lower than that of IBGP routes (preference value of OSPFv3 ASE routes larger than that of IBGP routes).

On a PE, configuring the import-route bgp command imports both EBGP routes and IBGP routes, no matter whether the import-route bgp permit-ibgp command is configured or not.If the import-route bgp permit-ibgp command and the default-route-advertise (OSPFv3) command are both configured, the active IBGP default routes can be imported into OSPFv3.

NOTE:

After the import-route direct command is executed, routes to the network segment where the IPv6 address of the management interface belongs are also imported in the OSPFv3 routing table. Therefore, use this command with caution.

Example

# Import the RIPng route of type 2. The cost of the route is 50.

<HUAWEI> system-view
[~HUAWEI] ospfv3 1
[*HUAWEI-ospfv3-1] import-route ripng 1 type 2 cost 50

# OSPFv3 process 100 imports the routes discovered by OSPFv3 process 160.

<HUAWEI> system-view
[~HUAWEI] ospfv3 100
[*HUAWEI-ospfv3-100] import-route ospfv3 160
Translation
Download
Updated: 2019-03-21

Document ID: EDOC1000166501

Views: 42847

Downloads: 328

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next