Re: bgp reg exp

From: Bogdan Sass (bogdan.sass@catc.ro)
Date: Tue May 13 2008 - 13:51:54 ART


Bogdan Sass wrote:
> irfanccie@hotmail.co.uk wrote:
>> Hi All
>>
>> IF your AS is 1 and neighbor AS2 , and there there is a requirement
>> to only
>> allow networks originated only from directly connected AS2 would the
>> reg exp
>> be
>>
>> ip as-path access-list permit ^2$
>>
>> or
>>
>> ip as-path access-list permit _2$
>>
>>
>> please help
>>
>> thanks
>>
> As I see it, ^2$ will allow networks containing only AS2 in the
> AS_PATH (networks originated from AS2), while _2$ will allow all
> networks that have an AS_PATH ending in AS2 (all networks received
> from AS2).
>
> So for your question, the answer would be ^2$
>

-- 
Bogdan Sass
CCAI,CCNP,CCSP,JNCIA-ER
Information Systems Security Professional
"Curiosity was framed - ignorance killed the cat"


This archive was generated by hypermail 2.1.4 : Mon Jun 02 2008 - 06:59:16 ART