The apply as-path none overwrite command clears the original AS_Path attribute.
By default, the original AS_Path attribute is not cleared.
Usage Scenario
The AS_Path attribute is a private attribute of BGP used to record all ASs that a route passes through from the local area to the destination in distance-vector (DV) order. The AS_Path attribute can be used to control route selection and prevent routing loops. When the filtering conditions specified by if-match clauses are met and the matching mode is set to permit, you can use the apply as-path command to set the AS_Path attributes of the routes that match the filtering conditions.
Prerequisites
A route-policy has been configured using the route-policy command.
Configuration Impact
If the apply as-path none overwrite command is run for an export policy and the export policy is applied to an IBGP peer, the original AS_Path attribute is changed to null.
After the apply as-path command is run, the configuration is backed up to the slave main control board. You can run the display route-policy command to check whether the configuration takes effect.Precautions
Running the apply as-path command changes the path through which network traffic passes. Use this command only when you are familiar with the network topology and impact of the command on services.
The undo apply as-path command cancels the configuration of clearing the original AS_Path attribute.