Can I remove a public AS in AS-path ?

Unanswered Question
Jun 10th, 2010


the box is receiving some routes with AS-path containing a public AS. I want to send this routes to eBGP peers without this public AS. How can I remove this public AS from AS-path?



I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Giuseppe Larosa Thu, 06/10/2010 - 03:18

Hello Julio,

you cannot remove a public ASN from AS path BGP attribute.

However, as suggested in other threads you can generate locally a BGP aggregate that will be seen as originated in your AS and you can send only that aggregate to another neighbor

Hope to help


francisco_1 Thu, 06/10/2010 - 03:33

Not sure if you are allowed to aggregation a prefix generated from another AS out of your AS!!!.  If yes then the received routes you can aggregated on the router as long as the route is the in the BGP table. By aggregating a prefix without the as-set, the prefix will appear as generated locally without AS attribute in the aggregated routes advertised out to other peers.


julio.gonzalez Thu, 06/10/2010 - 03:40

Thanks Giuseppe,

your response solved my problem. I /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Tabla normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;} generate locally a BGP aggregate.

Best regards


francisco_1 Thu, 06/10/2010 - 03:52


What we suggested will work "BUT BE VERY CAREFUL". If the prefixes belongs to the local AS you are aggregating from, then no problem. When the summarise prefixes learned from other ASes, information hiding may result in a routing loops. By removing AS_PATH attibute and replacing with empty list will prevent BGP loop-detection mechanism from working properly.

Good luck



This Discussion

Related Content