beautypg.com

16 set atomic-aggregate, 15 set as-path – CANOGA PERKINS 9175 Command Reference User Manual

Page 346

background image

CanogaOS Command Reference

19-15

Switch(config-route-map)# set aggregator as 43 10.10.0.3

Related Commands

19.15 set as-path

Use this command to modify an autonomous system path for a route.

Use the no parameter with this command to disable this function.

Use the set as-path command to specify an autonomous system path. By specifying the length

of the AS-Path, the router influences the best path selection by a neighbor. Use the prepend

parameter with this command to prepend an AS path string to routes increasing the AS path

length.

To use the set as-path command, you must first have a match clause. Match and set commands

set the conditions for redistributing routes from one routing protocol to another. The match

command specifies the match criteria under which redistribution is allowed for the current

route-map. The set command specifies the set redistribution actions to be performed, if the

match criteria are met.

If the packets do not match any of the defined criteria, they are routed through the normal

routing process.

Note:

This command is valid for BGP only.


Command Syntax

set as-path prepend ASN […ASN ]

no set as-path

Syntax Description

prepend

Prepends the autonomous system path.

ASN

System prepends this number to the AS path.

Command Mode

Route-map mode

Defaults

No set as-path is specified by default.

Examples

Switch# configure terminal

Switch(config)# route-map myroute permit 3