[an error occurred while processing this directive][an error occurred while processing this directive]



autonomous-system autonomous-system <asdot-notation> <loops number> {independent-domain;}

Hierarchy Level

[edit logical-systems logical-system-name routing-instances routing-instance-name routing-options],[edit logical-systems logical-system-name routing-options],[edit routing-instances routing-instance-name routing-options],[edit routing-options]

Release Information

Statement introduced before JUNOS Release 7.4.

Statement introduced in JUNOS Release 9.0 for EX Series switches.

asdot-notation introduced in JUNOS Release 9.3.

asdot-notation introduced in JUNOS Release 9.3 for EX Series switches.


Specify the routing device’s AS number. In JUNOS Release 9.1 and later, the numeric range is extended to provide BGP support for 4-byte AS numbers as defined in RFC 4893, BGP Support for Four-octet AS Number Space.

In JUNOS Release 9.3 and later, you can also configure a 4-byte AS number using the AS-dot notation format of two integer values joined by a period: <16-bit high-order value in decimal>.<16-bit low-order value in decimal>. For example, the 4-byte AS number of 65,546 in plain-number format is represented as 1.10 in the AS-dot notation format.


autonomous-system—AS number. Use a number assigned to you by the Network Information Center (NIC).

Range: 1 through 4,294,967,295 (232 – 1) in plain-number format
Range: 0.0 through 65535.65535 in AS-dot notation format

asdot-notation—(Optional) Display the configured 4-byte autonomous system number in the AS-dot notation format.

Default: Even if a 4-byte AS number is configured in the AS-dot notation format, the default is to display the AS number in the plain-number format.

number—(Optional) Maximum number of times this AS number can appear in an AS path.

Range: 1 through 10
Default: 1 (AS number can appear once)

Note: When you specify the same AS number in more than one routing instance on the local routing device, you must configure the same number of loops for the AS number in each instance. For example, if you configure a value of 3 for the loops statement in a VRF routing instance that uses the same AS number as that of the master instance, you must also configure a value of 3 loops for the AS number in the master instance.

Use the independent-domain option if the loops statement must be enabled only on a subset of routing instances.

The remaining statement is explained separately.

Required Privilege Level

routing—To view this statement in the configuration.

routing-control—To add this statement to the configuration.

Published: 2010-04-14

[an error occurred while processing this directive]