Re: Conditional Advertise

From: Scott Morris <smorris_at_ine.com>
Date: Sat, 29 Aug 2009 10:36:09 -0400

Hmmmm, hmmm... So that is. Wonder when that happened. Old notes I
guess. :)

Ok, well, if one is local you can match a prefix-list and an interface,
although I'm not sure whether it would imply a false condition
though.... because one route wouldn't be AND the interface.

The "continue" condition is added in although I'm not sure that's a
mutually exclusive thing in this case.

In other words if you match prefix one and continue then yes you'd have
to match prefix 2 in the next clause to do anything... But what happens
if you match prefix two by itself? Would that still count.

Unfortunately, I have to head out to the circus with my little girls
right now, so I don't have time to lab that one up, but if someone else
wants to do it and report back that would be cool!

 

*Scott Morris*, CCIE/x4/ (R&S/ISP-Dial/Security/Service Provider) #4713,

JNCIE-M #153, JNCIS-ER, CISSP, et al.

JNCI-M, JNCI-ER

evil_at_ine.com

Internetwork Expert, Inc.

http://www.InternetworkExpert.com

Toll Free: 877-224-8987

Outside US: 775-826-4344

Knowledge is power.

Power corrupts.

Study hard and be Eeeeviiiil......

S Malik wrote:
> Natraajan,
> you are correct, ACL & Prefix-list under same clause don't go together.
> Please see following link quoting example and I wrongly understood
> AND/OR logic from there,
>
> http://books.google.com/books?id=-SM1Jeu07UYC&pg=RA1-PA273&lpg=RA1-PA273&dq=route-map+logical+AND&source=bl&ots=w8TcsNnJHf&sig=jvVGIhjeOBFS6njdfBjFzn4cnyY&hl=en&ei=fDGZSs_kAcuf8Qau8uSfBQ&sa=X&oi=book_result&ct=result&resnum=2#v=onepage&q=route-map%20logical%20AND&f=false
> <http://books.google.com/books?id=-SM1Jeu07UYC&pg=RA1-PA273&lpg=RA1-PA273&dq=route-map+logical+AND&source=bl&ots=w8TcsNnJHf&sig=jvVGIhjeOBFS6njdfBjFzn4cnyY&hl=en&ei=fDGZSs_kAcuf8Qau8uSfBQ&sa=X&oi=book_result&ct=result&resnum=2#v=onepage&q=route-map%20logical%20AND&f=false>
>
>
> On Sat, Aug 29, 2009 at 9:28 AM, Anantha Subramanian Natarajan
> <anantha.natarajan_at_gravitant.com
> <mailto:anantha.natarajan_at_gravitant.com>> wrote:
>
> Hi Scott,
>
> If I understand properly from you ,I tried that,it give an error
> mentioning u can't use the prefix-list and access-list on the same
> route-map sequence as below
>
> *"% prefix-list and access-list can not co-exist in one route-map
> sequence"*
>
> Thanks
>
> Regards
> Anantha Subramanian Natraajan
>
> On Sat, Aug 29, 2009 at 8:25 AM, Scott Morris <smorris_at_ine.com
> <mailto:smorris_at_ine.com>> wrote:
>
> If they're the same TYPE (e.g. two ACLs) then the router will
> redo things for you onto the same line, making the logic an
> OR. Kind of obnoxious if you ask me. :)
>
> But if you do two DIFFERENT things (e.g. one prefix list and
> one ACL) you can have the AND logic working.
>
>
>
>
> *Scott Morris*, CCIE/x4/ (R&S/ISP-Dial/Security/Service
> Provider) #4713,
>
> JNCIE-M #153, JNCIS-ER, CISSP, et al.
>
> JNCI-M, JNCI-ER
>
> evil_at_ine.com <mailto:evil_at_ine.com>
>
>
> Internetwork Expert, Inc.
>
> http://www.InternetworkExpert.com
> <http://www.internetworkexpert.com/>
>
> Toll Free: 877-224-8987
>
> Outside US: 775-826-4344
>
>
> Knowledge is power.
>
> Power corrupts.
>
> Study hard and be Eeeeviiiil......
>
>
>
>
>
> S Malik wrote:
>> One thing is sure that same line is O, when we assign two ACL under one
>> clause, it is shown in one line and treated as OR.
>>
>> On Sat, Aug 29, 2009 at 7:53 AM, Anantha Subramanian Natarajan <
>> anantha.natarajan_at_gravitant.com <mailto:anantha.natarajan_at_gravitant.com>> wrote:
>>
>>
>>> Hi Sugar Can,
>>>
>>> Can you try inside the route-map as below
>>>
>>> Match ip address prefix-list <prefix-list1><prefix-list2>
>>>
>>> I think whenever we specify the match criteria on same line ,it is an AND
>>> operation
>>>
>>> Regards
>>> Anantha Subramanian Natarajan
>>>
>>> On Sat, Aug 29, 2009 at 12:57 AM, Sagar Rane <sagar.ccie_at_gmail.com> <mailto:sagar.ccie_at_gmail.com> wrote:
>>>
>>>
>>>> Hi All,
>>>>
>>>> I have requirement where, bgp should check its bgp routing table for two
>>>> routes eq (10.1.1.0/24 <http://10.1.1.0/24> and 20.2.2.2/32 <http://20.2.2.2/32>) and only if both routes are
>>>> present,
>>>> it should originate a route advertisement of 192.168.10.0/24 <http://192.168.10.0/24>.
>>>>
>>>> I have tried advertise-map and exist map, but how can we used exist-map
>>>>
>>> to
>>>
>>>> check both the routes at the same time?
>>>>
>>>> Anyway how we can meet this requirement please let me know.
>>>>
>>>> Regards,
>>>> Sagar
>>>>
>>>>
>>>> Blogs and organic groups at http://www.ccie.net <http://www.ccie.net/>
>>>>
>>>> _______________________________________________________________________
>>>> Subscription information may be found at:
>>>> http://www.groupstudy.com/list/CCIELab.html
>>>>
>>> Blogs and organic groups at http://www.ccie.net <http://www.ccie.net/>
>>>
>>> _______________________________________________________________________
>>> Subscription information may be found at:
>>> http://www.groupstudy.com/list/CCIELab.html
>>>
>> Blogs and organic groups at http://www.ccie.net <http://www.ccie.net/>
>>
>> _______________________________________________________________________
>> Subscription information may be found at:
>> http://www.groupstudy.com/list/CCIELab.html

Blogs and organic groups at http://www.ccie.net
Received on Sat Aug 29 2009 - 10:36:09 ART

This archive was generated by hypermail 2.2.0 : Tue Sep 01 2009 - 05:43:57 ART