[c-nsp] route-map processing order: neighbor before redist?

Collins, Richard (SNL US) richard.collins.ext at nsn.com
Sun Jul 15 20:44:18 EDT 2007


 Yes I can confirm that I am seeing the same effect on our
Sup720/PFC3BX with SXF8.  I am seeing all routes with community
1234:1002 and none with both 1234:1001 1234:1002

-Rich

>Date: Fri, 13 Jul 2007 17:45:29 +0200 (CEST)
>From: Blake Willis <cnsp at 2112.net>
>Subject: [c-nsp] route-map processing order:  neighbor before redist?
>To: cisco-nsp at puck.nether.net
>Message-ID: <Pine.BSO.4.62.0707131646510.26194 at bastille.2112.net>
>Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
>
>Greetings all,
>
>       I'll cut right to the point here.  Given the following config 
>fragment, the intention being to set nhs on everything annouced to IBGP

>neighbors except for static routes:
>
>!
>ip community-list standard bgp-redist permit 1234:1001
>ip community-list standard no-rewrite-nexthop permit 1234:1002
>!
>!
>route-map bgp-redist permit 10
>  set origin igp
>  set community 1234:1001 1234:1002
>!
>!
>route-map conditional-nhs permit 10
>  match community no-rewrite-nexthop
>!
>route-map conditional-nhs permit 20
>  set ip next-hop peer-address
>  set community 1234:1002
>!
>!
>router bgp 1234
>  redistribute static route-map bgp-redist
>  neighbor IBGP route-map conditional-nhs out
>!
>
>...the behavior I'm seeing is that static routes are still having their

>nexthop rewritten to loopback when examined in other routers in the
IBGP 
>mesh (routes learned from other IBGP or EBGP neighbors & reannounced
(e.g. 
>RR clients) are correctly going out with unmodified next-hops).  If I
remove 
>the conditional-nhs route-map from the IBGP neighbors, 1234:1002 is
still 
>properly set on the routes, and of course the next-hop is unchanged.
>
>       This leads me to believe that the outbound neighbor route-map is

>actually being processed before the redistribution route-map.  Can
anyone 
>confirm or deny this being the case?  (BTW this is on SXD7b on a
sup720/3bxl)
>
>       Thanks for your time.
>
>---
>  Blake Willis
>  Network Engineer
>  blake at 2112 dot net


More information about the cisco-nsp mailing list