set as

Use this command to specify the number of times to prepend the AS number of this router to the AS path for this route map context.

Syntax

set as num
no set as num

Parameters

num Specifies the number of times to prepend the AS number of this router to the AS path.

Defaults

None.

Mode

BGP route map configuration.

Usage

The default value for the set as command is 0. The AS path is a mandatory attribute in the route update. A single entry will be present if the set as command is set for either 0 or 1.

Route selection takes into account the length of the AS path. Prepending additional AS numbers is a way of affecting route selection by lengthening the AS path.

The no set as command resets the number of times to prepend the AS number of this router to the AS path to the default value of 0 (a single entry is present in the route update).

Example

This example shows how to set the number of times to prepend this router‘s AS number to the AS path to 2, if all match clauses in the bgprm1 route map match:

System(su)->configure
System(su-config)->route-map bgp bgprm1 permit
System(su-config-route-map-bgp)->set as 2
System(su-config-route-map-bgp)->