I need some help with the BGP inject-map command. The topology is simple:
R3-----13.0.0.0/24-----R1-----10.0.0.0/24-----R2 R3 is in AS 300, and R1 and R2 are in AS 12. The last octet of each ip address is taken from the router name. For this simplified example, only the two subnets in the diagram exist. I need R1 to advertise two additional routes to R3: 10.0.0.50/32 and 10.0.0.60/32. I do not want these routes advertised to R2. I cannot use the same method to inject both routes. To advertise the 10.0.0.50/32 route, I simply added a static route and a network statement: ip route 10.0.0.50 255.255.255.255 FastEthernet1/0 routeR bgp 120 network 10.0.0.50 mask 255.255.255.255 This works, and I just used a prefix filter to filter the route on the neighbor statement to R2. I'm trying to use the inject-map to accomplish the task for the second route as follows: ip prefix-list HOSTIP seq 5 permit 10.0.0.60/32 ! ip prefix-list SOURCE seq 5 permit 13.0.0.1/32 ! ip prefix-list SUMMARY seq 5 permit 10.0.0.0/24 ! route-map MATCH_SUM_SOURCE permit 10 match ip address prefix-list SUMMARY match ip route-source SOURCE ! route-map GENERATE_SLASH32 permit 10 set ip address prefix-list HOSTIP router bgp 120 bgp inject-map GENERATE_SLASH32 exist-map MATCH_SUM_SOURCE This works also, and for some reason is not advertised to R2. I don't understand why... Are injected routes only advertised to eBGP neighbors? Also, on R1, the next hop for the injected route is R2's address: R1(config-router)#do sh ip bgp | beg Net Network Next Hop Metric LocPrf Weight Path *> 10.0.0.0/24 0.0.0.0 0 32768 i * i 10.0.0.2 0 100 0 i *> 10.0.0.50/32 0.0.0.0 0 32768 i *>i10.0.0.60/32 10.0.0.2 0 ? *> 13.0.0.0/24 0.0.0.0 0 32768 i * 13.0.0.3 0 0 300 i Why doesn't R1 inject the route with 0.0.0.0 as next hop? Thanks! Doug _______________________________________________ For more information regarding industry leading CCIE Lab training, please visit www.ipexpert.com Are you a CCNP or CCIE and looking for a job? Check out www.PlatinumPlacement.com http://onlinestudylist.com/mailman/listinfo/ccie_rs
