home

Supported platforms

Vyatta documentation

Learn how to install, configure, and operate the Vyatta Network Operating System (Vyatta NOS) and Orchestrator, which help drive our virtual networking and physical platforms portfolio.

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.

set policy route route-map map-name rule rule-num set prepend-as { last-as as-count | own-as as-count }
delete policy route route-map map-name rule rule-num set prepend-as [ last-as | own-as ]
show policy route route-map map-name rule rule-num set prepend-as

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.

Note: You can configure either the last-as or own-as option under a route map rule but not both.