Re: Fwd: bgp reg-exp for directly connected costumers

From: Ben (bmunyao@gmail.com)
Date: Thu Sep 13 2007 - 13:19:40 ART


Scott,

I figured since "*" refers to zero or more characters, ^[0-9]*$ should
refer to both a null AS path as well as a single AS number. Perhaps I'm
missing something. Kindly advice if my assumption is off the mark.

Sincerely
Ben

On 9/13/07, Scott Morris <smorris@ipexpert.com> wrote:
>
> For your outgoing, if you want local routes only you'd use ^$ for an
> empty
> AS Path.
>
> HTH,
>
>
> Scott Morris, CCIE4 (R&S/ISP-Dial/Security/Service Provider) #4713, JNCIE
> #153, CISSP, et al.
> CCSI/JNCI-M/JNCI-J
> VP - Technical Training - IPexpert, Inc.
> IPexpert Sr. Technical Instructor
>
> A Cisco Learning Partner - We Accept Learning Credits!
>
> smorris@ipexpert.com
>
> Telephone: +1.810.326.1444
> Fax: +1.810.454.0130
> http://www.ipexpert.com
>
>
> -----Original Message-----
> From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
> Ben
> Sent: Thursday, September 13, 2007 3:55 AM
> To: Rich Collins
> Cc: Carlos Trujillo Jimenez; ccielab@groupstudy.com
> Subject: Re: Fwd: bgp reg-exp for directly connected costumers
>
> Carlos
>
> Sorry for the misleading answer I gave earlier. As Scott pointed out, the
> regex would not match neighboring AS only. Here are revised regex for the
> two situations.
>
> outgoing: ip as-path access-list 1 permit ^[0-9]*$
>
> incoming: ip as-path access-list 1 permit ^200(_[0-9]+)?$
>
> The above "outgoing" regex will match zero (locally generated) or one
> (neighbor) AS only, while the "incoming" will match AS200 or AS200 and its
> neighboring AS.
>
> HTH
> Ben
>
>
>
>
> On 9/13/07, Rich Collins <nilsi2002@gmail.com> wrote:
> >
> > That looks good to me or you could be more specific and use the AS 200
> > that you had in your first email. It might help with clarity when
> > looking at the configuration.
> >
> > ip as-path access-list 1permit ^200+(_[0-9]+)?$
> >
> > On 9/12/07, Carlos Trujillo Jimenez <nergal888@hotmail.com> wrote:
> > >
> > >
> > > what about this option applied inbound in routerB as a route-map or
> > > a filter-list but applied inbound.
> > >
> > > ip as-path access-list 1permit ^[0-9]+(_[0-9]+)?$
> > >
> > > Is this ok??
> > >
> > >
> > >
> > >
> > > >From: "Rich Collins" <nilsi2002@gmail.com>
> > > >Reply-To: "Rich Collins" <nilsi2002@gmail.com>
> > > >To: "Cisco certification" <ccielab@groupstudy.com>
> > > >Subject: Fwd: bgp reg-exp for directly connected costumers
> > > >Date: Wed, 12 Sep 2007 16:34:45 -0400
> > > >MIME-Version: 1.0
> > > >Received: from lists.groupstudy.com ([207.44.210.9]) by
> > > >bay0-mc7-f8.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668);
> > Wed,
> > > 12
> > > >Sep 2007 13:39:25 -0700
> > > >Received: (from sympa@localhost)by lists.groupstudy.com
> > > >(8.12.11.20060308/8.11.6) id l8CKdL5J002153;Wed, 12 Sep 2007
> > > >16:39:21
> > > -0400
> > > >Received: from groupstudy.com (www.groupstudy.com [209.51.144.7])by
> > > >lists.groupstudy.com (8.12.11.20060308/8.11.6) with ESMTP id
> > > >l8CKYi9d002087for <ccielab@lists.groupstudy.com>; Wed, 12 Sep 2007
> > > 16:34:44
> > > >-0400
> > > >Received: from groupstudy.com (groupstudy.com [127.0.0.1])by
> > > groupstudy.com
> > > >(8.12.11.20060308/8.12.11) with ESMTP id l8CKYo62025497GroupStudy
> > Mailer;
> > > >Wed, 12 Sep 2007 16:34:50 -0400
> > > >Received: (from listserver@localhost)by groupstudy.com
> > > >(8.12.11.20060308/8.12.11/Submit) id l8CKYokT025495for
> > > >ccielabxhiddenx; Wed, 12 Sep 2007 16:34:50 -0400
> > > >Received: from nz-out-0506.google.com (nz-out-0506.google.com
> > > >[64.233.162.229]) by groupstudy.com (8.12.11.20060308/8.12.11)
> > > with ESMTP
> > > >id l8CKYmKH025475 GroupStudy Mailer; Wed, 12 Sep 2007 16:34:48
> > > >-0400
> > > >Received: by nz-out-0506.google.com with SMTP id i1so222138nzh for
> > > ><ccielab@groupstudy.com>; Wed, 12 Sep 2007 13:34:46 -0700 (PDT)
> > > >Received: by 10.114.78.1 with SMTP id a1mr5862641wab.1189629285140;
> > Wed,
> > > >12 Sep 2007 13:34:45 -0700 (PDT)
> > > >Received: by 10.140.131.9 with HTTP; Wed, 12 Sep 2007 13:34:45
> > > -0700 (PDT)
> > > >X-Message-Delivery: Vj0zLjQuMDt1cz0wO2k9MDtsPTA7YT0w
> > > >X-Message-Info:
> > >
> > >
> >
> > >+wzvjddt7X37SwpUa0gksHTnN4/HAK9IPbn/2WLPUdgc9Tjn80tboZZ+cSaskBOdk63i7
> > >+t0q8N/a
> > 8dfAXFw9hnptr8JJyUH3
> > > >DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com
> > > ; s=beta;
> > > >
> > >
> > >
> >
> > >h=domainkey-signature:received:received:message-id:date:from:to:subje
> > >ct:in-r
> > eply-to:mime-version:content-type:references;
> > > > bh=MRpNArcXy7Z14Z3Ied7LtAqGdJRtb+9ocdQ6HVmuK1s=;
> > >
> > >
> >
> > >b=RWEJ8BtvB4mVLf7Pr7O0FLk6CDyYDpuWylYpeD58tQPLUFfCr+DAQWoS+X3mAhKabAW
> > >1TVDMAr
> >
> > nBvvwsW1ec0iiIXHw8nLLcZOdMKYhDE3v0Upc9dQ8W2fTQtU+mb1CHGKC/jMTHU3/pv2wL
> > nBvvwsW1ec0iiIXHw8nLLcZOdMKYhDE3v0Upc9dQ8W2fTQtU+8LohwpO
> > 4b5zQ6suwLL7gw5X4ewE=
> > > >DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta;
> > >
> > >
> >
> > >h=received:message-id:date:from:to:subject:in-reply-to:mime-version:c
> > >ontent-
> > type:references;
> > > >
> > >
> > >
> >
> > >b=pSsEzG7cc9ViI/hgXpD1cGBzEzHHyTz7WuIpRrdQlkBtJytntejA7f/6gByKYVo7pHT
> > >VLezI10
> >
> > /k7vDCpkgN70EzJmxxLjQIjmDjKyOFv9QpHXRNnIzAi57l5XkkRpn+D90JAaYxJCsgJnUD
> > 9RgpHSx
> > zZypVf7VzzRC4lSKBOfs=
> > > >References: <BAY136-F30A4EFF956E2CEB4492A0FE4C20@phx.gbl>
> > > ><4b4dda980709121333n340b2da4tc34dc6db99ceb69f@mail.gmail.com>
> > > >X-Converted-To-Plain-Text: from multipart/alternative by GroupStudy
> > > >X-Converted-To-Plain-Text: Alternative section used was text/plain
> > > >X-ASK-Info: Whitelist match [from nilsi2002@gmail\.com] (2007/09/12
> > > >16:34:50)
> > > >X-Loop: ccielab@groupstudy.com
> > > >X-Sequence: 1191
> > > >Errors-to: ccielab-owner@groupstudy.com
> > > >Precedence: bulk
> > > >X-no-archive: yes
> > > >List-Id: <ccielab.groupstudy.com>
> > > >List-Help: <mailto:sympa@groupstudy.com?subject=help>
> > > >List-Subscribe: <mailto:sympa@groupstudy.com
> > ?subject=subscribe%20ccielab>
> > > >List-Unsubscribe:
> > > ><mailto:sympa@groupstudy.com?subject=unsubscribe%20ccielab>
> > > >List-Post: <mailto:ccielab@groupstudy.com>
> > > >List-Owner: <mailto:ccielab-request@groupstudy.com>
> > > >Return-Path: ccielab-owner@groupstudy.com
> > > >X-OriginalArrivalTime: 12 Sep 2007 20:39:25.0748 (UTC)
> > > >FILETIME=[020D1F40:01C7F57D]
> > > >
> > > >For action 1 what about ?:
> > > >
> > > >ip as-path access-list 1 permit ^[0-9]*$ (This covers routes
> > > >generated from directly connected AS's and also locally generated
> > > >prefixes.
> > > >
> > > >neighbor B.B.B.B filter-list 1 out
> > > >
> > > >Rich
> > > >
> > > >On 9/12/07, Carlos Trujillo Jimenez <nergal888@hotmail.com> wrote:
> > > > >
> > > > > Hi all.
> > > > >
> > > > > Im quite confused, please if someone helps me clarify, in the
> > > following
> > > > > scenario think both solutions will work.
> > > > >
> > > > > Scenario:
> > > > >
> > > > >
> > >
> > >
> >
> > >(AS500)ROUTERX---------------------(AS200)ROUTERA--------------------
> > >-------
> > ----ROUTERB(AS300)
> > > > >
> > > > >
> > > > > ROUTERA is forming an EBGP peering relationship ith both ROUTERB
> > > > > and ROUTERX.
> > > > >
> > > > > Action1. (configuration only in ROUTERA) I want to RouterA send
> > > > > only its locally originated prefixes, as well
> > > as
> > > > > prefixes ORIGINATED from his directly connected cosumters to
> > > > > router
> > B.
> > > > >
> > > > > ROUTERA:
> > > > >
> > > > > ip as-path access-list 1 permit ^200_[0-9]*$
> > > > >
> > > > > route-map ONLY-AS200-ANDCOSTUMERS match as-path 1
> > > > >
> > > > > router bgp 200
> > > > > neighbor ROUTERB route-map ONLY-AS200-COSTUMERS out
> > > > >
> > > > >
> > > > > Action2.(configuration only in ROUTERB) I want the same purpose
> > > > > as action 1 but only configuring it at
> > > ROUTERB,
> > > > > mean
> > > > > only recibe prefixes originates by its neighbor routerA as 200,
> > > > > and
> > > its
> > > > > directly connected costumers
> > > > >
> > > > > ROUTERB:
> > > > > ip as-path access-list 1 permit ^200_[0-9]*$
> > > > >
> > > > > route-map ONLY-AS200-ANDCOSTUMERS match as-path 1
> > > > >
> > > > > router bgp 300
> > > > > neighbor ROUTERA route-map ONLY-AS200-COSTUMERS in
> > > > >
> > > > > The as-path access-list is the same in both actions, but with
> > > > > the
> > > route
> > > > > map
> > > > > apliedd in the first outbound, and in the second inbound,
> > summarizing
> > > in
> > > > > the
> > > > > sender applied outbound and in the receiber applied inbound.
> > > > >
> > > > > Please correct me if Im wrong with this one.
> > > > >
> > > > > ________________________________________________________________
> > > > > _ Charla con tus amigos en lmnea mediante MSN Messenger:
> > > > > http://messenger.latam.msn.com/
> > > > >
> > > > >
> > > ____________________________________________________________________
> > > ___
> > > > > Subscription information may be found at:
> > > > > http://www.groupstudy.com/list/CCIELab.html
> > > >
> > > >___________________________________________________________________
> > > >____ Subscription information may be found at:
> > > >http://www.groupstudy.com/list/CCIELab.html
> > >
> > > _________________________________________________________________
> > > MSN Amor: busca tu = naranja http://latam.msn.com/amor/
> >
> > ______________________________________________________________________
> > _ Subscription information may be found at:
> > http://www.groupstudy.com/list/CCIELab.html
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html



This archive was generated by hypermail 2.1.4 : Sat Oct 06 2007 - 12:01:11 ART