RE: bgp reg-exp for directly connected costumers

From: Scott Morris (smorris@ipexpert.com)
Date: Wed Sep 12 2007 - 16:36:53 ART


The * though at the end of your expression would allow any number of AS
entries.

route-server>sh ip bgp reg ^7018(_[0-9]+)*$
BGP table version is 344514, local router ID is 12.0.1.28
Status codes: s suppressed, d damped, h history, * valid, > best, i -
internal,
              S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network Next Hop Metric LocPrf Weight Path
* 3.0.0.0 12.123.33.249 0 7018 701 703 80
i
* 12.123.134.124 0 7018 701 703 80
i
* 12.123.139.124 0 7018 701 703 80
i
* 12.123.21.243 0 7018 701 703 80
i
* 12.123.17.244 0 7018 701 703 80
i
* 12.123.9.241 0 7018 701 703 80
i
* 12.123.25.245 0 7018 701 703 80
i
* 12.123.45.252 0 7018 701 703 80
i
*> 12.123.1.236 0 7018 701 703 80
i
* 12.123.142.124 0 7018 701 703 80
i
* 12.123.137.124 0 7018 701 703 80
i
* 12.123.41.250 0 7018 701 703 80
i
* 12.123.145.124 0 7018 701 703 80
i
* 12.123.37.250 0 7018 701 703 80
i
* 12.123.5.240 0 7018 701 703 80
i
* 12.123.29.249 0 7018 701 703 80
i
* 12.123.13.241 0 7018 701 703 80
i
* 12.123.133.124 0 7018 701 703 80
i
* 4.0.0.0/9 12.123.33.249 0 7018 3356 i
* 12.123.139.124 0 7018 3356 i
* 12.123.134.124 0 7018 3356 I
(output truncated)

 
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: Wednesday, September 12, 2007 2:33 PM
To: Carlos Trujillo Jimenez
Cc: ccielab@groupstudy.com
Subject: Re: bgp reg-exp for directly connected costumers

Hi Carlos

The as-path ACL should be: ip as-path access-list 1 permit ^200(_[0-9]+)*$

IMO the two actions will achieve the same result.

Sincerely
Ben

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



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