From: Daniel Sheedy (dansheedy@gmx.net)
Date: Sun Jul 25 2004 - 08:40:41 GMT-3
Hello Stefan,
As an example between the two...
show ip bgp regexp _254_
Would list a path with AS 254 somewhere in it.
All very nice...
But what if we are playing around on some of those internet routers with a
squillion routes? And we don't want to see EVERY match, just some specific
subnets?
If we go:
sh ip bgp regexp _100_ | include 28.119.16.0
The regexp doesnt know where our regexp ends, and where the subnet starts.
So it doesnt work! Or rather... it works how it was designed, but not how
we would like it to work.
Therefore, we can use this wonderful little command:
sh ip bgp quote-regexp "_100_" | include 28.119.16.0
Now we have fenced off our regexp in the quotes, and can also narrow down
the returned results to certain subnets.
Way cool huh?
Ciao,
Dan Sheedy
----- Original Message -----
From: "Stefan Brunner" <s_brunner1@gmx.net>
To: <ccielab@groupstudy.com>
Sent: Sunday, July 25, 2004 11:11 AM
Subject: BGP regexp vs quote-regexp
> Hi,
>
> Can anyone please explain to me what the difference between these two
> commands is ?
>
> show ip bgp quote-regexp
>
> show ip bgp regexp
>
>
> Thanks, Stefan
>
> --
> +++ GMX DSL-Tarife 3 Monate gratis* +++ Nur bis 25.7.2004 +++
> Bis 24.000 MB oder 300 Freistunden inkl. http://www.gmx.net/de/go/dsl
>
> _______________________________________________________________________
> Please help support GroupStudy by purchasing your study materials from:
> http://shop.groupstudy.com
>
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
This archive was generated by hypermail 2.1.4 : Sun Aug 01 2004 - 10:12:02 GMT-3