bgp reg-exp for directly connected costumers

From: Carlos Trujillo Jimenez (nergal888@hotmail.com)
Date: Wed Sep 12 2007 - 15:11:09 ART


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.



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