set origin
Use this command to set the BGP origin code. The origin attribute defines the origin of the path information.
To use this 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.
Use the no parameter with this command to delete an entry.
Command Syntax
set origin (egp|igp|incomplete)
no set origin (egp|igp|incomplete|)
Parameters
egp
Learned through an Exterior Gateway Protocol.
igp
Interior to the originating AS. This happens when an Internal Gateway Protocol is redistributed into BGP.
incomplete
Unknown or learned through some other means. This happens when a static route is redistributed in BGP and the origin of the route is incomplete.
Default
No default value is specified
Command Mode
Route-map mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#configure terminal
(config)#route-map rmap1 permit 3
(config-route-map)#set origin egp
Last modified date: 08/28/2023