strip-as-path
Syntax
strip-as-path;
Hierarchy Level
[edit policy-options policy-statement policy-name term term-name then]
Description
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 under
autonomous 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 under
policy-options
then
clause:
set policy-options policy-statement do-strip term a then
strip-as-path
Required Privilege Level
admin—To view this statement in the configuration.
admin-control—To add this statement to the configuration.
Release Information
Statement introduced in Junos OS Release 22.3.