Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

show as-path

Syntax

Syntax (EX Series Switches)

Description

Display the distribution of autonomous system (AS) paths that the local routing device is using (usually through the routing table). Use this command to debug problems for AS paths and to understand how AS paths have been manipulated through a policy (through the as-path-prepend action) or through aggregation.

AS paths are stored in a hash table. A hash table is one method for fast lookup. Each entry in the table is called a bucket. Junos OS computes a hash value that indicates in which bucket the AS path is stored. The AS paths are dispersed among the hash buckets so that a manageable number of AS paths is stored in each bucket. Only unique AS paths are stored. Duplicate AS paths increase a reference count, but do not increase the number of AS paths stored in the hash table.

Options

none

Display basic information about AS paths that the local routing device is using (same as brief).

brief | detail

(Optional) Display the specified level of output.

logical-system (all | logical-system-name)

(Optional) Perform this operation on all logical systems or on a particular logical system.

Required Privilege Level

view

Output Fields

Table 1 lists the output fields for the show as-path command. Output fields are listed in the approximate order in which they appear.

Table 1: show as-path Output Fields

Field Name

Field Description

Level of Output

Total AS paths

Total number of AS paths.

brief none

Bucket

Bucket number.

All levels

Count

Number of AS path entries in this bucket.

All levels

AS path

AS path through which the route was learned. The letters at the end of the AS path indicate the path origin, providing an indication of the state of the route at the point at which the AS path originated:

  • I—IGP.

  • E—EGP.

  • ?—Incomplete; typically, the AS path was aggregated.

  • Atomic—Route is an aggregate of several route prefixes.

  • Aggregator—Routing device has summarized a range of prefixes.

All levels

domain

Number of independent AS domains. The AS paths of an independent AS domain are not shared with the AS paths and AS path attributes of other domains, including the master routing instance domain.

detail

neighbor as

AS peer address.

detail

length

Length of the AS path.

detail

segments

Length of the AS segment descriptor.

detail

unique-count

Number of unique autonomous systems (ASs) present in the AS path

detail

references

Path reference count.

detail

Sample Output

show as-path

show as-path detail

Release Information

Command introduced before Junos OS Release 7.4.