cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
380
Views
1
Helpful
3
Replies

Need help Route-policy Regex. BGP ASN and Prefix length

Hej
IoS XR - ASR9903

I am trying to create a route-policy that drops Any private BGP ASN number anywhere in the AS-path. 

64512 to 65534 and 4200000000 to 4294967294

Can you help me how to create these Regex for these?

Regards

3 Replies 3

Harold Ritter
Spotlight
Spotlight

Hi @oscardenizjensen ,

You simply need to use the command "remove as-path private-as" inside a route policy and apply the route policy to the appropriate neighbor.

Regards,

Harold

Regards,
Harold Ritter, CCIE #4168 (EI, SP)

This is Internet facing and we do not want any routes with Private AS coming on Internet

Hi @oscardenizjensen ,

Thanks for the additional information. The approach I suggested should work then.

Regards,

Harold

Regards,
Harold Ritter, CCIE #4168 (EI, SP)