BGP advertise-map question

From: keith tokash (ktokash@hotmail.com)
Date: Tue Apr 22 2008 - 13:13:17 ART


I haven't found this in the archives, but maybe I'm just blind. I'm trying to
set BGP conditional advertising up to use a logical "AND" in the conditions.
Specifically I have 2 loopbacks that I want to test, and if *either one* is
not in the route table, the prefix in the exist-map is withdrawn. I've tried
several methods to accomplish this, but none work, and I can't find any
examples online, leading me to question if it's possible. The only thing I've
accomplished (time and again) is a logical OR, wherein if both loopbacks
called in the conditional map are down, the exist-map withdraws its route.

I have two acls calling two specific /32s right now, and both acls are called
by the same route-map statement (logical OR, I know it's wrong but already
tried other ways). Is this even possible?

#1 -- FAIL
ip access-list standard SPEC_6
 permit 6.6.6.6
ip access-list standard SPEC_66
 permit 6.6.6.66
ip prefix-list AGG_6 seq 5 permit 6.6.6.0/24
!
route-map EXMAP permit 10
 match ip address SPEC_6
!
route-map EXMAP permit 11
 match ip address SPEC_66
!
route-map ADMAP permit 10
 match ip address prefix-list AGG_6
 neighbor 12.1.1.2 advertise-map ADMAP exist-map EXMAP

#2 -- FAIL
ip access-list standard SPEC_6

 permit 6.6.6.6
 permit 6.6.6.66
ip prefix-list AGG_6 seq 5 permit 6.6.6.0/24

!

route-map EXMAP permit 10

 match ip address SPEC_6

!

route-map ADMAP permit 10

 match ip address prefix-list AGG_6
neighbor 12.1.1.2 advertise-map ADMAP exist-map EXMAP

#3 -- FAIL
ip access-list standard SPEC_6

 permit 6.6.6.6

ip access-list standard SPEC_66

 permit 6.6.6.66

ip prefix-list AGG_6 seq 5 permit 6.6.6.0/24

!

route-map EXMAP permit 10

 match ip address SPEC_6 SPEC_66

route-map ADMAP permit 10

 match ip address prefix-list AGG_6

neighbor 12.1.1.2 advertise-map ADMAP exist-map EXMAP



This archive was generated by hypermail 2.1.4 : Thu May 01 2008 - 08:25:51 ART