Re: Conditional Advertise

From: Anantha Subramanian Natarajan <anantha.natarajan_at_gravitant.com>
Date: Sat, 29 Aug 2009 07:52:32 -0500

Hi Ahmed and All,

  I tried the below configuration and it seem working ...May be I
misunderstood something ..Here by providing the topology below and the
related config

R2(172.16.2.2/30) ----- (172.16.2.1/30)R0(172.16.1.1/30) -----(
172.16.1.2/30)R1

R2 BGP AS number is 400,R0 AS number is 100 and R1 AS number is 300

R2 is advertising 192.168.1.0/24 ,While R0 is advertising 10.1.10/24 and
20.2.2.2/32.Configured R0 with an advertisemap mentioning to advertise
192.168.1.0/24 provoided only both 10.1.1.0/24 and 20.2.2.2/32 exist.When
shutdown 10.1.1.0/24,R1 is not able to see 192.168.1.0/24.Kindly see the
below config

*R2*

router bgp 400
 no synchronization
 bgp log-neighbor-changes
 network 192.168.1.0
 neighbor 172.16.2.1 remote-as 100
 no auto-summary
!
interface Loopback10
 ip address 192.168.1.1 255.255.255.0

*R0*
**
router bgp 100
 no synchronization
 bgp log-neighbor-changes
 network 10.1.1.0 mask 255.255.255.0
 network 20.2.2.2 mask 255.255.255.255
 network 192.168.10.0
 neighbor 172.16.1.2 remote-as 200
 neighbor 172.16.1.2 advertise-map ADVERTISE exist-map EXIST
 neighbor 172.16.2.2 remote-as 400
 no auto-summary
!
route-map ADVERTISE permit 10
 match ip address prefix-list NET3
!
route-map EXIST permit 10
 match ip address prefix-list NET1 NET2
!
ip prefix-list NET1 seq 5 permit 10.1.1.0/24
!
ip prefix-list NET2 seq 5 permit 20.2.2.2/32
!
ip prefix-list NET3 seq 5 permit 192.168.1.0/24
!
interface Loopback10
 ip address 10.1.1.1 255.255.255.0
!
interface Loopback20
 ip address 20.2.2.2 255.255.255.255

*R1*
**
router bgp 200
 no synchronization
 bgp log-neighbor-changes
 neighbor 172.16.1.1 remote-as 100
 no auto-summary

So when I shutdown loopback10 in R0,I stopped seeing
192.168.1.0/24advertised to R1.Am I missing something,kindly let me
know

Thanks

Regards
Anantha Subramanian Natarajan
**
**
**
**

**

On Sat, Aug 29, 2009 at 6:58 AM, Ahmed Ejaz <aahmedejaz_at_gmail.com> wrote:

> I tried that and it does not work.
>
> Ahmed.
>
> On Sat, Aug 29, 2009 at 4:53 PM, Anantha Subramanian Natarajan <
> 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>
>> 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

Blogs and organic groups at http://www.ccie.net
Received on Sat Aug 29 2009 - 07:52:32 ART

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