< Home

load-balancing as-path-ignore

Function

The load-balancing as-path-ignore command configures a router to ignore comparing the AS_Path attributes of the routes among which load balancing is performed.

The undo load-balancing as-path-ignore command disables this function.

By default, a router compares the AS_Path attributes of the routes when load balancing is performed.

Format

load-balancing as-path-ignore

undo load-balancing as-path-ignore

Parameters

None

Views

BGP view, BGP-VPN instance IPv4 address family view, BGP-IPv6 unicast address family view, BGP-VPN instance IPv6 address family view, BGP-IPv4 unicast address family view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After the load-balancing as-path-ignore command is run, a router does not compare the AS_Path attributes of the routes that are to be used for load balancing. This command applies to the scenarios where EBGP and IBGP routes carry out load balancing. Exercise caution when using the command because the execution of this command will change the conditions of load balancing.

Configuration Impact

The load-balancing as-path-ignore command and the bestroute as-path-ignore command are mutually exclusive. This means that if the bestroute as-path-ignore command is configured, the load-balancing as-path-ignore command cannot be configured.

Example

# Configure a router to ignore comparing the AS_Path attributes of the routes among which load balancing is performed.

<sysname> system-view
[sysname] bgp 100
[sysname-bgp] ipv4-family vpn-instance vpna
[sysname-bgp-vpna] load-balancing as-path-ignore
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >