Command Manual – IPv4 Routing
H3C S7500E Series Ethernet Switches
Chapter 6 Routing Policy Configuration Commands
6-1
Chapter 6 Routing Policy Configuration
Commands
Note:
z
The term “router” in this document refers to a generic router or a Layer 3 switch
running routing protocols.
z
Routing policy common configuration commands are applicable to both IPv4 and
IPv6.
6.1 Routing Policy Common Configuration Commands
6.1.1 apply as-path
Syntax
apply as-path as-number
&<1-10>
[
replace
]
undo apply as-path
View
Routing policy view
Parameters
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.
Description
Use the
apply as-path
command to apply the specified AS numbers to BGP routes.
Use the
undo apply as-path
command to remove the clause configuration.
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.