Configuring AIGP Attributes for Routes

The Accumulated Interior Gateway Protocol Metric (AIGP) attribute allows devices in an AIGP administrative domain to use the optimal routes to forward data.

Context

An AIGP administrative domain is a set of autonomous systems (ASs) in a common administrative domain.

IGPs running in an administrative domain assign a metric to each link and select the path with the smallest metric. BGP, designed to provide routing over a large number of independent administrative domains, does not select paths based on metrics. If a single administrative domain runs several contiguous BGP networks, it is desirable for BGP to select paths based on metrics, just as an IGP does.

The AIGP attribute enables BGP to select routes based on metrics in an AIGP administrative domain. As a result, all devices in the AIGP administrative domain can use the optimal routes to forward data.

Procedure

  1. Enable AIGP capability for a BGP peer or peer group.
    1. Run system-view

      The system view is displayed.

    2. Run bgp as-number

      The BGP view is displayed.

    3. Run the ipv4-family unicast command to enter the BGP-IPv4 unicast address family view, or run the ipv4-family labeled-unicast command to enter the BGP-labeled address family view, or run the ipv4-family vpnv4 command to enter the BGP-VPNv4 address family view.
    4. Run peer { group-name | ipv4-address } aigp

      The AIGP capability is enabled for a BGP peer or peer group.

      BGP allows you to enable the AIGP capability for either a BGP peer or a BGP peer group. If a BGP peer with the AIGP capability joins a BGP peer group that does not have the AIGP capability, the BGP peer still retains the AIGP capability. If a BGP peer without the AIGP capability joins a BGP peer group that has the AIGP capability, the BGP peer inherits the AIGP capability of the BGP peer group. After a BGP peer inherits the AIGP capability of a BGP peer group, you can run the undo peer aigp command to delete the AIGP configuration from the BGP peer.

    5. Run commit

      The configuration is committed.

  2. (Optional) Allow VPN routes to participate in route selection using the AIGP attribute of the BGP LSP through which they are transmitted.
    1. Run system-view

      The system view is displayed.

    2. Run bgp as-number

      The BGP view is displayed.

    3. Run ipv4-family vpn-instance vpn-instance-name

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

    4. Run bestroute nexthop-resolved aigp

      VPN routes are allowed to participate in route selection using the AIGP attribute of the BGP LSP through which they are transmitted.

    5. Run commit

      The configuration is committed.

  3. (Optional) Allow public network routes to participate in route selection using the AIGP attribute of the corresponding BGP LSP.
    1. Run system-view

      The system view is displayed.

    2. Run bgp as-number

      The BGP view is displayed.

    3. Run ipv4-family unicast

      The BGP-IPv4 unicast address family view is displayed.

    4. Run bestroute nexthop-resolved aigp

      Public network routes are allowed to participate in route selection using the AIGP attribute of the corresponding BGP LSP.

    5. Run commit

      The configuration is committed.

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