- autonomous-system autonomous-system <loops number> {
- independent-domain;
- }
- [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]
Statement introduced before JUNOS Release 7.4.
Specify the router’s AS number. Beginning with JUNOS Release 9.1, 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.
Beginning with JUNOS Release 9.2, 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).
number—(Optional) Maximum number of times this AS number can appear in an AS path.
![]() |
Note: When you specify the same AS number in more than one routing instance on the local router, 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 described separately in this chapter.
See Configuring the AS Number.
routing—To view this statement in the configuration.
routing-control—To add this statement to the configuration.