Re: BGP Reg Exp

From: ying chang (ying_c@xxxxxxxxxxx)
Date: Sun Apr 14 2002 - 20:27:48 GMT-3


   
I hope below output from the internet can help to clarify the confusion:

ner-routes>show ip bgp regexp ^1 ?[0-9]*$
BGP table version is 20106408, local router ID is 10.0.0.2
Status codes: s suppressed, d damped, h history, * valid, > best, i -
internal
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network Next Hop Metric LocPrf Weight Path
*>i4.1.40.0/22 4.24.153.162 0 100 0 189 i
*>i4.1.44.0/23 4.24.66.2 0 100 0 189 i
*>i4.1.46.0/23 4.24.105.102 0 100 0 189 i
...
*>i4.2.64.0/24 4.24.62.22 0 100 0 189 i

ner-routes>show ip bgp regexp ^1 [0-9]*$

ner-routes>show ip bgp regexp ^701 [0-9]*$
BGP table version is 20106466, local router ID is 10.0.0.2
Status codes: s suppressed, d damped, h history, * valid, > best, i -
internal
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network Next Hop Metric LocPrf Weight Path
*>i3.0.0.0 4.0.6.142 1000 50 0 701 80 i
*>i9.184.112.0/20 4.0.6.142 1000 50 0 701 3786 i
*>i9.186.144.0/20 4.0.6.142 1000 50 0 701 3786 i
...
*>i12.15.150.0/23 4.0.6.142 1000 50 0 701 11847 i
*>i12.17.202.0/23 4.0.6.142 1000 50 0 701 12170 i
*>i12.17.226.0/23 4.0.6.142 1000 50 0 701 20029 i

ner-routes>show ip bgp regexp ^701 ?[0-9]*$
BGP table version is 20106501, local router ID is 10.0.0.2
Status codes: s suppressed, d damped, h history, * valid, > best, i -
internal
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network Next Hop Metric LocPrf Weight Path
*>i3.0.0.0 4.0.6.142 1000 50 0 701 80 i
*>i3.18.135.0/24 192.205.32.113 1000 50 0 7018 i
*>i9.2.0.0/16 4.0.6.142 1000 50 0 701 i
*>i9.184.112.0/20 4.0.6.142 1000 50 0 701 3786 i
*>i9.186.144.0/20 4.0.6.142 1000 50 0 701 3786 i
*>i12.0.0.0/23 192.205.32.113 1000 50 0 7018 i
*>i12.0.0.0 192.205.32.153 1000 50 0 7018 i
...
*>i12.8.188.0/24 4.0.6.142 1000 50 0 701 8143 i
*>i12.10.20.0/23 4.0.6.142 1000 50 0 701 11560 i
--More--

>From: "ying chang" <ying_c@hotmail.com>
>Reply-To: "ying chang" <ying_c@hotmail.com>
>To: pauljin@yahoo.com, gerd.thuemmler@berlin.de, ccielab@groupstudy.com
>Subject: Re: BGP Reg Exp
>Date: Sun, 14 Apr 2002 18:30:50 -0400
>
>'?' is 0 or more instances. It's true Halabi's example used
>^1 ?[0-9]*$, but when '?' is 0, you will get ^1[0-9]*$, which is not
>what you want. ^1_[0-9]*$ is the correct choice.
>
>Chang
>
>>From: Paul Jin <pauljin@yahoo.com>
>>Reply-To: Paul Jin <pauljin@yahoo.com>
>>To: Gerd Thuemmler <gerd.thuemmler@berlin.de>, ccielab@groupstudy.com
>>Subject: Re: BGP Reg Exp
>>Date: Sun, 14 Apr 2002 14:54:27 -0700 (PDT)
>>
>>I have seen ^1 ?[0-9]*$
>>as the example for AS1 and its directly connected AS in a couple of
>>different documentations.
>>
>>- Paul
>>
>> Gerd Thuemmler <gerd.thuemmler@berlin.de> wrote: Hi,
>>
>>At 21:22 14.04.2002, glmorris wrote:
>> >^1 ?[0-9]*$ AS 1 & its directly connected ASs'
>>
>>..hmm, i think that isn't correct. IMHO is that the correct way:
>>
>>^1_[0-9]*$
>>
>>
>>
>>Gerd Thuemmler (4 Days to the Lab)
>>Berlin, Germany



This archive was generated by hypermail 2.1.4 : Thu Jun 13 2002 - 10:58:08 GMT-3