bestroute nexthop-resolved aigp

Function

The bestroute nexthop-resolved aigp command allows public routes to participate in route selection using the AIGP attribute of the BGP LSP through which they are transmitted.

The undo bestroute nexthop-resolved aigp command deletes the configuration.

By default, public routes are not allowed to participate in route selection using the AIGP attribute of the BGP LSP through which they are transmitted.

Format

bestroute nexthop-resolved aigp

undo bestroute nexthop-resolved aigp

Parameters

None

Views

BGP-IPv4 unicast address family view, BGP view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

An AIGP administrative domain is a set of autonomous systems (ASs) managed by the same administrative department.

Routing protocols, such as IGPs that run within an administrative domain, assign a metric to each link, and then choose the path with the minimum metric as the optimal path. BGP, as an inter-AS routing protocol, 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.

After the AIGP attribute is configured in an AIGP administrative domain, BGP selects paths based on metrics, just as an IGP does, and all devices in the domain forward data along optimal routes.

If a BGP LSP is set up between BGP peers, the local peer sends VPN routes to the remote peer through the BGP LSP. If the unicast route used to set up a BGP LSP carries the AIGP attribute and the AIGP capability is enabled on BGP peers, you can run the bestroute nexthop-resolved aigp command to allow public routes to participate in route selection using the AIGP attribute.

Prerequisites

The AIGP capability has been enabled on BGP peers using the peer aigp command.

Precautions

If the AIGP capability is enabled on both ends of a BGP LSP, but not on the two ends of another BGP LSP with the same destination, this command does not take effect.

Example

# Allow public BGP IPv4 routes to participate in route selection using the AIGP attribute of the BGP LSP through which they are transmitted.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] ipv4-family unicast
[*HUAWEI-bgp-af-ipv4] bestroute nexthop-resolved aigp
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >