[c-nsp] route-map processing order: neighbor before redist?
Blake Willis
cnsp at 2112.net
Fri Jul 13 11:45:29 EDT 2007
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