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

CloudEngine 8800, 7800, 6800, and 5800 V200R005C10

This document describes the configurations of IP Unicast Routing, including IP Routing, Static Route, RIP, RIPng, OSPF, OSPFv3, IPv4 IS-IS, IPv6 IS-IS, BGP, Routing Policy, and PBR.
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 BGP to Import Routes

Configuring BGP to Import Routes

Context

BGP cannot discover routes and needs to import routes such as IGP routes into BGP routing tables so that the imported routes can be transmitted within an AS or between ASs. BGP imports routes in either import or network mode:

  • In import mode, BGP imports IGP routes, including RIP, OSPF, and IS-IS routes, into BGP routing tables based on protocol type. To ensure the validity of imported IGP routes, BGP can also import static routes and direct routes in import mode.

  • In network mode, BGP imports the routes in the IP routing table one by one into BGP routing tables. The network mode is more accurate than the import mode.

Procedure

  • In import mode
    1. Run system-view

      The system view is displayed.

    2. Run bgp { as-number-plain | as-number-dot }

      The BGP view is displayed.

    3. Enter the corresponding address family view based on network type to configure BGP devices on networks.

      • Run ipv4-family unicast

        The BGP-IPv4 unicast address family view is displayed.

      • Run ipv4-family multicast

        The BGP-IPv4 multicast address family view is displayed.

      • Run ipv4-family vpn-instance vpn-instance-name

        The BGP-VPN instance IPv4 address family view is displayed.

      • Run ipv6-family [ unicast ]

        The BGP-IPv6 unicast address family view is displayed.

      • Run ipv6-family vpn-instance vpn-instance-name

        The BGP-VPN instance IPv6 address family view is displayed.

    4. Run import-route protocol [ process-id ] [ med med | route-policy route-policy-name ] *

      BGP is configured to import routes of other routing protocols.

    5. (Optional) Run default-route imported

      BGP is allowed to import default routes from the local IP routing table.

      By default, BGP does not add default routes to BGP routing tables.

    6. Run commit

      The configuration is committed.

  • In network mode
    1. Run system-view

      The system view is displayed.

    2. Run bgp { as-number-plain | as-number-dot }

      The BGP view is displayed.

    3. Enter the corresponding address family view based on network type to configure BGP devices on networks.

      • Run ipv4-family unicast

        The BGP-IPv4 unicast address family view is displayed.

      • Run ipv4-family multicast

        The BGP-IPv4 multicast address family view is displayed.

      • Run ipv4-family vpn-instance vpn-instance-name

        The BGP-VPN instance IPv4 address family view is displayed.

      • Run ipv6-family [ unicast ]

        The BGP-IPv6 unicast address family view is displayed.

      • Run ipv6-family vpn-instance vpn-instance-name

        The BGP-VPN instance IPv6 address family view is displayed.

    4. Run network ipv4-address [ mask | mask-length ] [ route-policy route-policy-name ]network ipv6-address prefix-length [ route-policy route-policy-name ]

      BGP is configured to import routes from the IPv4 or IPv6 routing table one by one.

    5. Run commit

      The configuration is committed.

Translation
Download
Updated: 2019-04-20

Document ID: EDOC1100074760

Views: 45502

Downloads: 58

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