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 in the VRFs.
The
no
form of this command restores default behavior and configures BGP to consider the AS-path during route selection.
Command context
config-router
Authority
Administrators
Examples
switch(config-router)# bgp bestpath as-path ignore All current BGP sessions in VRF default will be restarted. Do you want to continue (y/n)?
switch(config-router)# no bgp bestpath as-path ignore All current BGP sessions in VRF default will be restarted. Do you want to continue (y/n)?