set as-path
Use this command to modify an autonomous system path for a route. By specifying the length of the AS-Path, the router influences the best path selection by a neighbor. Use this command to prepend an AS path string to routes increasing the AS path length.
To use this command, you must first give the match and set commands configure 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.
Use the no parameter with this command to disable this function.
Command Syntax
set as-path prepend .<1-65535>
set as-path prepend .<1-4294967295>
no set as-path prepend (.<1-65535>|)
no set as-path prepend (.<1-4294967295>|)
Parameters
<1-65535>
OcNOS prepends this number to the AS path.
Default
No default value is specified
Command Mode
Route-map mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#route-map myroute permit 3
(config-route-map)#set as-path prepend 8 24
Last modified date: 07-13-2023