06-25-2007 02:25 AM - edited 03-03-2019 05:35 PM
Hi all.
Has anyone got a clue as to whether it is possible to construct a regular expression to show only those prefixes who have an equal (or unequal) number of AS hops in their paths. These prefixes are coming from 2 different ISPs so may differ in terms of actual AS path, but that doesn't matter, it's the number of AS traversed I care about.
Thanks in advance, kind regards.
Solved! Go to Solution.
07-02-2007 05:54 AM
My previous regexp was only taking into account ibgp learnt prefixes ("i
This one will cope with both eBGP and iBGP learnt prefixes:
sh ip bgp quote-regexp "23456" | incl \* [i, ][0-9]+|>
Hope this helps,
07-02-2007 06:05 AM
Hi Harold,
THANKS!
That's exactly what I need!
I see I have to learn a lot how to work with the regular expessions...
BR,
Milan
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide