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

Configuration Guide - IP Unicast Routing

S1720, S2700, S5700, and S6720 V200R011C10

This document describes IP Unicast Routing configurations supported by the switch, including the principle and configuration procedures of IP Routing Overview, Static Route, RIP, RIPng, OSPF, OSPFv3, IS-IS(IPv4), IS-IS(IPv6), BGP, Routing Policy ,and PBR, and provides configuration examples.
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).
Configuring OSPF to Import External Routes

Configuring OSPF to Import External Routes

Context

To communicate with a switch running a protocol other than OSPF, an OSPF-capable switch must import routes of this protocol into the OSPF network.

OSPF can ensure loop-free intra-area and inter-area routes; however, OSPF cannot prevent external route loops. Therefore, exercise caution to prevent loops caused by manual configurations when importing external routes to OSPF.

Perform the following operations on the switch that functions as an ASBR running OSPF:

Procedure

  • Configure OSPF to import the routes discovered by other protocols.
    1. Run system-view

      The system view is displayed.

    2. Run ospf [ process-id ]

      The OSPF process view is displayed.

    3. Run import-route { limit limit-number | { bgp [ permit-ibgp ] | direct | unr | rip [ process-id-rip ] | static | isis [ process-id-isis ] | ospf [ process-id-ospf ] } [ cost cost | type type | tag tag | route-policy route-policy-name ] * }

      The routes discovered by other protocols are imported.

      NOTE:

      Only the S6720EI, S6720S-EI, S5720HI, S5720EI, S6720SI, S6720S-SI, S5730SI, S5730S-EI, S5720SI, and S5720S-SI support the bgp [ permit-ibgp ] and isis [ process-id-isis ] parameter.

  • Set parameters for OSPF to import routes.
    1. Run system-view

      The system view is displayed.

    2. Run ospf [ process-id ]

      The OSPF process view is displayed.

    3. Run default { cost { cost-value | inherit-metric } | limit limit | tag tag | type type } *

      The default values of parameters (route cost, tag, and type) are set for the imported routes.

      The tag parameter is used to identify protocol-related information. For example, it can differentiate AS numbers carried in BGP routes imported by OSPF.

      By default, the cost of the external routes imported by OSPF is 1, the type of the imported external routes is Type 2, and the tag value of the imported routes is 1.

      NOTE:
      To set a cost for the imported route, run one of the following commands (listed in descending order of priority).
      • apply cost
      • import-route
      • default (default cost)

Translation
Download
Updated: 2019-10-21

Document ID: EDOC1000178171

Views: 311248

Downloads: 1098

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