RE: BGP regular expression

From: Amir.Tahir/Wateen/Lahore (Amir.Tahir@wateen.com)
Date: Mon May 05 2008 - 01:25:03 ART


I believe if you try the following expression, it will help

If the AS is prepended, the following expression could be used to match
the successive occurrences
^([0-9]+)(-\1)*$

Do let us know yor findings and feedback

Regards / AT

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
V.Shekhar@GlobalAssurance.net
Sent: Thursday, May 01, 2008 10:29 PM
To: Rakesh Hegde
Cc: ccielab@groupstudy.com
Subject: Re: BGP regular expression

Sorry i meant to ask does it List 1.0 & 2.0 with ^(100_)+$ ?
-V Shekhar
CCIE(sec)#17589/CISSP/RHCE.

V.Shekhar@GlobalAssurance.net wrote:
> Does it list 1& 4 if u use ^(100_)+$ ?
>
> -V Shekhar
> CCIE(sec)#17589/CISSP/RHCE.
>
> Rakesh Hegde wrote:
>> Guys,
>>
>> I've got the following routes in the bgp table
>>
>> 192.168.1.0 100
>> 192.168.2.0 100 100 100
>> 192.168.3.0 100 200 300
>>
>>
>> 1. Sh ip bgp reg (_100_)+ as expected lists all 3 networks
>>
>> 2. Sh ip bgp reg ^(_100_)+ as expected lists all 3 networks
>>
>> 3. Sh ip bgp reg (_100_)+$ as expected lists 192.168.1.0 and
>> 192.168.2.0
>>
>> 4. Sh ip bgp reg ^(_100_)+$ lists only 192.168.1.0 .
>>
>> Any idea why no 4 is not listing 192.168.2.0 ?
>>
>> Thanks in advance
>>
>> -Rakesh
>>
>>
>> Pass the CCIE in six weeks, Guaranteed!
>> http://www.certscience.com/CCIE
>>



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