Re: BGP question

From: Oliver Boehmer (oboehmer@xxxxxxxxx)
Date: Mon Jul 01 2002 - 10:22:32 GMT-3


   
At 12:51 01.07.2002 +0000, atul pawar wrote:
>Hi Guyes
>
>I have following setup
>
> AS1 AS2 AS3
>192.1682.2.3/24r1------------r2--------------r3-172.16.2.3/24
> ebgp ebgp
>
>I am trying to make AS2 a non-transit AS. I can achieve this by using
>following config at r1 so that r1 passes only locally generated networks
>to AS1 and AS3. But if I want to achieve the same result without using AS
>path access list .how can I do that? Any help on this will be appreciated.

There are for sure different ways of doing this.. One way would be to apply
the well-known community "no-export" to all incoming prefixes at your eBGP
peers. This will prevent the prefixes from ever leaving your own ASN
(requires "neighbor x.x.x.x send-community" on all your iBGP sessions):

router bgp 1
  bgp router-id 139.16.1.1
  neighbor 139.16.12.2 remote-as 5
  neighbor 139.16.12.2 route-map setcomm in
  neighbor x.x.x.x remote-as 1
  neighbor x.x.x.x send-community
!
route-map setcomm permit 10
  set community no-export additive
!

         oli



This archive was generated by hypermail 2.1.4 : Sat Sep 07 2002 - 19:36:16 GMT-3