From: rehan u nedaria (rehannedaria@rediffmail.com)
Date: Fri Dec 13 2002 - 14:39:34 GMT-3
Hi Group
             Here is my question regarding bgp community i m 
receiving some routes from an AS.I want to remove the community 
which is been already set by the sending AS.I have no access no 
access to the sending AS.
The scenario looks some what like this.
           (R8)
             |
             |
             |
           (R1)-------(R2)-------(R4)
R8 in As 2
R1 in AS 1
R4 in As 4
R8 is sending two routes where the communities are set these 
routes have diffrent community.199.0.0.0 is set with the community 
no-adv.200.0.0.0 is set with community of no-export.
The idea is to remove the community at R1.These is the 
configuration i have applied on R8
router bgp 2
  no synchronization
  bgp log-neighbor-changes
  network 199.0.0.0
  network 200.0.0.0
  neighbor 219.100.1.1 remote-as 1
  neighbor 219.100.1.1 send-community
  neighbor 219.100.1.1 route-map test out
  no auto-summary
route-map test permit 10
  match ip address 66
  set community no-advertise
!
route-map test permit 20
  match ip address 67
  set community no-export
!
route-map test permit 30
access-list 66 permit 199.0.0.0 0.0.0.255
access-list 67 permit 200.0.0.0 0.0.0.255
This is the conf at R1
router bgp 1
  no synchronization
  bgp log-neighbor-changes
  neighbor 149.15.2.2 remote-as 1
  neighbor 149.15.2.2 update-source Loopback0
  neighbor 149.15.2.2 send-community
  neighbor 149.15.2.2 route-map test out (Neighbor 0f R2)
  neighbor 219.100.1.2 remote-as 2 (Neighbor of R8)
  neighbor 219.100.1.2 route-map test1 in
route-map test1 permit 10
  match ip address 20
  set community none
!
route-map test1 permit 20
route-map test permit 10
match ip address 10
set community none
access-list 10 permit 200.0.0.0 0.0.0.255
access-list 20 permit 199.0.0.0 0.0.0.255
route-map test permit 20
I have got through with no-export community and the route is 
advertise outside the AS.
But the no-adv community route is not working.The community 
attribute is been removed from the table at R1 but still the route 
is not advertised to any nieghbour.
Any help will be appriciated
Regards
Rehan
This archive was generated by hypermail 2.1.4 : Fri Jan 17 2003 - 17:21:45 GMT-3