From: Omer Ansari (omer@xxxxxxxxxx)
Date: Wed Jul 03 2002 - 20:41:16 GMT-3
Annu,
you are using _200_ to match a route coming directly from 200.
i see AS200 is adjacent.
try ^200.*
see bgp example at the end of the link:
http://www.cisco.com/univercd/cc/td/doc/product/software/ios122/122cgcr/ftersv_
c/ftsappx/tcfaapre.htm
let us know if this helps?
On Tue, 2 Jul 2002, Annu Roopa wrote:
> Group,
>
> I have a community related question and the scenario
> is as follows.What am i doing wrong ? Scenario is:
>
>
> (AS100)
> r11---------r8---------r10(AS 200)
> iBGP eBGP
>
> There are some Networks (196.196.10.0/175.10.10.0
> etc)coming via R10 to R8.I want to add a community
> string of 100:88 to all routes containing AS 200 and
> send it to R11 from R8.But somehow its not adding it
> rather adding 100:900 when i see it on R11. Whats
> wrong with my logic ?
>
> Here are my configs and show commands.
>
> R8#sr
> Building configuration...
> Current configuration:
> hostname r8
> !
> router bgp 100
> bgp router-id 8.1.1.1
> network 8.1.1.0 mask 255.255.255.0
> neighbor 11.1.1.1 remote-as 100
> neighbor 11.1.1.1 update-source Loopback0
> neighbor 11.1.1.1 next-hop-self
> neighbor 11.1.1.1 send-community
> neighbor 11.1.1.1 route-map address out
> neighbor 180.10.10.1 remote-as 200
> neighbor 180.10.10.1 ebgp-multihop 255
> neighbor 180.10.10.1 update-source Loopback0
> !
> ip bgp-community new-format
> ip as-path access-list 11 permit _200_
> ip as-path access-list 11 deny .*
> !
> route-map address permit 10
> match as-path 11
> set community 100:88
> !
> route-map address permit 20
> set community 100:900
>
> ------------------
> r8#sh ip bgp regexp _200_
> BGP table version is 12, local router ID is 8.1.1.1
> Status codes: s suppressed, d damped, h history, *
> valid, > best, i - internal
> Origin codes: i - IGP, e - EGP, ? - incomplete
>
> Network Next Hop Metric LocPrf
> Weight Path
> *> 10.1.1.0/24 180.10.10.1 0 200 300 i
> *>175.10.10.0/24 180.10.10.1 0 200 300 i
> *> 180.10.10.0/24 180.10.10.1 0 0 200 i
> *> 190.10.10.0/24 180.10.10.1 0 200 300 400
> i*> 192.168.1.0 180.10.10.1 0 200 300 i
> *> 196.196.1.0 180.10.10.1 0 200 300 i
> -------------------------------
> R11#b 196.196.1.0
> BGP routing table entry for 196.196.1.0/24, version 40
> Paths: (1 available, best #1, table
> Default-IP-Routing-Table)
> Advertised to non peer-group peers:
> 1.1.1.2
> 200 300
> 8.1.1.1 (metric 129) from 8.1.1.1 (8.1.1.1)
> Origin IGP, localpref 100, valid, internal, best
> Community:100:900
>
> R11#b 175.10.10.0
> BGP routing table entry for 175.10.10.0/24, version 38
> Paths: (1 available, best #1, table
> Default-IP-Routing-Table)
> Advertised to non peer-group peers:
> 1.1.1.2
> 200 300
> 8.1.1.1 (metric 129) from 8.1.1.1 (8.1.1.1)
> Origin IGP, localpref 100, valid, internal, best
> Community: 100:900
> ---------------------------
>
> Failed to troubleshoot it.Anyone with ideas.
>
>
>
>
>
> =====
> Thanks in advance for ur time and replies.
> Annu.
>
This archive was generated by hypermail 2.1.4 : Sat Sep 07 2002 - 19:36:18 GMT-3