RE: BGP Reg Expressions

From: MOLINA, MARTIN J (PBI) (mm1343@sbc.com)
Date: Tue Dec 10 2002 - 22:36:49 GMT-3


Thanks a lot for your response. I'll jump on a route-server.

-----Original Message-----
From: Brian McGahan [mailto:brian@cyscoexpert.com]
Sent: Tuesday, December 10, 2002 5:28 PM
To: MOLINA, MARTIN J (PBI); ccielab@groupstudy.com
Subject: RE: BGP Reg Expressions

Martin,

        Yes, both or those expressions would work. Usually there are

many ways to solve a problem with a regular expression. Another valid

answer would be _30(3|4)$ for example.

        A good way to practice your regular expressions is to try them

on a live route-server. A route-server is a dedicated box running BGP

that shows an ISP's view of the global routing table. They're most

useful to make sure that your prefixes are propagating properly

throughout the internet, but since the majority of them are cisco boxes,

you can 'show ip bgp regexp ...' to test your regular expressions.

For a listing of route-servers:

http://www.traceroute.org/#Route%20Servers

Try this one:

        All routes originated in AS 10, transited AS 100, and learned

from AS 1000, in one line. Assume that the prefix could have passed

through an arbitrary amount of AS's (or not).

HTH

Brian McGahan, CCIE #8593

Director of Design and Implementation

brian@cyscoexpert.com

CyscoExpert Corporation

Internetwork Consulting & Training

Voice: 847.674.3392

Fax: 847.674.2625

> -----Original Message-----

> From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf

Of

> MOLINA, MARTIN J (PBI)

> Sent: Tuesday, December 10, 2002 3:54 PM

> To: 'ccielab@groupstudy.com'

> Subject: BGP Reg Expressions

>

> Hello,

> If I wanted to construct 1 regular expression to identify routes

> originated

> by AS 303 or 304, would both of the following work:

> _(303 | 304)$

>

> _30[34]$

>

> Thanks

>

>

> Martin Molina

> Senior Network Engineer

> SBC (Pacific Bell) Internet Services

> CCNP CCDP

> desk: (925) 973-7774

> cell: (925) 216-5299

> .
.



This archive was generated by hypermail 2.1.4 : Fri Jan 17 2003 - 17:21:43 GMT-3