Re: Sequence of operation in BGP

From: jules NYA BAWEU <nyabaweu_at_gmail.com>
Date: Fri, 18 Feb 2011 23:21:41 -0800

Here is what I had initially - with this, the "no-export" is set in the
regular route-map while sending to "192.168.2.2"

--------------------------------
router bgp 65011
.....
aggregate-address 10.25.0.0 255.255.0.0 summary-only
neigh 192.168.2.2 remote-as 65022
neigh 192.168.2.2 send-community
neigh 192.168.2.2 unsuppress-map UNSMAP_TO_65022
neigh 192.168.2.2 route-map RMAP_TO_65022 out

ip prefix-list PL_TO_65022 seq 10 permit 10.25.2.0/24

route-map UNSMAP_TO_65022 permit 10
match ip address prefix-list PL_TO_65022

route-map RMAP_TO_65022 10
set community no-export

--------------------------------

Now if the "no-export" is moved into the unsuppress-map, the it is
effectively set - basically the route-map run first and probably never see
any route in the aggregate summary-only. I thought by entering the command
in the order above, the aggregate will run first, then the unsupress-map
will then run and at the end the route-map will set the community -- not the
case.

Now, here is what works:

-------------------------------------
router bgp 65011
.....
aggregate-address 10.25.0.0 255.255.0.0 summary-only
neigh 192.168.2.2 remote-as 65022
neigh 192.168.2.2 send-community
neigh 192.168.2.2 unsuppress-map UNSMAP_TO_65022

ip prefix-list PL_TO_65022 seq 10 permit 10.25.2.0/24

route-map UNSMAP_TO_65022 permit 10
match ip address prefix-list PL_TO_65022
set community no-export
-------------------------------------

Thx

On Fri, Feb 18, 2011 at 9:53 PM, gopal gupta <gopgupta_at_cisco.com> wrote:

> Jules,
>
>
>
> Could you share your configs, this looks weired behavior that you are not
> able to see the community using normal ( neighbor x.x.x.x route-map
> COMMUNITY) command.
>
>
>
> Thanks,
>
> Gopal
>
>
>
> *From:* jules NYA BAWEU [mailto:nyabaweu_at_gmail.com]
> *Sent:* Friday, February 18, 2011 10:53 PM
>
> *To:* gopal gupta
> *Cc:* ccielab_at_groupstudy.com
> *Subject:* Re: Sequence of operation in BGP
>
>
>
> Thanks again Gopal,
>
> it all started when I ran into a task where I was setting community in a
> route-map (regular route-map applied to BGP neighbor) for prefixes sent to a
> BGP speaker; I could never see that community going through or being set. I
> then move the community into the route-map that was used for the
> unsuppress-map for the same neighbor and everything was fine. That was
> actually when I found out that never bother to check the sequence of
> operations for all those "things" that you can apply to your BGP peer...
> That's where I'm coming from.
>
>
> On Fri, Feb 18, 2011 at 8:39 PM, gopal gupta <gopgupta_at_cisco.com> wrote:
>
> You are welcome Jules, Let me know what exactly are you trying..I tested
> this scenario once last month..It pretty much worked like that as mentioned
> by Brian dennis on that link.
>
>
>
> You should remember one thing that Output of the First one that is the most
> preferred would become the input of second one and in turn the Output of the
> second would become the input of the Final one i.e. third one.
>
>
>
> *From:* jules NYA BAWEU [mailto:nyabaweu_at_gmail.com]
> *Sent:* Friday, February 18, 2011 10:32 PM
> *To:* gopal gupta
> *Cc:* ccielab_at_groupstudy.com
> *Subject:* Re: Sequence of operation in BGP
>
>
>
> Thank you Gopal.
>
> I did run into that link earlier; I actually tested some few scenarios, but
> still have some gray areas...
>
> On Thu, Feb 17, 2011 at 2:16 PM, gopal gupta <gopgupta_at_cisco.com> wrote:
>
> Chk this..
>
> http://blog.ine.com/2008/01/11/bgp-order-of-preference/#comments
>
>
> -----Original Message-----
> From: nobody_at_groupstudy.com [mailto:nobody_at_groupstudy.com] On Behalf Of
> jules NYA BAWEU
> Sent: Thursday, February 17, 2011 3:52 PM
> To: ccielab_at_groupstudy.com
> Subject: Sequence of operation in BGP
>
> Hello All:
>
> Could you, please, clarify those for me? I did some quick search but
> couldn't get a firm answer?
>
> With BGP, could you tell me the sequence of operations the following are
> applied for inbound/outbound routing info?
>
> 1 - suppress/ussupress map and attibute-map while using the aggregate
> command
>
> 2- ussupress-map, route-map, filter-list and prefix-list/distribute-list (I
> know we cannot use "neighbor prefix-list" and "neighbor distribute-list" in
> the same direction - I'm looking more to the order for each as it pertains
> to the previously mentioned)
>
> Thanks in advance
>
> 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 Fri Feb 18 2011 - 23:21:41 ART

This archive was generated by hypermail 2.2.0 : Tue Mar 01 2011 - 07:01:50 ART