apply aigp

Function

The apply aigp command configures an Accumulated Interior Gateway Protocol metric (AIGP) value for BGP routes.

The undo apply aigp command deletes the AIGP value configured for BGP routes.

By default, no AIGP value is configured for BGP routes.

Format

apply aigp { cost | inherit-cost }

undo apply aigp

Parameters

Parameter Description Value
cost

Specify an AIGP value for BGP routes.

The value is an integer ranging from 0 to 4294967295.

inherit-cost

Allows BGP routes to inherit the costs of the routes to which the BGP routes recurse as their AIGP values.

The apply aigp cost command is mutually exclusive with the apply aigp inherit-cost command.

-

Views

Route-policy view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
route-base write

Usage Guidelines

Usage Scenario

An AIGP administrative domain is a set of autonomous systems (ASs) in a common administrative domain. The AIGP attribute is an optional non-transitive BGP route attribute. The IGP metric value accumulates in the AIGP attribute during route transmission. After the AIGP attribute is configured in an AIGP administrative domain, BGP selects paths based on the AIGP value. Therefore, all devices in the AIGP administrative domain use the optimal routes to forward data.

Only after an if-match clause is configured in a route-policy and the apply aigp command is run can the AIGP value take effect on routes that match the if-match clause.

Prerequisites

A route-policy has been configured using the route-policy command.

Example

# Configure one apply clause to set the AIGP value of BGP routes to 200.
<HUAWEI> system-view
[~HUAWEI] route-policy policy1 permit node 10
[*HUAWEI-route-policy] apply aigp 200
# Configure one apply clause to allow BGP routes to inherit the costs of the routes to be imported by BGP as the AIGP values.
<HUAWEI> system-view
[~HUAWEI] route-policy policy2 permit node 10
[*HUAWEI-route-policy] apply aigp inherit-cost
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >