An autonomous system (AS) is a set of routing devices that are under a single technical administration and that generally use a single interior gateway protocol (IGP) and metrics to propagate routing information within the set of routing devices. An AS appears to other ASs to have a single, coherent interior routing plan and presents a consistent picture of what destinations are reachable through it.
ASs are identified by a number that is assigned by the Network Information Center (NIC) in the United States (http://www.isi.edu). In JUNOS Release 9.1 and later, you can configure a number from 1 through 4,294,967,295 in plain-number format. The 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. All releases of the JUNOS Software support 2-byte AS numbers.
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. In AS-dot notation format, you can specify a value for AS number from 0.0 through 65535.65535.
If you are using BGP on the routing device, you must configure an AS number.
To configure the routing device’s AS number, include the autonomous-system statement:
- autonomous-system autonomous-system <asdot-notation> <loops number>;
For a list of hierarchy levels at which you can include this statement, see the statement summary section for this statement.
To specify the maximum number of times that this AS number can appear in an AS path, include the loops option. You can specify a value in the range from 1 through 10. The default value is 1.
The AS path attribute is modified when a route is advertised to an EBGP peer. Each time a route is advertised to an EBGP peer, the local routing device prepends its AS number to the existing path attribute, and a value of 1 is added to the AS number. The default loop value of 1 means that an AS number can appear in an AS path only one time. That is, when the local routing device advertises an AS path to an EBGP peer, that peer cannot advertise that AS path to another EBGP peer. To ensure that the AS path can be advertised by the peer that receives the route to another EBGP peer, specify a loops value of 2.
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 VPN routing and forwarding (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. For more information about configuring an independent AS domain, see Configuring Independent AS Domains.
By default, the AS number is displayed in plain-number format even if you configured a 4-byte AS number using the AS-dot notation format. Include the asdot-notation statement to configure the router to display a 4-byte AS number in the AS-dot notation format.