as-path
Syntax
as-path <as-path> <origin (egp | igp | incomplete)> <atomic-aggregate>
<aggregatoras-number ip-address>;Hierarchy Level
[edit routing-options (aggregate|generate|static) (defaults | route)],[edit routing-options ribrouting-table-name(aggregate|generate|static) (defaults | route)],[edit routing-instancesrouting-instance-namerouting-options (aggregate|generate|static)],
(defaults | route)[edit routing-instancesrouting-instance-namerouting-options ribrouting-table-name
(aggregate|generate|static) (defaults | route)],[edit logical-routerslogical-router-namerouting-options (aggregate|generate|static)],
(defaults | route)[edit logical-routerslogical-router-namerouting-options ribrouting-table-name
(aggregate|generate|static) (defaults | route)],[edit logical-routerslogical-router-namerouting-instancesrouting-instance-namerouting-options
(aggregate|generate|static) (defaults | route)],[edit logical-routerslogical-router-namerouting-instancesrouting-instance-namerouting-options
ribrouting-table-name(aggregate|generate|static) (defaults | route)]Description
Associate Border Gateway Protocol (BGP) autonomous system (AS) path information with a static, aggregate, or generated route.
Options
aggregator—(Optional) Attach the BGPaggregatorpath attribute to the aggregate route. You must specify the last AS number that formed the aggregate route (encoded as two octets) foras-number, followed by the IP address of the BGP system that formed the aggregate route forin-address.
as-path—(Optional) AS path to include with the route. It can include a combination of individual AS path numbers and AS sets. Enclose sets in brackets ( [ ] ). The first AS number in the path represents the AS immediately adjacent to the local AS. Each subsequent number represents an AS that is progressively farther from the local AS, heading toward the origin of the path. You cannot specify a regular expression foras-path; you must use a full, valid AS path.
atomic-aggregate—(Optional) Attach the BGPatomic-aggregatepath attribute to the aggregate route. This path attribute indicates that the local system selected a less specific route instead of a more specific route.
origin egp—BGP origin attribute that indicates that the path information originated in another AS.
origin igp—BGP origin attribute that indicates that the path information originated within the local AS.
origin incomplete—BGP origin attribute that indicates that the path information was learned by some other means.Usage Guidelines
See Configure Static Routes, Configure Aggregate Routes, and Configure Generated Routes.
Required Privilege Level
routing—To view this statement in the configuration.
routing-control—To add this statement to the configuration.