Re: BGP Inject Map

From: Nick Griffin (ngriffin@sio.midco.net)
Date: Thu Apr 20 2006 - 12:34:12 GMT-3


My guess is that I am not handling this correctly with my prefix lists
and route maps. Are separate prefix lists and route-map entries required
to originate multiple subnets from the aggregates?

Nick Griffin wrote:
> In order for the bgp inject map to function correctly, does the
> network your trying to produce specific subnets from have to be
> originated into bgp via the aggregate address command? At first
> glance, I think that originating the network via the network statment
> and corresponding mask works. However when I tried to add a second
> subnet off of a different block(utilizing same prefix lists), I am
> unable to originate the more specifics. The setup is R2 is originating
> the routes from AS 200, and sending to R1 in AS100, which is
> attempting to inject more specific prefixes and send them to R3 in
> AS300. See below:
>
>
> originate->(R2)--EBGP--(R1)--EBGP--(R3)
>
> When using the network statements (10.0.0.0 mask 255.255.0.0, and
> 11.0.0.0 mask 255.255.0.0) upstream R2:
> R1 Config:
>
> router bgp 100
> bgp inject-map INJECT exist-map EXISTS
> !
> ip prefix-list AGGREGATE seq 5 permit 10.0.0.0/16
> ip prefix-list AGGREGATE seq 10 permit 11.0.0.0/16
> !
> ip prefix-list INJECT seq 5 permit 10.0.0.0/24
> ip prefix-list INJECT seq 10 permit 11.0.0.0/24
> !
> ip prefix-list SOURCE seq 5 permit 150.1.2.2/32
> !
> !
> route-map EXISTS permit 10
> match ip address prefix-list AGGREGATE
> match ip route-source prefix-list SOURCE
> !
> route-map INJECT permit 10
> set ip address prefix-list INJECT
>
> R2#sh ip bgp
> BGP table version is 19, local router ID is 150.1.2.2
> Status codes: s suppressed, d damped, h history, * valid, > best, i -
> internal,
> r RIB-failure, S Stale
> Origin codes: i - IGP, e - EGP, ? - incomplete
>
> Network Next Hop Metric LocPrf Weight Path
> *> 10.0.0.0/16 0.0.0.0 0 32768 i
> *> 11.0.0.0/16 0.0.0.0 0 32768 i
> *> 12.0.0.0/16 0.0.0.0 0 32768 i
> *> 13.0.0.0/16 0.0.0.0 0 32768 i
>
> R1#sh ip bgp
> BGP table version is 6, local router ID is 150.1.1.1
> Status codes: s suppressed, d damped, h history, * valid, > best, i -
> internal,
> r RIB-failure, S Stale
> Origin codes: i - IGP, e - EGP, ? - incomplete
>
> Network Next Hop Metric LocPrf Weight Path
> *> 10.0.0.0/24 150.1.2.2 0 ?
> *> 10.0.0.0/16 150.1.2.2 0 0 200 i
> *> 11.0.0.0/16 150.1.2.2 0 0 200 i
> *> 12.0.0.0/16 150.1.2.2 0 0 200 i
> *> 13.0.0.0/16 150.1.2.2 0 0 200 i
>
>
> R3#sh ip bgp
> BGP table version is 50, local router ID is 150.1.3.3
> Status codes: s suppressed, d damped, h history, * valid, > best, i -
> internal,
> r RIB-failure, S Stale
> Origin codes: i - IGP, e - EGP, ? - incomplete
>
> Network Next Hop Metric LocPrf Weight Path
> *> 10.0.0.0/24 150.1.1.1 0 100 ?
> *> 10.0.0.0/16 150.1.1.1 0 100 200 i
> *> 11.0.0.0/16 150.1.1.1 0 100 200 i
> *> 12.0.0.0/16 150.1.1.1 0 100 200 i
> *> 13.0.0.0/16 150.1.1.1 0 100 200 i
>
> It seems when I used the aggregate address to originate the 10.0.0.0
> and 11.0.0.0 subnets I was able to inject more specific subnets from
> both blocks. Just trying to get this straight. Thoughts are appreciated.
>
> Thanks,
>
> Nick Griffin



This archive was generated by hypermail 2.1.4 : Mon May 01 2006 - 11:41:58 GMT-3