# set as-path prepend

#### Syntax

set as-path prepend { list listName | asPathNumber [ asPathNumber ]* }

no set as-path prepend

#### Release Information

Command introduced before JunosE Release 7.1.0.

#### Description

Prepends one or more AS numbers or a list of AS numbers to the AS path for BGP routes. The no version removes the set clause from a route map.

#### Options

- listName—Name of a list of AS path numbers; string of up to 32 characters
- asPathNumber—Number, in the range 1–65535, that appends the string following the keyword prepend to the AS path of the route that is matched by the route map. Applies to outbound BGP route maps.
- *—Indicates that one or more parameters can be repeated multiple times in a list in the command line

#### Mode

Route Map Configuration