Routing Protocols
-
Strip and replace BGP private-AS path (ACX710, JRR200, MX480, PTX10001, QFX5220, and QFX10003)—In Junos OS Release 22.3R1, we have introduced the
strip-as-path
policy option that removes the incoming autonomous system (AS) path as part of the import policy for a BGP session and replaces the received autonomous system (AS) path with the receiving router's local AS number for the receiving session. Note that the local AS number may be different from the number configured underautonomous system
in the[edit routing-options]
hierarchy.If you need to normalize externally injected routes, you can use this policy option for the incoming autonomous system (AS) path so that it may be used similarly to routes that originate solely within the fabric. The new
strip-as-path
policy option has no impact on the BGP export policy.You can configure the
strip-as-path
option underpolicy-options
then
clause:set policy-options policy-statement do-strip term a then strip-as-path