Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

what does this BGP AS expression stands for?^(4837_)+9800

please help me

1 ACCEPTED SOLUTION

Accepted Solutions

Re: what does this BGP AS expression stands for?^(4837_)+9800

Hi, wlsi

No, the parenthese pair showed up on your question are matacharacters. They have special meaning and will not match the parenthese showed up on the AS-PATH attribute. To match a BGP confederation route which has perenthesis pair in the AS-path attribute, use \( and \) instead. This "\" prior to the "(" and ")" will cancel the special meaning of "(" and ")", and just match the character "(" and ")".

For example, if you want to match the following AS-PATH exactly

(65000)

use the following regular expression

^\(65000\)$

HTH

SSLIN

4 REPLIES

Re: what does this BGP AS expression stands for?^(4837_)+9800

Hi,

This means an AS-PATH coming from AS 4837, and having AS 4837 at least once and then AS 9800.

HTH,

Mohammed Mahmoud.

Re: what does this BGP AS expression stands for?^(4837_)+9800

Hi, wlsi

It match those routes with AS-path atrribute which is beginning with one or more 4837s (this means those routes come from AS 4837 and these routes have or have not been manupulated by AS pre-pending), followed by one 9800(this means AS 4837 accepts these routes from AS 9800), then followed by anything (and this means these routes might or might not be originated from AS 9800).

HTH

SSLIN

Community Member

Re: what does this BGP AS expression stands for?^(4837_)+9800

is it possible for a BGP confederation route ?it is also with a pair of ()

Re: what does this BGP AS expression stands for?^(4837_)+9800

Hi, wlsi

No, the parenthese pair showed up on your question are matacharacters. They have special meaning and will not match the parenthese showed up on the AS-PATH attribute. To match a BGP confederation route which has perenthesis pair in the AS-path attribute, use \( and \) instead. This "\" prior to the "(" and ")" will cancel the special meaning of "(" and ")", and just match the character "(" and ")".

For example, if you want to match the following AS-PATH exactly

(65000)

use the following regular expression

^\(65000\)$

HTH

SSLIN

194
Views
5
Helpful
4
Replies
CreatePlease to create content