Paul,

Good question. Route-maps always combine match statements of the same
criteria to make them a logical OR. I was recently trying to do a similar
thing with community lists (match both) and I could not get ot to work. I
needed to make a community list with both communities.

ip community-list standard TEST permit 100:100 100:101

However, I don't see how you can do this with access-lists. A route-map with
the continue clause may be something to look into although I think those are
for outbound policies on neighbor statements.

On Tue, Aug 4, 2009 at 6:26 AM, prakash patel <[email protected]>wrote:

>  I cannot recall what is the defaul of route-map "match all " or "match
> any"
>
> ------------------------------
> From: [email protected]
> To: [email protected]
> Date: Tue, 4 Aug 2009 09:03:33 +0100
> Subject: [OSL | CCIE_RS] Conditional BGP default-originate route-maps
>
>
>
> Hi,
>
> I have been experimenting with conditional BGP default-originate
> route-maps. I would like to advertise a default route if route “a” AND route
> “b” are available. For some reason I am only able to configure a logical OR
> operation with a basic route map:
>
> access-list 1 permit 1.1.1.1
> access-list 1 permit 2.2.2.2
> !
> route-map CHECK_ROUTE_A_AND_B
>  match ip address 1
>  match ip address 2
> !
> router bgp 64512
>  neighbor 5.5.5.5 default-originate route-map CHECK_ROUTE_A_AND_B
>
> The IOS then converts the route-map to the following which is basically a
> logical OR:
>
> route-map CHECK_ROUTE_A_AND_B
>  match ip address 1 2
>
> The only way I have managed to get a conditional BGP default-originate
> working with a logical AND operation is the rather convoluted example below:
>
> track 1 ip route 1.1.1.1 255.255.255.255 reachability
> track 2 ip route 2.2.2.2 255.255.255.255 reachability
> !
> track 3 list boolean and
>  object 1
>  object 2
> !
> ip route 169.254.1.1 255.255.255.255 Null0 track 3
> !
> access-list 1 permit 169.254.1.1
> !
> route-map CHECK_ROUTE_A_AND_B permit 10
>  match ip address 1
>
> Does anyone know how I can achieve the same thing with a basic route-map?
>
> Many thanks
>
> Paul
>
>
> ------------------------------
> Windows Live Messenger: Thanks for 10 great years—enjoy free winks and
> emoticons. Get Them Now <http://clk.atdmt.com/UKM/go/157562755/direct/01/>
> ------------------------------
> Express your personality in color! Preview and select themes for Hotmail®. Try
> it 
> now.<http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=PID23391::T:WLMTAGL:ON:WL:en-US:WM_HYGN_express:082009>
>
> _______________________________________________
> For more information regarding industry leading CCIE Lab training, please
> visit www.ipexpert.com
>
>


-- 
Bryan Bartik
CCIE #23707 (R&S), CCNP
Sr. Support Engineer - IPexpert, Inc.
URL: http://www.IPexpert.com
_______________________________________________
For more information regarding industry leading CCIE Lab training, please visit 
www.ipexpert.com

Reply via email to