cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
440
Views
9
Helpful
11
Replies

Please explain ^150_[0-9]*$

shivlu jain
Level 5
Level 5

Please explain ^150_[0-9]*$ in bgp

regards

:S

11 Replies 11

Istvan_Rabai
Level 7
Level 7

Hi,

This is called a "regular expression".

In BGP is used for route filtering in ip as-path access-lists.

Check this out to learn more about regular expressions:

http://www.cisco.com/en/US/products/sw/iosswrel/ps1835/products_configuration_guide_chapter09186a00803479f1.html

Cheers:

Istvan

Istvan

I know its regular expression. Please explain the meaning of the expression.

regards

:S

Well, I guess the intent of the post above was to provide you a way to learn regular expression basic, so you could understand by yourself what it means. And a next time, you don't depend by anybody to do your work.

Hi Paolo,

Thank you for your supporting contribution!

I see your mind is set on helping people learn and understand the technology.

Best regards:

Istvan

Danilo Dy
VIP Alumni
VIP Alumni

Hi,

This means to match any network originated from AS150 and directly attached to AS150.

Regards,

Dandy

thanks dandy

regards

:S

dandy i am clear about reg expression but not able to break the above mentioned. It will definately behelpful to me if you clear the meanings.

regards

shivlu

???

Ok, here's a sample (bottom of the link) and brief explanation http://www.cisco.com/warp/public/459/26.html

Thanks medan this is what actually i am looking for.

^4_[0-9]*_[0-9]*$

so it means any network that is directly connected to 4 and so on.

Please answer one more after that i will rate you.Donot take it otherwise i am joking.

regards

shivlu

Hi,

I think that is an invalid regular expression.

If you have a router connected to internet running BGP, you can check it by yourself by executing "show ip bgp regexp [user_regular_expression]".

Else, you can use any BGP Looking Glass that allows you to do that. i.e. you can use RIPE-NCC Looking Glass http://www.ris.ripe.net/cgi-bin/lg/index.cgi

Never mind the rating, I can go to the barber, they give free candy for every hair-cut.

Regards,

Dandy

Mohamed Sobair
Level 7
Level 7

Hi,

If you need Network originated in As 4 and so on it should be:

^4_

HTH

Mohamed

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:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco