# BGP Attributes and Path Selection

**URL:** https://forum.networklessons.com/t/bgp-attributes-and-path-selection/3503
**Category:** Lessons Discussion
**Created:** [April 10, 2018, 10:51am UTC](https://forum.networklessons.com/t/bgp-attributes-and-path-selection/3503 "2018-04-10T10:51:13Z")
**Posts on this page:** 1
**Showing post:** 11

<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: [October 8, 2019, 6:55am UTC](https://forum.networklessons.com/t/bgp-attributes-and-path-selection/3503/11 "2019-10-08T06:55:05Z")

</div>

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 thoroughly described in the following lesson.

> **[BGP Origin Code Attribute explained](https://networklessons.com/bgp/bgp-origin-code-attribute-explained)**
>
> BGP Origin Code is one of the attributes used for path selection. In this lesson, you will learn how it works and how to influence it.

Now these two might seem similar, but remember, that the Originate attribute is looked at first. If that attribute is the same between two candidate routes, then we go on to the next attribute in the list. It is possible for two prefixes to be “tied” when the originate attribute is examined, but that tie can be broken at the origin type attribute.

I hope this has been helpful!

Laz

---

_[View the full topic](https://forum.networklessons.com/t/bgp-attributes-and-path-selection/3503)._
