From: Devender Singh (devender.singh@xxxxxxxxxxxxxx)
Date: Thu Feb 08 2001 - 02:17:28 GMT-3
Yes, and sorry not to update you guys. I think It was the IOS. I tried same
thing on router with diffrent IOS it worked fine.
Devender Singh
BE(Hons), CCNP
IP Solution Specialist
-----Original Message-----
From: YJC [mailto:stiff.yu@datacraft-asia.com]
Sent: Thursday, 8 February 2001 3:30
To: Devender Singh; Ccielab@Groupstudy. Com (E-mail)
Subject: Re: BGP---communities and attribute-map
hi,
I have try it, it work normal,I think you perhaps have wrong access-list.
----- Original Message -----
From: Devender Singh <devender.singh@cmc.cwo.net.au>
To: Ccielab@Groupstudy. Com (E-mail) <ccielab@groupstudy.com>
Sent: Monday, February 05, 2001 11:50 AM
Subject: BGP---communities and attribute-map
> Q: --- BGP ----What am I missing ---- communities and attribute-map
>
> Pupose: To change the attribute of aggregate ( after using as-set keyword)
>
> Explanation: I was trying to change attributes of the aggregated address
and
> see if it works. Topology is as follows.
>
>
> r5 --------------- r1 --------- r2 --------r3
> ---------------------------- r4
> (as300) (-- as100 ---r2 is non-bgp router -) ( as200)
>
> I set the community when sending the routes from r5 to no-export. At r1, I
> aggregated some routes and set the community to none using attribute-map.
> My expectation was that only aggregated route will be exported to r4. But
> none of the routes appear even in r3. They do appear in " sh ip bgp", but
> as non-best routes.
> All little tricks like rebooting routers, clear ip bgp * were of no use.
>
> ********* r5 **********
> r5#sh run | beg bg
> router bgp 300
> no synchronization
> bgp log-neighbor-changes
> redistribute connected route-map Deny2
> neighbor 2.1.1.8 remote-as 400
> neighbor 2.1.1.8 soft-reconfiguration inbound
> neighbor 192.168.17.1 remote-as 100
> neighbor 192.168.17.1 send-community
> neighbor 192.168.17.1 soft-reconfiguration inbound
> neighbor 192.168.17.1 route-map setcomm out <-------------
> no auto-summary
> !
> route-map setcomm permit 10
> set community no-export
>
> ******** r1 **********
> router bgp 100
> no synchronization
> bgp log-neighbor-changes
> aggregate-address 2.0.0.0 254.0.0.0 as-set attribute-map commu <<---
> redistribute rip route-map local
> neighbor LOCAL peer-group
> neighbor LOCAL remote-as 100
> neighbor LOCAL update-source Loopback0
> neighbor LOCAL next-hop-self
> neighbor LOCAL send-community
> neighbor LOCAL soft-reconfiguration inbound
> neighbor 172.17.33.3 peer-group LOCAL
> neighbor 172.19.0.6 peer-group LOCAL
> neighbor 192.168.17.5 remote-as 300
> neighbor 192.168.17.5 soft-reconfiguration inbound
> no auto-summary
> !
> route-map commu permit 10 <-----------------------
> set community none
>
> **** sh ip bgp commun no-ex **********-
>
> r1#sh ip bgp comm no-ex
> BGP table version is 26, local router ID is 172.16.11.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
> *> 1.1.1.0/24 192.168.17.5 0 300 400 i
> *> 2.1.1.0/24 192.168.17.5 0 300 400 i
> *> 3.0.0.0 192.168.17.5 0 300 400 i
> *> 192.168.16.0 192.168.17.5 0 0 300 ?
> *> 192.168.17.0 192.168.17.5 0 0 300 ?
> *> 192.168.18.0 192.168.17.5 0 0 300 ?
> *> 192.168.19.0/28 192.168.17.5 0 0 300 ?
> *> 192.168.19.16/28 192.168.17.5 0 0 300 ?
> *> 192.168.19.32/28 192.168.17.5 0 0 300 ?
> *> 192.168.19.48/28 192.168.17.5 0 0 300 ?
>
> ********sh ip bgp *****************
> r1#sh ip bgp
> BGP table version is 26, local router ID is 172.16.11.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
> *> 1.1.1.0/24 192.168.17.5 0 300 400 i
> *> 2.0.0.0/7 0.0.0.0 32768 i
> <-------
> *> 2.1.1.0/24 192.168.17.5 0 300 400 i
> *> 3.0.0.0 192.168.17.5 0 300 400 i
> *> 172.16.11.0/24 0.0.0.0 0 32768 ?
> *> 172.16.12.0/24 0.0.0.0 0 32768 ?
> *> 172.16.22.0/24 172.16.12.2 1 32768 ?
> *> 172.17.0.0 172.16.12.2 1 32768 ?
> *> 172.18.0.0 172.16.12.2 1 32768 ?
> *> 172.19.0.0 172.16.12.2 2 32768 ?
> *> 192.168.16.0 192.168.17.5 0 0 300 ?
> *> 192.168.17.0 192.168.17.5 0 0 300 ?
> *> 192.168.18.0 192.168.17.5 0 0 300 ?
> *> 192.168.19.0/28 192.168.17.5 0 0 300 ?
> *> 192.168.19.16/28 192.168.17.5 0 0 300 ?
> *> 192.168.19.32/28 192.168.17.5 0 0 300 ?
> *> 192.168.19.48/28 192.168.17.5 0 0 300 ?
> *>i200.1.3.0 172.17.33.3 0 100 0 200 ?
> Network Next Hop Metric LocPrf Weight Path
> *>i201.0.1.0 172.17.33.3 0 100 0 200 ?
> *>i201.1.1.0 172.17.33.3 0 100 0 200 ?
> *>i201.1.2.0 172.17.33.3 0 100 0 200 ?
> *>i201.2.1.0 172.17.33.3 0 100 0 200 ?
>
> *********************** Till now it seems to work
*********************
>
> ********** r3 ***************
>
> !
> router bgp 100
> neighbor LOCAL peer-group
> neighbor LOCAL remote-as 100
> neighbor LOCAL update-source Loopback0
> neighbor LOCAL next-hop-self
> neighbor LOCAL soft-reconfiguration inbound
> neighbor 172.16.11.1 peer-group LOCAL
> neighbor 172.16.22.2 peer-group LOCAL
> neighbor 172.17.34.4 remote-as 200
> neighbor 172.17.34.4 soft-reconfiguration inbound
> neighbor 172.19.0.6 peer-group LOCAL
> !
> ********sh ip bgp **************
>
>
> r3#sh ip bgp
> BGP table version is 28, local router ID is 172.17.33.3
> 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
> * i1.1.1.0/24 172.16.11.1 100 0 300 400 i
> * i2.0.0.0/7 172.16.11.1 100 0 i
> * i2.1.1.0/24 172.16.11.1 100 0 300 400 i
> * i3.0.0.0 172.16.11.1 100 0 300 400 i
> * i172.16.11.0/24 172.16.11.1 0 100 0 ?
> * i172.16.12.0/24 172.16.11.1 0 100 0 ?
> * i172.16.22.0/24 172.16.11.1 1 100 0 ?
> * i172.17.0.0 172.16.11.1 1 100 0 ?
> *>i172.18.0.0 172.16.11.1 1 100 0 ?
> *>i172.19.0.0 172.16.11.1 2 100 0 ?
> * i192.168.16.0 172.16.11.1 0 100 0 300 ?
> * i192.168.17.0 172.16.11.1 0 100 0 300 ?
> * i192.168.18.0 172.16.11.1 0 100 0 300 ?
> * i192.168.19.0/28 172.16.11.1 0 100 0 300 ?
> * i192.168.19.16/28 172.16.11.1 0 100 0 300 ?
> * i192.168.19.32/28 172.16.11.1 0 100 0 300 ?
> * i192.168.19.48/28 172.16.11.1 0 100 0 300 ?
> *> 200.1.3.0 172.17.34.4 0 0 200 ?
> *> 201.0.1.0 172.17.34.4 0 0 200 ?
> *> 201.1.1.0 172.17.34.4 0 0 200 ?
> *> 201.1.2.0 172.17.34.4 0 0 200 ?
> *> 201.2.1.0 172.17.34.4 0 0 200 ?
> r3#
>
****************************************************************************
> *********
>
> Devender Singh
> BE(Hons), CCNP
> IP Solution Specialist
>
This archive was generated by hypermail 2.1.4 : Thu Jun 13 2002 - 10:28:41 GMT-3