# BGP Origin Code Attribute explained

**URL:** https://forum.networklessons.com/t/bgp-origin-code-attribute-explained/955
**Category:** Lessons Discussion
**Created:** [December 24, 2016, 6:38pm UTC](https://forum.networklessons.com/t/bgp-origin-code-attribute-explained/955 "2016-12-24T18:38:08Z")
**Posts on this page:** 1
**Showing post:** 30

<div class="post-metadata">

### Author: ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)
#### Post date: [May 1, 2020, 6:06am UTC](https://forum.networklessons.com/t/bgp-origin-code-attribute-explained/955/30 "2020-05-01T06:06:26Z")

</div>

Hello Vasanth

Different lists will use slightly different names for various attributes. What is named **Originate** in Rene’s list is described as _“Prefer the path that was locally originated via a network or aggregate BGP subcommand or through redistribution from an IGP”_ by Cisco. Similarly, what is described as **Origin Code** by Rene, is described as _“Prefer the path with the lowest origin type”_ by Cisco.

For a clearer understanding of the difference between these two particular attributes, take a look at the following post.

> [@BGP Attributes and Path Selection](https://forum.networklessons.com/t/bgp-attributes-and-path-selection/3503/11):
>
> Hello Gareth The Originate attribute compares prefixes based on if they have originated on the local router. Specifically, if a route is learned via a network or aggregate BGP subcommand on the local router, or through redistribution from an IGP again on the local router, then it is preferred over prefixes learned from other BGP routers. The Origin type attribute has to do with if the path was learned via IGP, EGP, or if it has been redistributed into BGP (incomplete). This is more thoroughl…

I hope this has been helpful!

Laz

---

_[View the full topic](https://forum.networklessons.com/t/bgp-origin-code-attribute-explained/955)._
