Hi ,
Thanks for the reply.
1) Is match-all option available with route-map, because I thought it is
availble only for class-maps (Correct me if I am wrong)
2) When you use match ip address 1 and match ip address 2 in different
lines, we think it is AND but what actually happends is that it still makes
a decision as OR. Just try it if you have access to a router, put in the
route-map and then do sh route-map it comes in one line hence gets treated
as OR.
Regards,
Sagar
On Sat, Aug 29, 2009 at 7:15 AM, Divin Mathew John <divinjohn_at_gmail.com>wrote:
> Wont this trigger the advertise-map if one route is there in the routing
> table?
>
> i thinkthis would do the dew.
>
> ip prefix-list TRACK1 permit 10.1.1.0/24
> ip prefix-list TRACK2 permit 20.2.2.2/32
> ip prefix-list ADVER permit 192.168.10.0/24
>
> route-map ADVERTISE permit 10
> match ip address prefix ADVER
>
> route-map EXIST match-all permit 10
> match ip address prefix TRACK1
> match ip address prefix TRACK2
>
> router bgp xyz
> advertise-map ADVERTISE exist-map EXIST
>
>
> On Sat, Aug 29, 2009 at 11:42 AM, Ahmed Ejaz <aahmedejaz_at_gmail.com> wrote:
>
>> Try this:
>>
>> ip prefix-list TRACK permit 10.1.1.0/24
>> ip prefix-list TRACK permit 20.2.2.2/32
>> ip prefix-list ADVER permit 192.168.10.0/24
>>
>> route-map ADVERTISE permit 10
>> match ip address prefix ADVER
>>
>> route-map EXIST permit 10
>> match ip address prefix TRACK
>>
>> router bgp xyz
>> advertise-map ADVERTISE exist-map EXIST
>>
>> HTH
>>
>> Ahmed
>>
>> On Sat, Aug 29, 2009 at 10:57 AM, Sagar Rane <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 and 20.2.2.2/32) and only if both routes are
>> > present,
>> > it should originate a route advertisement of 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
>> >
>> > _______________________________________________________________________
>> > Subscription information may be found at:
>> > http://www.groupstudy.com/list/CCIELab.html
>>
>>
>> Blogs and organic groups at http://www.ccie.net
>>
>> _______________________________________________________________________
>> Subscription information may be found at:
>> http://www.groupstudy.com/list/CCIELab.html
>>
>>
>>
>>
>>
>>
>>
>>
>
>
> --
>
> Sent from Cochin, KL, India
> Dalton Camp <http://www.quotationspage.com/quote/26252.html> - "Politics
> is made up largely of irrelevancies."
Blogs and organic groups at http://www.ccie.net
Received on Sat Aug 29 2009 - 07:53:51 ART
This archive was generated by hypermail 2.2.0 : Tue Sep 01 2009 - 05:43:57 ART