Set origin
set origin
To set the BGP origin code, use the set origin command in route-map configuration mode. To delete an entry, use the no form of this command.
set origin {igp | egp autonomous-system | incomplete}
no set origin {igp | egp autonomous-system | incomplete}
|
igp |
Remote IGP. |
|
egp |
Local EGP. |
|
autonomous-system |
Remote autonomous system. This is an integer from 0 to 65535. |
|
incomplete |
Unknown heritage. |
Defaults
Default origin, based on route in main IP routing table.
Command Modes Route-map configuration
Command History Release
Modification
10.0
This command was introduced.
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 a route map's match criteria are met. When all match criteria are met, all set actions are performed.
Examples The following example sets the origin of routes that pass the route map to IGP:
route-map set_origin match as-path 10 set origin igp
I set origin
|
match as-path |
Matches a BGP autonomous system path access list. |
|
match community-list |
Matches a BGP community. |
|
match interface |
Distributes routes that have their next hop out one of the |
|
interfaces specified. |
|
|
match ip address |
Distributes any routes that have a destination network |
|
number address permitted by a standard or extended access |
|
|
list, or performs policy routing on packets. |
|
|
match ip next-hop |
Redistributes any routes that have a next-hop router address |
|
passed by one of the access lists specified. |
|
|
match ip route-source |
Redistributes routes that have been advertised by routers and |
|
access servers at the address specified by the access lists. |
|
|
match metric |
Redistributes routes with the metric specified. |
|
match route-type |
Redistributes routes of the specified type. |
|
match tag |
Redistributes routes in the routing table that match the |
|
specified tags. |
|
|
route-map |
Defines the conditions for redistributing routes from one |
|
routing protocol to another, or enables policy routing. |
|
|
set as-path |
Modifies an autonomous system path for BGP routes. |
|
set automatic-tag |
Automatically computes the tag value in a route map |
|
configuration. |
|
|
set community |
Sets the BGP COMMUNITIES attribute. |
|
set level |
Indicates where to import routes. |
|
set local-preference |
Specifies a preference value for the autonomous system path. |
|
set metric |
Sets the metric value for a routing protocol. |
|
set metric-type |
Sets the metric type for the destination routing protocol. |
|
set next-hop |
Specifies the address of the next hop. |
|
set tag |
Sets the value of the destination routing protocol. |
|
set weight |
Specifies the BGP weight for the routing table. |
set weight
Continue reading here: Set weight
Was this article helpful?