GroupStudy.com GroupStudy.com - A virtual community of network engineers
 Home  BookStore  StudyNotes  Links  Archives  StudyRooms  HelpWanted  Discounts  Login
Re: regex question for bgp posted 10/13/2004
[Chronological Index] [Thread Index] [Top] [Date Prev][Date Next] [Thread Prev][Thread Next]


brian,,,,,i created a filter-list with the as-path of ^5(_[0-9]+)?$........cleared bgp adj's and then checked the bgp table and the second hop away disappeared and only prefixes from AS 5 remained.


Regards,


John D. Matus
MCSE, CCNP
Office: 818-782-2061
Cell: 818-430-8372
jmatus@xxxxxxxxxxx
----- Original Message ----- From: "Brian McGahan" <bmcgahan@xxxxxxxxxxxxxxxxxxxxxx>
To: "John Matus" <jmatus@xxxxxxxxxxx>; "Peter Ding" <pding@xxxxxxxxx>; "James" <james@xxxxxxxxxxxx>
Cc: "lab" <ccielab@xxxxxxxxxxxxxx>
Sent: Tuesday, October 12, 2004 9:25 AM
Subject: RE: regex question for bgp



John,


How did you test it? See the below output from a route-server:

route-server-ap.cwidc>sh ip bgp reg ^4694(_[0-9]+)?$
BGP table version is 87748242, local router ID is 64.56.160.18
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
*>i0.0.0.0          64.56.160.10                 1000      0 4694 i
* i                 64.56.160.11                 1000      0 4694 i
* i4.0.0.0          64.56.160.11                 1000      0 4694 3356 i
* i                 64.56.160.10                 1000      0 4694 3356 i
*>i                 64.56.160.5                  1000      0 4694 3356 i
* i                 64.56.160.5                  1000      0 4694 3356 i
* i8.0.0.0          64.56.160.10                 1000      0 4694 3356 i
* i                 64.56.160.11                 1000      0 4694 3356 i
*>i                 64.56.160.5                  1000      0 4694 3356 i
* i                 64.56.160.5                  1000      0 4694 3356 i
* i15.208.32.0/20   64.56.160.5                  1000      0 4694 151 i
*>i                 64.56.160.5                  1000      0 4694 151 i
* i                 64.56.160.10                 1000      0 4694 151 i
* i                 64.56.160.11                 1000      0 4694 151 i
* i15.211.160.0/20  64.56.160.5                  1000      0 4694 151 i
* i                 64.56.160.11                 1000      0 4694 151 i
* i                 64.56.160.10                 1000      0 4694 151 i
*>i                 64.56.160.5                  1000      0 4694 151 i
--More--

That matches it's connected AS of 4694 plus one more AS in the path.


Brian McGahan, CCIE #8593 bmcgahan@xxxxxxxxxxxxxxxxxxxxxx

Internetwork Expert, Inc.
http://www.InternetworkExpert.com
Toll Free: 877-224-8987 x 705
Outside US: 775-826-4344 x 705
24/7 Support: http://forum.internetworkexpert.com
Live Chat: http://www.internetworkexpert.com/chat/


-----Original Message-----
From: nobody@xxxxxxxxxxxxxx [mailto:nobody@xxxxxxxxxxxxxx] On Behalf
Of
John Matus
Sent: Monday, October 18, 2004 10:19 PM
To: Peter Ding; 'James'
Cc: 'lab'
Subject: Re: regex question for bgp

i had tried ^5(_[0-9]+)?$ but that did not work   <stollen from
internetworkexperts labs>


Regards,


John D. Matus
MCSE, CCNP
Office: 818-782-2061
Cell: 818-430-8372
jmatus@xxxxxxxxxxx
----- Original Message -----
From: "Peter Ding" <pding@xxxxxxxxx>
To: "'James'" <james@xxxxxxxxxxxx>; "'John Matus'"
<jmatus@xxxxxxxxxxx>
Cc: "'lab'" <ccielab@xxxxxxxxxxxxxx>
Sent: Monday, October 11, 2004 8:09 PM
Subject: RE: regex question for bgp


> How about this one? > > ^5(_[0-9]+)?$ > > PD > > -----Original Message----- > From: nobody@xxxxxxxxxxxxxx [mailto:nobody@xxxxxxxxxxxxxx] On Behalf
Of
> James
> Sent: Monday, October 11, 2004 7:49 PM
> To: John Matus
> Cc: lab
> Subject: Re: regex question for bgp
>
>
> On Mon, Oct 11, 2004 at 07:34:15PM -0700, John Matus wrote:
>> how would you solve the following requirement?
>>
>> R1 is in AS 1 and are connected to a bb router in AS 5.  you want
to
>> implement a filtering policy on R1 to only accept routes that come
>> from either AS 5 or an AS connected directly to AS 5.  so AS 5 can
be
>> in the as path as well as one more AS. how would you create a
regex
>> to satisfy this requirement?  i'm pretty stumped <not a regex pro>
>
> ^5_[0-9]*$
>
> HTH,
> -J
>
>
> --
> James Jun                                            TowardEX
> Technologies,
> Inc.
> Technical Lead                        Network Design, Consulting, IT
> Outsourcing
> james@xxxxxxxxxxxx                  Boston-based Colocation &
Bandwidth
> Services
> cell: 1(978)-394-2867           web: http://www.towardex.com , noc:
> www.twdx.net
>
>
_______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
>
>
_______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html


_______________________________________________________________________
Subscription information may be found at:
http://www.groupstudy.com/list/CCIELab.html