RE: BGP Regular Expression Quizz

From: Jason Sinclair (sinclairj@xxxxxxxxxxxxxxx)
Date: Wed Dec 05 2001 - 02:18:19 GMT-3


   
It would depend on how the question was worded and what the intent was as
they are all correct, however they all do slightly different things, but
address your question,
Jason Sinclair
Manager, Network Support Group
POWERTEL
Ground Level, 55 Clarence Street,
SYDNEY NSW 2000
AUSTRALIA
office: + 61 2 8264 3820
mobile: + 61 2 416 105 858
* sinclairj@powertel.com.au

                -----Original Message-----
                From: Albert Lu [mailto:albert_ccie@yahoo.com]
                Sent: Wednesday, 5 December 2001 13:06
                To: 'Gregory W. Posey Jr.'
                Cc: ccielab@groupstudy.com
                Subject: RE: BGP Regular Expression Quizz

                Greg,

                I've tried it with ^7474.*13606$ and ^7474_.*_13606$ and
^7474 .* 13606$

                They all work. What is the most correct solution?

                Albert

                -----Original Message-----
                From: Gregory W. Posey Jr. [mailto:gposey@uaes.org]
                Sent: Wednesday, December 05, 2001 11:22 AM
                To: Albert Lu; ccielab@groupstudy.com
                Subject: RE: BGP Regular Expression Quizz

                I would think the appropriate regular expression would be...

                ^7474 .* 13606$
                Since .* is the same as all paths (according to Halabi)

                Thank you,
                Greg Posey Jr.
                CCIE #7981
                CCNP - Security Specialist
                Cisco Voice Access Specialist
                M.S. EE

                -----Original Message-----
                From: nobody@groupstudy.com [mailto:nobody@groupstudy.com]On
Behalf Of
                Albert Lu
                Sent: Tuesday, December 04, 2001 6:54 PM
                To: ccielab@groupstudy.com
                Subject: BGP Regular Expression Quizz

                Quick quizz on how well you guys know your Regular
Expressions.

                How can match a route that has originated from AS 13606 and
ending at AS
                7474

                An example would be

                   Network Next Hop Metric LocPrf Weight
Path
                * i209.37.145.0 216.14.195.13 1000 0
7474 701 7018
                13606 i

                My best attempt is:

                ^7474(_[0-9]+_)13606$

                It doesn't work

                Thanks

                Albert



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