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

ME60 V800R010C10SPC500 Configuration Guide - IP Routing 01

This is ME60 V800R010C10SPC500 Configuration Guide - IP Routing
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).
Controlling Route Import

Controlling Route Import

BGP4+ can import the routes discovered by other protocols into the BGP4+ routing table. When importing IGP routes, BGP can filter routes by routing protocol.

Usage Scenario

BGP4+ cannot discover routes by itself. Instead, it imports routes discovered by other protocols, such as OSPFv3 or static routes into the BGP4+ routing table. These imported routes are then transmitted within an AS or between ASs. When importing routes, BGP4+ can filter these routes by routing protocol.

Pre-configuration Tasks

Before controlling route import, configure basic BGP4+ functions.

Configuration Procedures

Perform one or more of the following configurations as required.

Configuring BGP4+ to Import Routes

BGP4+ can import routes from other protocols. When routes are imported from dynamic routing protocols, the process IDs of the routing protocols must be specified.

Context

BGP4+ cannot discover routes by itself. Instead, it imports routes discovered by other protocols such as OSPFv3 or static routes to the BGP4+ routing table. These imported routes are then transmitted within an AS or between ASs.

BGP4+ routes are imported in either of the following modes:

  • The import command imports routes based on protocol types, such as RIP routes, OSPF routes, Intermediate System to Intermediate System (IS-IS) routes, static routes, or direct routes.

  • The network command imports a route with the specified prefix and mask to the BGP routing table, which is more precise than the previous mode.

Procedure

  • Run the import command to import routes.
    1. Run system-view

      The system view is displayed.

    2. Run bgp as-number

      The BGP view is displayed.

    3. Run ipv6-family unicast

      The BGP-IPv6 unicast address family view is displayed.

    4. Run import-route { direct | isis process-id | ospfv3 process-id | ripng process-id | static | unr } [ med med | [ route-policy route-policy-name | route-filter route-filter-name ] ] *

      BGP4+ is configured to import routes from other protocols.

      NOTE:

      The process ID of a routing protocol needs to be specified to import IS-IS, OSPF, or RIP routes.

    5. Run commit

      The configuration is committed.

  • Run the network command to import routes.
    1. Run system-view

      The system view is displayed.

    2. Run bgp as-number

      The BGP view is displayed.

    3. Run ipv6-family unicast

      The BGP-IPv6 unicast address family view is displayed.

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

      A local IPv6 route is imported.

      If no mask or mask length is specified, the IP address is considered as a classful address.

      The local routes to be imported must be in the local IP routing table. You can use routing policies or XPL route filters to flexibly control the routes to be imported.

      NOTE:
      • The destination address and mask specified in the network command must be consistent with the corresponding entry in the local IP routing table. Otherwise, the specified route will not be imported.

      • When using the undo network command to clear the existing configuration, specify the correct mask.

    5. Run commit

      The configuration is committed.

Configuring BGP4+ to Import Default Routes

This section describes how to configure BGP4+ to import default routes from the local routing table.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run bgp as-number

    The BGP view is displayed.

  3. Run ipv6-family unicast

    The IPv6 unicast address family view is displayed.

  4. Run default-route imported

    BGP4+ is configured to import default routes.

    To import default routes, run both the default-route imported command and the import-route command. If only the import-route command is used, default routes cannot be imported. In addition, the default-route imported command is used to import only the default routes that exist in the local routing table.

  5. Run commit

    The configuration is committed.

Verifying the Configuration of Route Import

After controlling route import is configured, verify information about filtered and imported routes.

Prerequisites

Configurations have been performed to control route import.

Procedure

  • Run the display bgp ipv6 routing-table [ ipv6-address prefix-length ] command to check BGP4+ routes.
  • Run the display bgp ipv6 routing-table as-path-filter { as-path-filter-number | as-path-filter-name } command to check routes filtered by the AS_Path attribute.

Example

# Run the display bgp ipv6 routing-table command to view information about BGP4+ routes.

<HUAWEI> display bgp ipv6 routing-table
 BGP Local router ID is 1.1.1.1
 Status codes: * - valid, > - best, d - damped, x - best external, a - add path,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete
 RPKI validation codes: V - valid, I - invalid, N - not-found

Total Number of Routes: 1
 *>  Network  : 2001:db8:7::                             PrefixLen : 64
     NextHop  : 2001:db8:10::2                           LocPrf    :
     MED      : 150                                      PrefVal   : 0
     Label    :
     Path/Ogn : 200  i
Translation
Download
Updated: 2019-01-04

Document ID: EDOC1100059437

Views: 20426

Downloads: 15

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