# BGP Private and Public AS Range

**URL:** <https://forum.networklessons.com/t/bgp-private-and-public-as-range/1231>\
**Category:** Lessons Discussion\
**Created:** [December 29, 2016, 5:30pm UTC](https://forum.networklessons.com/t/bgp-private-and-public-as-range/1231 "2016-12-29T17:30:48Z")\
**Posts on this page:** 3\
**Page:** 2

<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:** [January 7, 2025, 11:00am UTC](https://forum.networklessons.com/t/bgp-private-and-public-as-range/1231/21 "2025-01-07T11:00:01Z")

</div>

Hello Sathish

As @davidilles mentioned, the IANA has defined these private ASNs in the 4-byte range as well. You can also see this at [this NetworkLessons note on the topic](https://notes.networklessons.com/bgp-private-as-numbers).

I hope this has been helpful!

Laz

---

<div class="post-metadata">

**Author:** ![darokarim2](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/d/bbce88/32.png) [@darokarim2](https://forum.networklessons.com/u/darokarim2)\
**Post date:** [July 26, 2025, 9:33am UTC](https://forum.networklessons.com/t/bgp-private-and-public-as-range/1231/22 "2025-07-26T09:33:20Z")

</div>

Hi Rene,

Quick question: In a BGP setup where a CE uses a private ASN and connects to a PE with a public ASN, can we use as-override instead of remove-private-as to prevent AS path loop issues?

---

<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:** [July 30, 2025, 4:12am UTC](https://forum.networklessons.com/t/bgp-private-and-public-as-range/1231/23 "2025-07-30T04:12:46Z")

</div>

Hello Daro

That’s an excellent and insightful question. The short answer is yes, you absolutely can use `as-override` instead of `remove-private-as` to solve the private ASN loop problem.

Both features are designed for the same scenario, but they achieve the goal in different ways, with different side effects.

The `remove-private-as` method will strip private ASNs before the update is sent across the provider’s core. It makes the path length shorter, but it’s simple, clean, and usually the default choice for most providers.

The `as-override` method will modify the AS\_PATH just as the update is being sent out to the customer. It preserves the path length, but the AS\_PATH content changes. It is used for more specific traffic engineering scenarios.

I hope this has been helpful!

Laz

[Previous page](https://forum.networklessons.com/t/bgp-private-and-public-as-range/1231.md?page=1)
