From: Arunas Baltrunas (arunas.baltrunas@gmail.com)
Date: Thu Aug 14 2008 - 11:04:59 ART
i have tried this in my lab and it works:
#R5
router bgp 200
bgp router-id 20.1.5.5
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 20.1.1.1 remote-as 200
neighbor 20.1.1.1 update-source Loopback0
!
address-family ipv4
neighbor 20.1.1.1 activate
neighbor 20.1.1.1 send-community
neighbor 20.1.1.1 default-originate route-map SET-COM
exit-address-family
!
route-map SET-COM permit 10
set community 1111:1111
!
on R1
R1#sho ip bgp 0.0.0.0
BGP routing table entry for 0.0.0.0/0, version 27
Paths: (1 available, best #1, table Default-IP-Routing-Table)
Advertised to update-groups:
1 2
Local, (Received from a RR-client)
20.1.5.5 (metric 66) from 20.1.5.5 (20.1.5.5)
Origin IGP, metric 0, localpref 100, valid, internal, best
Community: 1111:1111
i confirm that neighbor route map does nothing to defaul route originate
On 8/14/08, Igor Manassypov <imanassypov@rogers.com> wrote:
>
> Hey Huan,
> - I agree with you, although it is somewhat counter-intuitive. By the looks
> of it, 'route-map' out happens before the default origination...
>
> Would be great if someone shared any ideas,
>
> Thanks
>
> Huan Pham <Huan.Pham@peopletelecom.com.au> wrote:
> It looks like that the default route originated conditionally is subject
> to the CONDITION route-map only. It does not go through the route-map
> SET-COMMUNITY.
>
> You can use set community (or whatever other set statements) under the
> route-map CONDITION to change the attributes for the default route.
>
> I cannot find the info in Cisco DOC about the BGP behavior in this case.
> Would be great if someone can shed some more light.
>
> Cheers,
>
> Huan
>
> -----Original Message-----
> From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
> Igor Manassypov
> Sent: Thursday, 14 August 2008 5:55 AM
> To: ccielab@groupstudy.com
> Subject: setting community on originated default routes
>
> Hello,
>
> I am trying to set a community on all routes originated in my as,
> including a default which I am conditionally pushing out. However, the
> conditionally-originated default never gets any community tag... a
> portion of my community-setting router is below. Any suggestions why the
> originated default does not get the community setting?
>
> router bgp ccc
> neighbor 1.2.3.4 send-community
> neighbor 1.2.3.4 default-originate route-map CONDITION
> neighbor 1.2.3.4 route-map SET-COMMUNITY out
>
> route-map SET-COMMUNITY permit 10
> set community 1111:11
>
>
> Blogs and organic groups at http://www.ccie.net
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
>
>
>
>
>
>
>
>
>
>
> Igor M., M.Eng, P.Eng
> Network Architect
>
>
> Blogs and organic groups at http://www.ccie.net
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
Blogs and organic groups at http://www.ccie.net
This archive was generated by hypermail 2.1.4 : Mon Sep 01 2008 - 08:15:30 ART