![Cisco Nexus 3548 series Command Reference Manual Download Page 368](http://html.mh-extra.com/html/cisco/nexus-3548-series/nexus-3548-series_command-reference-manual_2609162368.webp)
348
Cisco Nexus 3548 Switch NX-OS Unicast Routing Command Reference
OL-27852-01
Chapter Unicast Routing Commands
set origin
set origin
To set the Border Gateway Protocol (BGP) origin code, use the
set origin
command. To delete the entry,
use the
no
form of this command.
set origin
{
egp
as-num
[:
as-num
] |
igp
|
incomplete
}
no set origin
Syntax Description
Command Default
Default origin, based on route in main IP routing table.
Command Modes
Route-map configuration mode
Command History
Usage Guidelines
You must have a match clause (even if it points to a “permit everything” list) if you want to set tags.
Use the
route-map
global configuration command, and the
match
and
set
route-map configuration
commands, to define the conditions for redistributing routes from one routing protocol into another. Each
route-map
command has a list of
match
and
set
commands associated with it. The
match
commands
specify the match criteria—the conditions under which redistribution is allowed for the current
route-map
command. The
set
commands specify the set actions—the particular redistribution actions
to perform if the criteria enforced by the
match
commands are met. The
no route-map
command deletes
the route map.
The
set route-map
configuration commands specify the redistribution set actions to be performed when
all of the match criteria of a route map are met. When all match criteria are met, all set actions are
performed.
This command requires the LAN Enterprise Services license.
Examples
This example shows how to set the origin of routes that pass the route map to IGP:
switch#
configure terminal
switch(config)#
route-map set_origin
switch(config-route-map)#
match as-path 10
switch(config-route-map)#
set origin igp
switch(config-route-map)#
egp
as-num
Specifies the autonomous system (AS) number for a remote exterior
gateway protocol (EGP) system. You can specify the AS number as a 2-byte
integer or a 4-byte integer in aa:nn format. The range is from 1 to 65535.
igp
Specifies a local interior gateway protocol (IGP) system.
incomplete
Specifies an unknown heritage.
Release
Modification
5.0(3)A1(1)
This command was introduced.