< Home

Configuring BGP to Import Routes

BGP obtains the routing information inside the AS by importing the IGP routing information and advertises the route to the peer. Before the IGP routing information is imported, related configuration should be made to allow BGP to import default routes.

Context

BGP can send internal routes to its neighboring ASs, but it does not discover internal routes by itself. Instead, it imports IGP routes to the BGP routing table and advertises the BGP routing table to the peers. When importing IGP routes, BGP can filter the routes imported from different routing protocols.

If the default-route imported command is not used, the default routes cannot be imported when you run the import-route command to import routes of other protocols.

Procedure

  1. Access the system view.

    system-view

  2. Access the BGP view.

    bgp { as-number-plain | as-number-dot }

  3. Access the BGP IPv4 unicast address family view.

    ipv4-family unicast

  4. Configure BGP to import routes discovered by other protocols.

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

    When the type of an imported route is IS-IS, OSPF, or RIP, you must specify the process ID.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >