I found the answer:
The solution is to set attributes on the inject-map itself, where the route
to be injected is defined, All configs on R4:
route-map INJECT permit 10
set ip address prefix-list NEW-ROUTE
set local-preference 1000
set community no-export
route-map EXIST permit 10
match ip address prefix-list ROUTE
match ip route-source prefix-list ROUTE-SOURCE
ip prefix-list NEW-ROUTE seq 5 permit 1.1.3.0/24
ip prefix-list ROUTE seq 5 permit 1.1.0.0/22
ip prefix-list ROUTE-SOURCE seq 5 permit 10.1.34.3/32
router bgp 400
bgp inject-map INJECT exist-map EXIST
This info is deeply hidden on DocCD, IOS 12.2T, Feature guides, BGP
conditional route-injection:
http://www.cisco.com/en/US/docs/ios/12_2t/12_2t4/feature/guide/ftbgpri.html
On Tue, Apr 19, 2011 at 5:09 PM, Jacek <q.192.168.1.0_at_gmail.com> wrote:
> Hello Experts,
>
> I have a question regarding conditional route injection in BGP. Is it
> possible to set attributes on an injected route ? Here is scenario:
>
> R1(AS100)---R2(AS200)---R3(AS300)---R4(AS400)
>
> R1 advertises four routes: 1.1.0.0/24, 1.1.1.0/24, 1.1.2.0/24 and
> 1.1.3.0/24
> R3 aggregates those routes as 1.1.0.0/22
> R4 injects specific route with command:
> # bgp inject-map INJECT exist-map EXIST
>
> As a result R4 sees aggregated route and more specific route:
> Network Next Hop Metric LocPrf Weight Path
> *> 1.1.0.0/22 10.1.34.3 0 300 200 100 i
> *> 1.1.3.0/24 10.1.34.3 0 ?
>
> How can I set attributes on R4 on specific /24 route, like local
> preference, and how ?
Blogs and organic groups at http://www.ccie.net
Received on Tue Apr 19 2011 - 23:41:33 ART
This archive was generated by hypermail 2.2.0 : Sun May 01 2011 - 09:00:29 ART