Setting Global BGP Parameters
Configuring BGP
page 3-22
OmniSwitch AOS Release 7 Advanced Routing Configuration Guide
March 2011
Enabling AS Path Comparison
The AS path is a route attribute that shows the sequence of ASs through which a route has traveled. For
example if a path originated in AS 1, then went through AS 3, and reached its destination in AS 4, then the
AS path would be:
4 3 1
A shorter AS path is preferred over a longer AS path. The AS path is always advertised in BGP route
updates, however you can control whether BGP uses this attribute when comparing routes. The length of
the AS path may not always indicate the effectiveness for a given route. For example, if a route has an AS
path of:
1 3 4
using only 1G links, it might not be a faster path than a longer AS path of:
2 4 5 7
that uses only 10-G links.
You can disable the default state of AS comparison by specifying:
-> no ip bgp bestpath as-path ignore
This command requires that you first disable the BGP protocol. If BGP were already enabled, you would
actually need to issue two commands to turn off AS path comparison:
-> ip bgp admin-state disable
-> no ip bgp bestpath as-path ignore