bestroute routerid-prior-clusterlist (BGP-VPN instance IPv6 address family view)

Function

The bestroute routerid-prior-clusterlist command enables Router ID to take precedence over Cluster_List during BGP route selection.

The undo bestroute routerid-prior-clusterlist command restores the default configurations.

By default, Cluster_List takes precedence over Router ID during BGP route selection.

Format

bestroute routerid-prior-clusterlist

undo bestroute routerid-prior-clusterlist

Parameters

None

Views

BGP-VPN instance IPv6 address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

On a BGP network, after a device receives multiple routes with the same prefix but different paths from different peers, the router needs to select an optimal route from these routes to forward packets. By default, Cluster_List takes precedence over Router ID during BGP route selection. To enable Router ID to take precedence over Cluster_List during BGP route selection, run the bestroute routerid-prior-clusterlist command.

Precautions

If each route carries an Originator_ID, the Originator_IDs rather than router IDs are compared during route selection. The route with the smallest Originator_ID is preferred. Therefore, after the bestroute routerid-prior-clusterlist command is run, the Originator_ID takes precedence over the Cluster-List during BGP optimal route selection.

Example

# Enable Router ID to take precedence over Cluster_List during BGP route selection.
<HUAWEI> system-view
[~HUAWEI] ip vpn-instance vrf1
[~HUAWEI-vpn-instance-vrf1] ipv6-family
[~HUAWEI-vpn-instance-vrf1-af-ipv6] quit
[~HUAWEI-vpn-instance-vrf1] quit
[~HUAWEI] bgp 100
[*HUAWEI-bgp] ipv6-family vpn-instance vrf1
[*HUAWEI-bgp6-vrf1] bestroute routerid-prior-clusterlist
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >