Re: BGP Cond Route Injection

From: Cyrus (cyrus.mgh@gmail.com)
Date: Wed Oct 22 2008 - 07:33:14 ARST


Hi Dennis,

Reza discuss your problem well.Just want to add some notes :

Some highlights of using inject-map:

http://www.cisco.com/en/US/docs/ios/12_2t/12_2t4/feature/guide/ftbgpri.html

I just highlights some part of doc:

-Enabling this feature will allow you to improve the accuracy of common "*route
aggregation*" by conditionally injecting or replacing less specific prefixes
with more specific prefixes.

So u need an aggregate route in your BGP table to be able to inject more
specific route of it.

match ip address prefix-list EXITSING_ROUTE ROUTE-SOURCE ---> means it
matches one of these two prefix-lists for your exist-map.

So by your syntax ROUTE-SOURCE map will be used for exist-map matching not
restricting your exist-map prefix selection (form source ip point of view)

HTH,

On Wed, Oct 22, 2008 at 4:46 PM, Dennis Worth <dennis.worth@gmail.com>wrote:

> I have spent the last 2 hours fumbling with this configure and understand
> it. Any help figuring out what I've done wrong would be awesome.
>
> Here are my configs.
>
> RSRack1R3(config-router)#do sh ip bgp
> BGP table version is 18, 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
> *> 28.119.16.0/24 204.12.1.254 0 0 54 i
> * i 204.12.1.254 0 100 0 54 i
> * i 150.1.6.6 0 100 0 54 i
> *> 28.119.17.0/24 204.12.1.254 0 0 54 i
> * i 204.12.1.254 0 100 0 54 i
> * i 150.1.6.6 0 100 0 54 i
> *> 112.0.0.0 204.12.1.254 0 54 50 60 i
> * i 204.12.1.254 0 100 0 54 50 60 i
> * i 150.1.6.6 0 100 0 54 50 60 i
> *> 113.0.0.0 204.12.1.254 0 54 50 60 i
> * i 204.12.1.254 0 100 0 54 50 60 i
> * i 150.1.6.6 0 100 0 54 50 60 i
> *> 114.0.0.0 204.12.1.254 0 54 i
> * i 204.12.1.254 0 100 0 54 i
> * i 150.1.6.6 0 100 0 54 i
> *> 115.0.0.0 204.12.1.254 0 54 i
> * i 204.12.1.254 0 100 0 54 i
> Network Next Hop Metric LocPrf Weight Path
> * i 150.1.6.6 0 100 0 54 i
> *> 116.0.0.0 204.12.1.254 0 54 i
> * i 204.12.1.254 0 100 0 54 i
> * i 150.1.6.6 0 100 0 54 i
> *> 117.0.0.0 204.12.1.254 0 54 i
> * i 204.12.1.254 0 100 0 54 i
> * i 150.1.6.6 0 100 0 54 i
> *> 118.0.0.0 204.12.1.254 0 54 i
> * i 204.12.1.254 0 100 0 54 i
> * i 150.1.6.6 0 100 0 54 i
> *> 119.0.0.0 204.12.1.254 0 54 i
> * i 204.12.1.254 0 100 0 54 i
> * i 150.1.6.6 0 100 0 54 i
> *>i150.1.0.0/20 167.1.58.8 0 100 0 65078 i
> r>i167.1.4.0/24 150.1.4.4 0 100 0 i
> *>i167.1.5.0/24 167.1.135.5 0 100 0 i
> *>i205.90.31.0 192.10.1.254 0 100 0 254 ?
> *>i220.20.3.0 192.10.1.254 0 100 0 254 ?
> *>i222.22.2.0 192.10.1.254 0 100 0 254 ?
>
>
> RSRack1R3(config-router)# do sh run | b router bgp
> router bgp 100
> no synchronization
> bgp log-neighbor-changes
> bgp inject-map ORIGINATE exist-map LEARNED_PATH
> neighbor AS-100-PEER peer-group
> neighbor AS-100-PEER remote-as 100
> neighbor AS-100-PEER update-source Loopback0
> neighbor AS-100-PEER route-reflector-client
> neighbor AS-100-PEER next-hop-self
> neighbor AS-100-PEER send-community
> neighbor AS-100-PEER route-map TO_IBGP_PEERS out
> neighbor 150.1.1.1 peer-group AS-100-PEER
> neighbor 150.1.4.4 peer-group AS-100-PEER
> neighbor 150.1.6.6 peer-group AS-100-PEER
> neighbor 150.1.9.9 peer-group AS-100-PEER
> neighbor 150.1.9.9 shutdown
> neighbor 150.1.10.10 peer-group AS-100-PEER
> neighbor 150.1.10.10 shutdown
> neighbor 167.1.135.5 peer-group AS-100-PEER
> neighbor 204.12.1.254 remote-as 54
> neighbor 204.12.1.254 remove-private-AS
> neighbor 204.12.1.254 route-map PREPEND out
> no auto-summary
> !
> ip classless
> !
> ip http server
> no ip http secure-server
> !
> !
> ip prefix-list EXITSING_ROUTE seq 5 permit 150.1.0.0/20
> !
> ip prefix-list ROUTE-SOURCE seq 5 permit 167.1.135.5/32
> !
> ip prefix-list SPECIFIC-ROUTE seq 5 permit 150.1.8.0/24
> !
> ip prefix-list SW2_LOOP seq 5 permit 150.1.8.0/24
> !
> ip prefix-list VLAN_4_and_VLAN_5 seq 5 permit 167.1.4.0/24
> ip prefix-list VLAN_4_and_VLAN_5 seq 10 permit 167.1.5.0/24
> !
> route-map LEARNED_PATH permit 10
> match ip address prefix-list EXITSING_ROUTE ROUTE-SOURCE
> !
> route-map ORIGINATE permit 10
> set ip address prefix-list SW2_LOOP
> !
> route-map TO_IBGP_PEERS deny 10
> match ip address prefix-list SPECIFIC-ROUTE
> !
> route-map TO_IBGP_PEERS permit 1000
> !
> route-map PREPEND permit 10
> match ip address prefix-list VLAN_4_and_VLAN_5
> set as-path prepend 100 100
> !
> route-map PREPEND permit 1000
>
> RSRack1R3#sh ip bgp injected-paths
> >>>>BLANK<<<<
>
> Maybe I'm just tired!
> --
> Dennis Worth
>
>
> Blogs and organic groups at http://www.ccie.net
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
>
>
>
>
>
>
>
>

-- 
Sirus Moghadasian
CCIE #21862 (R&S)

Blogs and organic groups at http://www.ccie.net



This archive was generated by hypermail 2.1.4 : Sat Nov 01 2008 - 15:35:22 ARST