# BGP Labs: Remove Private AS from AS-Path

DevFeed: [BGP Labs: Remove Private AS from AS-Path](<https://devfeed.tech/articles/bgp-labs-remove-private-as-from-as-path-10944.md>)

Original publisher: [Read original article](<https://blog.ipspace.net/2024/02/bgp-labs-remove-private-as/>)

Published: 2024-02-22T06:49:00Z

Content type: tutorial

Language: en

Sources: [ipSpace.net blog](<https://devfeed.tech/sources/ipspace-net-blog.md>)

Topics: [BGP](<https://devfeed.tech/topics/bgp.md>), [Internet](<https://devfeed.tech/topics/internet.md>)

Tags: [bgp](<https://devfeed.tech/tags/bgp.md>), [internet](<https://devfeed.tech/tags/internet.md>), [netlab](<https://devfeed.tech/tags/netlab.md>)

## AI overview

This BGP lab exercise explains how to remove private AS numbers from outgoing AS paths so that a customer's private BGP AS number does not propagate across the Internet.

## Source excerpt

In a previous BGP lab exercise, I described how an Internet Service Provider could run BGP with a customer without the customer having a public BGP AS number. The only drawback of that approach: the private BGP AS number gets into the AS path, and everyone else on the Internet starts giving you dirty looks (or drops your prefixes). Let's fix that. Most BGP implementations have some remove private AS functionality that scrubs AS paths during outgoing update processing. You can practice it in the Remove Private BGP AS Numbers from the AS Path lab exercise.