cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
464
Views
5
Helpful
4
Replies

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

wlsj
Level 1
Level 1

please help me

1 Accepted Solution

Accepted Solutions

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

View solution in original post

4 Replies 4

mohammedmahmoud
Level 11
Level 11

Hi,

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

HTH,

Mohammed Mahmoud.

CSCO10892433
Level 4
Level 4

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

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

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card