Layer 3 Routing Commands
1408
set as-path
To prepend one or more AS numbers to the AS path in a BGP route, use the
set as-path
command. To remove a set command from a route map, use the
no
form of this command.
Syntax
set as-path prepend
as-path-string
no set as-path prepend
as-path-string
•
prepend
as-path-string
—
A list of AS path numbers to insert at the
beginning of the AS_PATH attribute of matching BGP routes. To prepend
more than one AS number, separate the ASNs with a space and enclose the
string in quotes. Up to ten AS numbers may be prepended.
Default Configuration
No AS paths are prepending by default.
Command Mode
Route Configuration
User Guidelines
This command is normally used to insert one or more instances of the local
AS number at the beginning of the AS_PATH attribute of a BGP route.
Doing so increases the AS path length of the route. The AS path length has a
strong influence on BGP route selection. Changing the AS path length can
influence route selection on the local router or on routers to which the route
is advertised.
When prepending an inbound route, if the first segment in the AS_PATH of
the received route is an AS_SEQUENCE, as-path-string is inserted at the
beginning of the sequence. If the first segment is an AS_SET, as-path-string is
added as a new segment with type AS_SEQUENCE at the beginning of the
AS path. When prepending an outbound route to an external peer, as-path-
string follows the local AS number, which is always the first ASN.
Command History
Introduced in version 6.2.0.1 firmware.
Summary of Contents for N1100-ON
Page 2: ......
Page 4: ......
Page 258: ...Using the CLI 258 ...
Page 488: ...Layer 2 Switching Commands 488 Operational State Querier Operational version 1 ...
Page 656: ...Layer 2 Switching Commands 656 10 ...
Page 1128: ...Audio Visual Bridging Commands 1128 ...
Page 1186: ...Data Center Technology Commands 1186 ...
Page 1435: ...Layer 3 Routing Commands 1435 Number of Joins 7 Number of Groups 1 ...
Page 2330: ......
Page 2331: ...www dell com support dell com Printed in the U S A ...
Page 2332: ......