I think following is AND condition,
route-map ADV permit 10
match ip addr prefix tarck1
match ip addr prefix track2
On Sat, Aug 29, 2009 at 4:36 AM, Sagar Rane <sagar.ccie_at_gmail.com> wrote:
> Thanks for trying that, as I said I cannot get this to work :).
>
> Please experts out there if you can provide a solution to meet this
> requirement below.
>
> 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.
>
> Regards,
> Sagar
>
> On Sat, Aug 29, 2009 at 8:36 AM, Ahmed Ejaz <aahmedejaz_at_gmail.com> wrote:
>
> > I have tried both the solutions and both doesn't work. As soon as the
> first
> > statement is matched it exits. If i specify the first prefix in the
> > route-map along with another prefix as divin said and shut down that
> > interface, it does the same thing.
> >
> > Ahmed.
> >
> > On Sat, Aug 29, 2009 at 12:04 PM, Ahmed Ejaz <aahmedejaz_at_gmail.com
> >wrote:
> >
> >> Hi, mine doesn't work :) i am labbing it up ... will let u know
> >>
> >> Ahmed
> >>
> >> On Sat, Aug 29, 2009 at 11:59 AM, Sagar Rane <sagar.ccie_at_gmail.com
> >wrote:
> >>
> >>> Hi Ahmed,
> >>>
> >>> I have tried it and it doesn't work, just see that logic, the exist
> match
> >>> crieteria is met , avertise map will advertised it. Now give it a
> thought,
> >>> if only tracl1 prefix is avilable , it meets the condition from
> route-map
> >>> line 0 and doesn't go to line 20.
> >>>
> >>> Hence 192.168 is advertised.
> >>>
> >>> Have you tried it and has it worked for you?
> >>>
> >>> Regards,
> >>> Sagar
> >>>
> >>> On Sat, Aug 29, 2009 at 7:21 AM, Ahmed Ejaz <aahmedejaz_at_gmail.com
> >wrote:
> >>>
> >>>> I think the goal is to advertise the 192 route if both 10 and 20
> >>>> networks in the routing table exist. What you have mentioned is same
> as my
> >>>> config i-e I am matching 2 networks in one prefix list and you are
> matching
> >>>> 2 networks in 2 prefix lists but the route-map will do the same as
> both the
> >>>> matches are made in a single statement. If the requirement was to
> advertise
> >>>> the 192 network if either 10 or 20 exist (one of them) then the route
> map
> >>>> would change for example:
> >>>>
> >>>> route-map ADVERTISE permit 10
> >>>> match ip address prefix TRACK1
> >>>>
> >>>> route-map ADVERTISE permit 20
> >>>> match ip address prefix TRACK2
> >>>>
> >>>> REgards
> >>>>
> >>>> Ahmed.
> >>>>
> >>>> On Sat, Aug 29, 2009 at 11: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
>
> _______________________________________________________________________
> 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 - 07:27:42 ART
This archive was generated by hypermail 2.2.0 : Tue Sep 01 2009 - 05:43:57 ART