# Remove As-path on advertisement

**URL:** <https://forum.networklessons.com/t/remove-as-path-on-advertisement/14891>\
**Category:** BGP\
**Created:** [July 14, 2021, 3:19am UTC](https://forum.networklessons.com/t/remove-as-path-on-advertisement/14891 "2021-07-14T03:19:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rmkumar666](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/r/6de8d8/32.png) [@rmkumar666](https://forum.networklessons.com/u/rmkumar666)\
**Post date:** [July 14, 2021, 3:19am UTC](https://forum.networklessons.com/t/remove-as-path-on-advertisement/14891/1 "2021-07-14T03:19:06Z")

</div>

Hi Guys,

I have a requirement to remove or trim as-path on the advertisement, can some one pls help.

We have 2 different bgp peering, both receives the same routes with lesser and longer as-path. I have use the longer as-path link to avoid asymmetric routing.

Note I can not prepend the AS in lesser as-path as that is meraki device and there is no option.

Thanks,  
Ramkumar S

---

<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 15, 2021, 8:13am UTC](https://forum.networklessons.com/t/remove-as-path-on-advertisement/14891/2 "2021-07-15T08:13:33Z")

</div>

Hello Kumar

If you’re not able to configure AS path prepending on the devices that are advertising the BGP routes, you can always apply it in an incoming direction on your local Cisco device.

Take a look at the example in the following lesson:

> **[How to configure BGP AS Path Prepending](https://networklessons.com/bgp/how-to-configure-bgp-as-path-prepending)**
>
> AS Path Prepending is a common BGP technique to influence path selection. In this lesson, you will learn how to configure AS Path prepending.

In this topology, AS Path Prepending is added in an outbound direction from AS1 to AS2. You can always apply it to R2 in AS2 in an inbound direction. The resulting BGP table in R2 will be the same. This way you don’t have to rely on the Meraki devices.

Now having said that, according to [some posts online](https://meraki.cisco.com/blog/2019/01/bgp-the-meraki-way/), AS path prepending is available on Meraki devices, although it does depend on the model and the code release being used.

I hope this has been helpful!

Laz

---

<div class="post-metadata">

**Author:** ![rmkumar666](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/r/6de8d8/32.png) [@rmkumar666](https://forum.networklessons.com/u/rmkumar666)\
**Post date:** [July 23, 2021, 2:25am UTC](https://forum.networklessons.com/t/remove-as-path-on-advertisement/14891/3 "2021-07-23T02:25:50Z")

</div>

Thanks Lazaros,

Prepending was always on mind, yes the Meraki does support Prepending. My motive with this post was to know is there any other option apart from AS Path prepending.

Thanks,  
Ram Kumar S

---

<div class="post-metadata">

**Author:** ![ndsodaro](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/n/f0a364/32.png) [@ndsodaro](https://forum.networklessons.com/u/ndsodaro)\
**Post date:** [October 24, 2022, 3:47am UTC](https://forum.networklessons.com/t/remove-as-path-on-advertisement/14891/4 "2022-10-24T03:47:37Z")

</div>

Did you ever get a response to this ?
