H3C S6550X-HI Series Command Reference Manual page 2053

Table of Contents

Advertisement

Routing policy commands
Common routing policy commands
apply as-path
Use
apply as-path
Use
undo apply as-path
Syntax
apply as-path { as-number&<1-32> [ delete | replace ] | clear }
undo apply as-path
Default
No AS_PATH attribute is set.
Views
Routing policy node view
Predefined user roles
network-admin
Parameters
as-number&<1-32>
indicates that you can specify a maximum of 32 AS numbers.
: Deletes the specified AS numbers from the original AS_PATH attribute.
delete
: Replaces the original AS numbers. If you do not specify this keyword, the command adds
replace
the specified AS numbers before the original AS_PATH attribute.
: Clears the original AS numbers.
clear
Examples
# Configure node 10 in permit mode for routing policy policy1 to add AS number 200 before the
original AS_PATH attribute of BGP routes matching AS path list 1.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy-policy1-10] if-match as-path 1
[Sysname-route-policy-policy1-10] apply as-path 200
Related commands
display ip as-path
if-match as-path
ip as-path
apply comm-list delete
Use
apply comm-list delete
Use
undo apply comm-list
to set the AS_PATH attribute for BGP routes.
to restore the default.
: Specifies an AS by its number in the range of 1 to 4294967295.
to delete the COMMUNITY attributes from BGP routes.
to restore the default.
1
&<1-32>

Advertisement

Table of Contents
loading

Table of Contents