< Home

peer aigp

Function

The peer aigp command enables the AIGP capability for a BGP peer or peer group.

The undo peer aigp command disables the AIGP capability for a BGP peer or peer group.

By default, the AIGP capability is disabled for a BGP peer or peer group.

Format

peer { group-name | ipv4-address | ipv6-address } aigp

undo peer { group-name | ipv4-address | ipv6-address } aigp

Parameters

Parameter Description Value
group-name Name of a BGP peer group. The name is a string of 1 to 47 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
ipv4-address IPv4 address of a BGP peer. The value is in dotted decimal notation.
ipv6-address IPv6 address of a BGP peer. The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

Views

BGP view, BGP-IPv4 unicast address family view, or BGP-IPv6 unicast address family view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

An AIGP administrative domain is a set of ASs in a common administrative domain. The AIGP attribute is an optional non-transitive BGP path attribute. 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.

After the peer aigp command is configured, a local device can receive BGP routes carrying the AIGP attribute from BGP peers or peer groups or send such routes to BGP peers or peer groups.

Prerequisites

The peer as-number command has been run to create BGP peers or BGP peer groups.

Precautions

If a device does not change the next hop of a route to itself, the device must not change the AIGP attribute value of the route.

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.

Example

# Enable the AIGP capability for BGP peer 10.1.1.2 in the BGP IPv4 unicast address family view.

<sysname> system-view
[sysname] bgp 100
[sysname-bgp] peer 10.1.1.2 as-number 65001
[sysname-bgp] ipv4-family unicast
[sysname-bgp-af-ipv4] peer 10.1.1.2 aigp
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >