set routing route-map set-action as-path prepend


The set routing route-map set-action as-path prepend command prepends the list of the configured AS numbers to the AS Path attribute of the routes. To ensure that the AS path conforms to standards, the local AS is prepended after this command is executed.
The delete routing route-map set-action as-path prepend command restores the default behavior of not modifying the AS Path attribute list.

NOTE: The delete form of the command deletes the entire list of AS-Path prepend configuration regardless of the parameter list.



Command Syntax

set routing route-map <route-map-name> order <NUMBERset-action as-path prepend [as1 <AS> | as2 <AS>| as3 <AS>| as4 <AS>| as5 <AS>| last-as <last-as>]

delete routing route-map <route-map-name> order <NUMBER> set-action as-path prepend [as1<AS> | as2<AS>| as3 <AS>| as4 <AS>| as5 <AS>| last-as <last-as>]


Parameter

Parameter

Description

route-map <route-map-name>

Specifies the name of the route map. Required.

order <NUMBER>

Specifies the sequence number of the entry. Required. The value is an integer that ranges from 1 to 65535.

prepend [as1<AS> | as2<AS>| as3 <AS>| as4 <AS>| as5 <AS>| last-as <last-as>]Specifies the AS numbers to be prepended from the AS Path attribute of the route. At most six AS number can be set. The value of <AS> is a 4-byte AS number in asplain format (z), or asdot format (x.y), where z is a number from 1 to 4294967295 and x and y are 16-bit numbers in the range 0 to 65535.


Example

  •  Configure a action clause in the route map to prepend the AS from the AS Path attribute of the route:
admin@Xorplus# set routing route-map GlobalMap order 10 set-action as-path prepend as1 102
admin@Xorplus# commit

Copyright © 2024 Pica8 Inc. All Rights Reserved.