BGP Inject map

From: Tasuka Amano Hsu (tasuka@mac.com)
Date: Tue Jul 20 2004 - 05:42:37 GMT-3


After read the Ciscopress BGP design and Implementation,
Page 132 example of conditional injection

!
hostname R2
!
router bgp 100
   bgp inject-map AS200-specific exist-map AS200-aggregate
   neighbor 192.168.12.1 remote-as 100
   neighbor 192.168.12.1 send-community
   neighbor 192.168.23.3 remote-as 100
   neighbor 192.168.23.3 send-community
   neighbor 192.168.24.4 remote-as 200
!
ip bgp-community new-format
ip prefix-list AS200-R4 seq 5 permit 192.168.24.4/32
ip prefix-list Aggregate seq 5 permit 172.16.0.0/16
ip prefix-list Specific seq 5 permit 172.16.1.0/24
!
route-map AS200-specific permit 10
   set ip address prefix-list Specific
   set community 100:200 no-export
!
route-map AS200-aggregate permit 10
   match ip address prefix-list Aggregate
   match ip route-source AS200-R4
!

I think the route-map should be
!
route-map AS-specific permit 10
   match ip address prefix-list Specific
   set community 100:200 no-export
! This meaning when the inject-map match the ip address prefix
172.16.1.0/24 then set the community to 100:200 no-export
!
route-map AS200-aggregate permit 10
   match ip address prefix-list Aggregate
   set ip route-source AS200-R4
! This meaningggg when the exist-map match the ip address prefix
172.16.0.0/16 then set the route source to 192.168.24.4
!
And also on R3 configuration on pae 133
!
hostname R3
!
router bgp 100
   bgp inject-map AS200-specific exist-map AS200-aggregate
   neighbor 192.168.13.1 remote-as 100
   neighbor 192.168.13.1 send-community
   neighbor 192.168.23.2 remote-as 100
   neighbor 192.168.23.2 send-community
   neighbor 192.168.35.5 remote-as 200
!
ip bgp-community new-format
ip prefix-list AS200-R5 seq 5 permit 192.168.35.5/32
ip prefix-list Aggregate seq 5 permit 172.16.0.0/16
ip prefix-list Specific seq 5 permit 172.16.2.0/24
!
route-map AS200-specific permit 10
   set ip address prefix-list Specific
   set community 100:200 no-export
!
route-map AS200-aggregate permit 10
   match ip address prefix-list Aggregate
   match ip route-source AS200-R5
!

the route-map should be
!
route-map AS200-specific permit 10
   match ip address prefix=list Specific
   set community 100:200 no-export
!
route-map AS200-aggregate permit 10
   match ip address prefix-list Aggregate
   set ip route-source AS200-R5
!

To make sure the
Right ?

Sincerely,
Tasuka



This archive was generated by hypermail 2.1.4 : Sun Aug 01 2004 - 10:11:59 GMT-3