The bestroute as-path-ignore command configures BGP to ignore the AS_Path attribute when it selects the optimal route.
The undo bestroute as-path-ignore command restores the default configuration.
By default, BGP uses the AS_Path attribute as one of route selection rules.
Usage Scenario
After the bestroute as-path-ignore command is used, BGP does not compare the AS path attributes of routes (including the AS_Path length and content).
Configuration Impact
After the bestroute as-path-ignore command is run, the AS_Path attribute is not used as one of the BGP route selection rules.
<HUAWEI> system-view [~HUAWEI] ip vpn-instance vpna [*HUAWEI-vpn-instance-vpna] ipv4-family [*HUAWEI-vpn-instance-vpna-af-ipv4] route-distinguisher 100:1 [*HUAWEI-vpn-instance-vpna-af-ipv4] vpn-target 111:1 both [*HUAWEI-vpn-instance-vpna-af-ipv4] quit [*HUAWEI-instance-vpna] quit [*HUAWEI] bgp 100 instance a [*HUAWEI-bgp-instance-a] ipv4-family vpn-instance vrf1 [*HUAWEI-bgp-instance-a-vrf1] bestroute as-path-ignore