bgp bestpath as-path ignore
Syntax
bgp bestpath as-path ignore
no bgp bestpath as-path ignore
Description
Configures BGP to avoid considering the autonomous system (AS) path during best path route selection. By default, the AS-path is considered during BGP best path selection.
Any changes in BGP configuration are applied by restarting the current BGP sessions on the VRFs.
The
no
form of this command restores default behavior which configures BGP to consider the AS-path during route selection.
Command context
config-bgp
Authority
Administrators or local user group members with execution rights for this command.
Examples
switch(config-bgp)# bgp bestpath as-path ignore All current BGP sessions in VRF default will be restarted. Do you want to continue (y/n)?
switch(config-bgp)# no bgp bestpath as-path ignore All current BGP sessions in VRF default will be restarted. Do you want to continue (y/n)?