Routing
Highlighted
Routing

AS-path removal of AS numbers

‎01-21-2014 11:17 PM

Hello,

 

i am looking for an option to remove an AS number from as-path..

for example, if i receive as path :   AS1 AS2 AS3

i want to remove AS1 and have only AS2 AS3 in my table..

 

is that possible?

with routing policies or in any other way?

3 REPLIES 3
Highlighted
Routing

Re: AS-path removal of AS numbers

‎01-22-2014 03:08 AM

If the AS is a private one you could use remove-private

 

http://www.juniper.net/techpubs/en_US/junos11.4/topics/concept/bgp-remove-private-as-understanding.h...

 

For public AS the as-override may work for you but is not as flexible.

 

http://www.juniper.net/techpubs/en_US/junos11.4/topics/reference/configuration-statement/as-override...

Steve Puluka BSEET - Juniper Ambassador
IP Architect - DQE Communications Pittsburgh, PA (Metro Ethernet & ISP)
http://puluka.com/home
Highlighted
Routing

Re: AS-path removal of AS numbers

‎01-22-2014 03:29 AM

 i already read about the as-override command.. but i don't understand how to implement it on the relevant peer.

 

you mind showing me an example?

Highlighted
Routing

Re: AS-path removal of AS numbers

[ Edited ]
‎01-22-2014 03:46 PM

I have not seen any policy that alter that BGP attribute the way you want it to work. I can imagine that would completely break BGP. The AS path is one attribute that must the sent and it is the complete as path that allows BGP interAS routing. You can remove the the private AS from the path, but I am not so sure you can remove the real AS paths. Juniper likes to give you additional power as the admin, so we will see what the others have to say. However. I see where you can expand or prepend ASN using a policy.

The as-overide is used fro something completely different. See attached BGP policy guide.

"Enabling the AS override feature allows routes originating from an AS to be accepted by a router residing in the same AS. Without AS override enabled, the routing device refuses the route advertisement once the AS path shows that the route originated from its own AS. This is done by default to prevent route loops. The as-override statement overrides this default behavior.

Note that enabling the AS override feature may result in routing loops. Use this feature only for specific applications that require this type of behavior, and in situations with strict network control"

 

A side question, what is purpose of wanting to just see a reduced number of AS path? In other words what is your objective in requesting such a potentially dangerous feature? I ask because if you want to route traffic and avoid a particular AS or to select a more preferred path, you may be able to use other features.

Can you imagine if ISP were able accomplish such feat! 

[KUDOS PLEASE! If you think I earned it!
If this solution worked for you please flag my post as an "Accepted Solution" so others can benefit..]

Attachments

Feedback