RE: BGP community attribute q's

From: mani poopal (mani_ccie@yahoo.com)
Date: Wed Nov 03 2004 - 21:43:27 GMT-3


Hi Brian,
 
Thanks for the prompt response. I never thought you can give a route-map with network command in bgp. So with your config, do we still need, (config-router)#nighbor R3/R4/R1 send community command.[or do we need this command only for ibgp or ebgp peers-I ASSUME WE HAVE TO GIVE THIS COMMAND ONLY FOR IBGP PEERS]. I will test this later. By the way, your responses are very good like your IE-work book. I recommend your work book to every one. Like a gem. Another quick question, what book you are recommending for IPv6.
 
thanks
 
Mani

Brian McGahan <bmcgahan@internetworkexpert.com> wrote:
Mani,

You are setting the community in the output engine of BGP. You
need to set it in the input engine as you originate the network, like
below:

R2:
router bgp 200
network 53.53.53.0 mask 255.255.255.0 route-map NO-EXPORT
!
route-map NO-EXPORT permit 10
set community no-export

HTH,

Brian McGahan, CCIE #8593
bmcgahan@internetworkexpert.com

Internetwork Expert, Inc.
http://www.InternetworkExpert.com
Toll Free: 877-224-8987 x 705
Outside US: 775-826-4344 x 705
24/7 Support: http://forum.internetworkexpert.com
Live Chat: http://www.internetworkexpert.com/chat/

> -----Original Message-----
> From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf
Of
> mani poopal
> Sent: Wednesday, November 03, 2004 12:48 PM
> To: ccielab@groupstudy.com
> Subject: BGP community attribute q's
>
> Hi Group,
>
> I have a small question, any good answers are appreciated
>
> AS100 AS200
> AS300
> R1-----------------------------------------------R2, R3,
R4---------------
> -----------------------R5
> lo 1=53.53.53.53/24
> lo 2=63.63.6363/24
> (full mesh and R2--ebgp to
R1
> R3&R4--ebgp
to
> R5
>
> Assume you area advertising 53.53.53.53.0/24 and 63.63.63.0/24 at
> R2(connects to R1 via ebgp). The requirment says I should stop
> advertising 53.53.53.0/24 network to any other as.
> So from community attribute I thought of using no-export attribute.
> My configs:
> R2:
> router bgp 200
> neig R3&R4 remote-as 200
> neig R3&R4 route-map ABC out
> neig R3&R4 send community
> network 53&54 mask 255.255.255.0
>
> ip prefix-list setcomm 20 permit 53.53.53.0/24
>
> route-map ABC permit 10
> match ip prefix-list 20
> set community no-export
> route-map ABC permit 20
>
>
> SO WITH ABOVE CONFIGS, I THINK R3&R4 WILL NOT ADVERTISE THE
53.53.53.0/24
> NETWORK TO ANY OTHER EBGP PEERS(ANY OTHER AS). HOW CAN I TELL THE
ROUTER
> R2 (ONE OF THE LOCALLY GENERATED ROUTE) TO STOP THIS ROUTE TO
R1(ANOTHER
> DIRECTLY CONNECTED EBGP PEER). IS THERE IS ANY WAY TO USE COMMUNITY
FOR
> THIS AND WHAT ARE THE COMMANDS.
>
> thanks
>
> Mani
>
>
> B.ENG,A+,CCNA,CCNP,CCNP-VOICE, CSS1,CNA,MCSE
> (416)431 9929
> MANI_CCIE@YAHOO.COM
>
> ---------------------------------
> Do you Yahoo!?
> Check out the new Yahoo! Front Page. www.yahoo.com/a
>
>



This archive was generated by hypermail 2.1.4 : Thu Dec 02 2004 - 06:57:37 GMT-3