From: Devender Singh (devender.singh@xxxxxxxxxxxxxx)
Date: Mon Feb 05 2001 - 00:50:00 GMT-3
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:39 GMT-3