Test your expressions,

From: Andy Cole (Andy.Cole@foremostfarms.com)
Date: Tue Dec 11 2007 - 16:03:48 ART


You can go to http://www.nanog.org/lookingglass.html

Log into one of their sites and Do:

sh ip bgp quote-regexp [regular express to test]

And see what shows up.

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
Bhaskar Sivanesan
Sent: Tuesday, December 11, 2007 12:45 PM
To: Athaide, Dwayne; Cisco certification
Subject: Re:

the regexp ^600_620(_[0-9])*$ will match as path like

600 620 2 3 4 5
600 620 2
600 620

i.e after 620 there can be no AS or one or more occurence of single
digit AS numbers. For your requirement

you can use
^600_620_([0-9])*$ or the one quoted by oyu can be used...

HTH

cheers

----- Original Message ----
From: "Athaide, Dwayne" <DAthaide@eprod.com>
To: Cisco certification <ccielab@groupstudy.com>
Sent: Monday, December 10, 2007 3:43:01 PM
Subject:

Hi

I am exp with regexp and don't quite follow how the following regexp
only matches the one route

  Network Next Hop Metric LocPrf Weight Path

*> 172.16.1.0/24 10.10.10.5 0 600 620 610
i

*> 172.16.2.0/24 10.10.10.5 0 600 620 610
i

*> 172.16.3.0/24 10.10.10.5 0 600 620 610
i

*> 172.16.4.0/24 10.10.10.5 0 600 620 610
i

*> 192.168.1.0 10.10.10.5 0 600 620 i

R7#sho ip bgp regexp ^600_620(_[0-9])*$

  Network Next Hop Metric LocPrf Weight Path

*> 192.168.1.0 10.10.10.5 0 600 62

And would this regexp ^600(_[0-9]*)$ match all the network above. What
am I doing wrong as I can only get the 192.168.1.0 network matched

Thanks



This archive was generated by hypermail 2.1.4 : Tue Jan 01 2008 - 12:04:30 ARST