78
apply as-path
Syntax
View
Parameters
Description
Examples
apply comm-list delete
Syntax
R
OUTING
C
ONFIGURATION
n
Routing policy common configuration commands are applicable to both IPv4 and
IPv6.
apply as-path as-number&<1-10> [ replace ]
undo apply as-path
Routing policy view
as-number: Autonomous system number, in the range of 1 to 65535.
&<1-10>: Indicates you can enter as-number up to 10 times.
replace: Replaces the original AS number.
Use the
apply as-path
routes.
Use the
undo apply as-path
No AS_PATH attribute is set by default.
With the replace keyword, using the apply as-path command replaces the
original AS_PATH attribute with specified AS numbers. Without the replace
keyword, using this command adds the specified AS numbers before the original
AS_PATH attribute.
# Create routing policy policy1 with node 10, matching mode as permit. If BGP
routing information matches AS-path-ACL 1, add AS number 200 before the
original AS_PATH attribute.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy] if-match as-path 1
[Sysname-route-policy] apply as-path 200
apply comm-list comm-list-number delete
P
C
OLICY
OMMON
C
OMMANDS
command to apply the specified AS numbers to BGP
command to remove the clause configuration.