policy route route-map <map-name> rule <rule-num> set prepend-as { last-as <as-count> | own-as <as-count> }
Prepends the last-as, that is, the previous ASN or the own-as, that is, the user's ASN to the as-path of a route.
None
- map-name
- The name of a defined route map.
- rule-num
- The number of a defined route map rule.
- as-count
- The number of times the last-as or own-as is prepended.
Configuration mode
policy {
route-map map-name {
rule rule-num {
set {
prepend-as {
last-as as-count
own-as as-count
}
}
}
}
}
Use the set form of this command to prepend the last-as or the own-as to the existing as-path of a route. When all the match conditions in the route map rule are met, the last-as or own-as is prepended a specified number of times to the as-path of the route.
Use the delete form of this command to delete the prepend-as configuration from a route map rule.
Use the show form of this command to display the configuration for route maps.