From: Narbik Kocharians (narbikk@gmail.com)
Date: Fri Nov 23 2007 - 14:04:04 ART
The other router should tag the routes (for example) and send you the route
with that community attached as follows:
*On R2*
R2(config)#access-list 2 permit 20.1.2.0 0.0.0.255
R2(config)#route-map TST permit 10
R2(config-route-map)#match ip addr 2
R2(config-route-map)#set community 2
R2(config)#route-map TST permit 20
*Note the above command "set community" tags the route/s identified in the
access-list.*
R2(config)#router bgp 200
R2(config-router)#neighbor 10.1.12.1 send-community
R2(config-router)#neighbor 10.1.12.1 route-map TEST out
Once the routes are tagged and sent to R1, R1 should be able to see and
match on the community tags in the route-map and set..
*Note R1 can display the routes via their assigned community tags:*
* *
*On R1*
*R1#Show ip bgp community 2*
* *
BGP table version is 18, local router ID is 1.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i -
internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 20.1.2.0/24 10.1.12.2 0 0 200
i
* *
*Note these are the routes that R2 tagged using community 2.*
* *
*On R1*
R1(config)#ip community-list standard TST2 permit 2
R1(config)#route-map TEST permit 10
R1(config-route-map)#match community TST2
R1(config-route-map)#set *whatever turns you on*
* *
R1(config)#route-map TEST permit 20
R1(config)#router bgp 100
R1(config-router)#neighbor 10.1.12.2 send-community
R1(config-router)#neighbor 10.1.12.2 route-map TEST in
I hope that helps
On 11/23/07, Narbik Kocharians <narbikk@gmail.com> wrote:
>
> Can you see the community on the router that you are trying to match the
> community? you can do a "Show ip bgp community" command to reveal that.
>
> On 11/23/07, Vladimir Sousa <vladrac@gmail.com> wrote:
> >
> > Im trying to match a community string on a route-map in a BGP neighbor
> > and
> > its not working
> >
> > basically:
> >
> > r6#sh ip bgp 192.0.8.0/21
> > BGP routing table entry for 192.0.8.0/21, version 28
> > Paths: (2 available, best #2, table Default-IP-Routing-Table)
> > Advertised to non peer-group peers:
> > 10.0.200.2
> > 200 100, (aggregated by 100 192.0.12.1)
> > 10.0.200.2 from 10.0.200.2 (10.0.2.1)
> > Origin IGP, localpref 100, valid, external
> > Community: 10:10
> >
> > R2 - > R6
> >
> > neighbor 10.0.200.2 route-map rm_from_r2 in
> >
> > route-map rm_from_r2 permit 10
> > match community 10:10
> > set weight 10000
> >
> > Why the weight is not being set?
> >
> > _______________________________________________________________________
> > Subscription information may be found at:
> > http://www.groupstudy.com/list/CCIELab.html
> >
>
>
>
> --
> Narbik Kocharians
> CCIE# 12410 (R&S, SP, Security)
> CCSI# 30832
> www.Net-WorkBooks.com <http://www.net-workbooks.com/>
-- Narbik Kocharians CCIE# 12410 (R&S, SP, Security) CCSI# 30832 www.Net-WorkBooks.com
This archive was generated by hypermail 2.1.4 : Sat Dec 01 2007 - 06:37:31 ART