15 set as-path – CANOGA PERKINS CanogaOS Command Reference User Manual

Page 569

Advertising
background image

CanogaOS Command Line Reference

Revision 1.02

Proprietary & Confidential Canoga Pertkins Metro Ethernet Switches

Page 569 of 855

28.14.1.5 Examples

Switch# configure terminal
Switch(config)# route-map myroute permit 3
Switch(config-route-map)# set aggregator as 43 10.10.0.3

28.14.1.6 Related

Commands

28.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.

28.15.1.1 Command

Syntax

set as-path prepend ASN […ASN ]

no set as-path

28.15.1.2 Syntax

Description

prepend

Prepends the autonomous system path.

ASN

System prepends this number to the AS path.

Advertising