as-path-replace
Syntax
as-path-replace as-path-replace;Hierarchy Level
[edit logical-systems name policy-options policy-statement name then],
[edit policy-options policy-statement name then]
Description
Replace a list of autonomous systems (AS) numbers or private AS numbers with the local AS number of the BGP peering session to maintain network interoperability. This configuration works only on AS sequences and not on AS sets.
If you have configured the BGP confederation ID and want to connect with a peer from an external confederation, replace the AS number with the confederation ID. If you want to connect to a peer within the same confederation replace the AS number with member AS number.
Options
as-path-replace– Specify a sequence of AS numbers or private AS numbers that should be replaced with the local AS. This configuration works only on AS sequences and not on AS sets.
-
Range:The private AS numbers can range from 64512 through 65534, and from 4200000000 through 4294967294.
Required Privilege Level
routing—To view this statement in the configuration.
routing-control—To add this statement to the configuration.
Release Information
Statement introduced in Junos OS Release 25.4R1.