Re: BGP inject-map

From: Alec (clapun@graduate.hku.hk)
Date: Tue Feb 24 2004 - 13:26:35 GMT-3


Brian,

Finally I've got it done. However, I tried many times but still can't make
it track locally originated route, such as a aggregate (i.e. what should be
the prefix-list for ROUTE_SOURCE ?? I've tried 0.0.0.0, own BGP IP and own
BGP RID, but all failed). Kindly advise whether it is possible.

thanks
alec

R8-FRS
router bgp 2
 no synchronization
 bgp log-neighbor-changes
 bgp inject-map ORIGINATE exist-map LEARNED_PATH
 aggregate-address 200.201.0.0 255.255.0.0
 neighbor 192.3.1.1 remote-as 1
 no auto-summary

route-map LEARNED_PATH permit 10
 match ip address prefix-list ROUTE
 match ip route-source prefix-list ROUTE_SOURCE
!
route-map ORIGINATE permit 10
 set ip address prefix-list ORIGINATED_ROUTES
!
ip prefix-list ORIGINATED_ROUTES seq 5 permit 200.201.0.0/25
!
ip prefix-list ROUTE seq 5 permit 200.201.0.0/16
!
ip prefix-list ROUTE_SOURCE seq 5 permit 0.0.0.0/32

R8-FRS#sh ip bgp
BGP table version is 9, local router ID is 204.100.100.97
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
*> 200.201.0.0/16 0.0.0.0 32768 i
*> 200.201.1.0 192.3.1.1 0 0 1 i

----- Original Message -----
From: "Brian McGahan" <bmcgahan@internetworkexpert.com>
To: "'Alec'" <clapun@graduate.hku.hk>; <ccielab@groupstudy.com>
Sent: Tuesday, February 24, 2004 1:25 AM
Subject: RE: BGP inject-map

> Alec,
>
> Your syntax is fine, I just loaded it and it works:
>
> R1#sh run | b router bgp
> router bgp 109
> no synchronization
> bgp log-neighbor-changes
> bgp inject-map ORIGINATE exist-map LEARNED_PATH
> neighbor 10.2.1.1 remote-as 109
> no auto-summary
>
> R1#show ip bgp
> BGP table version is 4, local router ID is 12.0.0.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
> *>i10.1.1.0/25 10.2.1.1 0 ?
> *>i10.1.1.0/24 10.2.1.1 0 100 0 i
> *>i10.1.1.128/25 10.2.1.1 0 ?
>
>
> Are you sure 10.1.1.0/24 is a best path? Try clearing the BGP
> session.
>
> HTH,
>
> Brian McGahan, CCIE #8593
> bmcgahan@internetworkexpert.com
>
> Internetwork Expert, Inc.
> http://www.InternetworkExpert.com
> Toll Free: 877-224-8987 x 705
> Outside US: 775-826-4344 x 705
>
>
> > -----Original Message-----
> > From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
> > Alec
> > Sent: Monday, February 23, 2004 8:47 AM
> > To: ccielab@groupstudy.com
> > Subject: BGP inject-map
> >
> > Hi group,
> >
> > I've tried BGP inject-map but failed to inject the prefix in the BGP
> > table.
> > Does it require the ORIGINATED_ROUTES exist in the routing table
> > beforehand
> > ? Grateful if anyone can show me some guidelines..
> >
> > rgds,
> > alec
> >
> > router bgp 109
> > bgp inject-map ORIGINATE exist-map LEARNED_PATH
> > !
> > route-map LEARNED_PATH permit 10
> > match ip address prefix-list ROUTE
> > match ip route-source prefix-list ROUTE_SOURCE
> > !
> > route-map ORIGINATE permit 10
> > set ip address prefix-list ORIGINATED_ROUTES
> > set community 14616:555 additive
> > !
> > ip prefix-list ROUTE permit 10.1.1.0/24
> > !
> > ip prefix-list ORIGINATED_ROUTES permit 10.1.1.0/25
> > ip prefix-list ORIGINATED_ROUTES permit 10.1.1.128/25
> > !
> > ip prefix-list ROUTE_SOURCE permit 10.2.1.1/32
> >
> > _______________________________________________________________________
> > Please help support GroupStudy by purchasing your study materials from:
> > http://shop.groupstudy.com
> >
> > Subscription information may be found at:
> > http://www.groupstudy.com/list/CCIELab.html
>
> _______________________________________________________________________
> Please help support GroupStudy by purchasing your study materials from:
> http://shop.groupstudy.com
>
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html



This archive was generated by hypermail 2.1.4 : Fri Mar 05 2004 - 07:13:56 GMT-3